🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Antony Chan Thu, 11 Nov 1999 00:00
Cycbuff creation on software RAID problem?
#41500
Author: Antony Chan
Date: Thu, 11 Nov 1999 00:00
42 lines
1793 bytes
I am trying to create a single cycbuff on a "virtual" block device which
was a sw RAID5 created by Solaris' DiskSuite 4.2 (the OS is 2.6).

I followed the suggestion of the cycbuff.conf man page to create a
block-type special file, namely /cycbuff/d0, for CNFS' reference to this
block device.

However, I got stuck when I was making the first history file by
'makehistory -o' and was given the following error inside news.err and
news.notice.

>>> Nov 11 02:16:43 cctmp30 makehistory[18784]:
>>> CNFS-sm: CNFSinitdisks: mmap for /cycbuff/d0
>>> offset 0 len -278528 failed: Not enough space
>>>
>>> Nov 11 02:16:44 cctmp30 makehistory[18784]:
>>> SM storage method 'cnfs' failed initalization
>>>
>>> Nov 11 02:16:44 cctmp30 makehistory[18784]:
>>> SM one or more storage methods failed
>>> initialization

The disk array is 8 x 2G and my cycbuff.conf reads as follows:

>>> cycbuff:ONE:/cycbuff/d0:15600000
>>> metacycbuff:BIGAREA:ONE

and my storage.conf:

>>> method cnfs {
>>>        class: 1
>>>        newsgroups: *
>>>        options: BIGAREA
>>> }

Can you help? Thank you.

Regards,
Chan


Re: Cycbuff creation on software RAID problem?
#41442
Author: bill davidsen
Date: Wed, 10 Nov 1999 00:00
23 lines
1735 bytes
In article <3829BDC7.9A4DA714@ust.hk>, Antony Chan  <ccantony@ust.hk> wrote:
| I am trying to create a single cycbuff on a "virtual" block device which
| was a sw RAID5 created by Solaris' DiskSuite 4.2 (the OS is 2.6).
| 
| I followed the suggestion of the cycbuff.conf man page to create a
| block-type special file, namely /cycbuff/d0, for CNFS' reference to this
| block device.

	[... tale of woe deleted ...]

  I am fairly sure you are getting bitten by the max filesize problem.
INN does support large filesizes (or non-file sizes for partitions), and
INN does have some support for them, but unless you have a very good
reason for using this I would strongly suggest using a number of <2GB
cycbuffs and avoiding the learning experience.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  When taking small children to a carnival, always have them go potty
*before* you let them go on the rides, and let them eat all the junk
food and candy *after*.

Re: Cycbuff creation on software RAID problem?
#41460
Author: Mark Hittinger
Date: Wed, 10 Nov 1999 00:00
39 lines
2090 bytes
Antony Chan <ccantony@ust.hk> writes:
>I am trying to create a single cycbuff on a "virtual" block device which
>was a sw RAID5 created by Solaris' DiskSuite 4.2 (the OS is 2.6).


I am trying to do some of this now.  I have a news box with 11 50 gigabyte
software raid5 (veritas) arrays.

Here is some information that may or may not be correct, but it is where
I am right now :-)

Compile INN with this in the Makefile.global:

LFS_CFLAGS      = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
LFS_LIBS        = -lsocket

If you do this you will discover you can't use the block device because 
block devices don't appear to be able to go beyond the 32 bit lseek.  At
least I haven't figured out how to get this to work.  Thats too bad, cause
its nice and fast.

If you try to use the raw device (rdsk) it won't work because the drivers
seem to want you to do largefile I/O in 512 byte chunks.  It won't do a 192 
byte read on the rpx structure for example, the 192 byte read fails, but the 
512 byte read works, and goes out to 64 bit lseek.  SO we could re-write the
storageapi to always do block style i/o if largefile mode is on in order
to appease ods or veritas :-)

Anyway you can also initialize a file system on the array and then dd /dev/zero
onto a big file on the array.  This works (so far).  I'm expecting some things
to fail, but so far so good (this is with inn2.3-current btw).

Later

Mark Hittinger
Mindspring/Netcom/Dallas
bugs@freebsd.netcom.com

Re: Cycbuff creation on software RAID problem?
#41468
Author: Andrew Gierth
Date: Wed, 10 Nov 1999 00:00
35 lines
2401 bytes
[Bogus "Distribution: inet" removed.]

>>>>> "Mark" == Mark Hittinger <bugs@netcom19.netcom.com> writes:

 Mark> If you try to use the raw device (rdsk) it won't work because
 Mark> the drivers seem to want you to do largefile I/O in 512 byte
 Mark> chunks.  It won't do a 192 byte read on the rpx structure for
 Mark> example, the 192 byte read fails, but the 512 byte read works,
 Mark> and goes out to 64 bit lseek.  SO we could re-write the
 Mark> storageapi to always do block style i/o if largefile mode is on
 Mark> in order to appease ods or veritas :-)

There's a lot more to efficient use of raw disks (i.e. character
devices, as opposed to block devices which are relatively
straightforward) than merely getting the blocksize right. (And it has
always been the case that I/O on raw devices must conform to the
alignment requirements of the hardware.)

Reads and writes to raw disk devices are uncached, which will probably
cost you far more in performance terms than you could ever hope to
gain from them. They rarely make sense except for things like database
engines that are prepared to do their own large-scale caching and use
either AIO or multithreaded writes.

 Mark> Anyway you can also initialize a file system on the array and
 Mark> then dd /dev/zero onto a big file on the array.  This works (so
 Mark> far).  I'm expecting some things to fail, but so far so good
 Mark> (this is with inn2.3-current btw).

This is probably the correct approach.

-- 
Andrew.

Re: Cycbuff creation on software RAID problem?
#41474
Author: Mark Hittinger
Date: Thu, 11 Nov 1999 00:00
34 lines
2152 bytes
Russ Allbery <rra@stanford.edu> writes:
>You can't use raw block devices larger than 2GB; it's a limitation of
>Solaris.  I'd strongly recommend using multiple separate cycbuffs, if your
>RAID implementation can handle that.  INN deals with a bunch of cycbuffs
>just fine; headwall.stanford.edu has 28, for example.

This is definetly the way to go unless you start getting into several
hundred 2 GB cycbuffs.  I tried setting up a server with over 200 of
them and ran into enough problems that I decided to screw it and see
what would stand in the way of using 11 50 gig partitions.  

One of the first things you'll run into is that cnfsstat won't work :-)
you need to recompile perl with large file support also.  There are
other issues, I'm trying to write them all down so that I can go back
and make suggestions on inn-workers.

One thing I have noticed that worries me is that I/O tends to slow down
significantly as you get out into the larger part of a cycbuff file (i.e.,
artwrites in the early part of the file are around 4ms and artwrites
in the 40gig area are around 60ms).

I'm worried that the double/triple indirect block handling may be putting 
enough overhead onto using the files that the cache wins may not matter.  If
we can retool the storage api to do block mode I/O to raw devices it may
actually be faster.  I'll have to do some benchmarking etc.  Its still
pretty iffy and just an experiment right now.

Later

Mark Hittinger
Mindspring/Netcom/Dallas
bugs@netcom.com

Re: Cycbuff creation on software RAID problem?
#41479
Author: bill davidsen
Date: Thu, 11 Nov 1999 00:00
30 lines
2272 bytes
In article <80de89$99f$1@nntp3.atl.mindspring.net>,
Mark Hittinger <bugs@netcom19.netcom.com> wrote:

| This is definetly the way to go unless you start getting into several
| hundred 2 GB cycbuffs.  I tried setting up a server with over 200 of
| them and ran into enough problems that I decided to screw it and see
| what would stand in the way of using 11 50 gig partitions.  

| I'm worried that the double/triple indirect block handling may be putting 
| enough overhead onto using the files that the cache wins may not matter.  If
| we can retool the storage api to do block mode I/O to raw devices it may
| actually be faster.  I'll have to do some benchmarking etc.  Its still
| pretty iffy and just an experiment right now.

  Now there's a thought I didn't consider... does innd keep the cycbuffs
open or open and close them? Have to look at the code on that, but I can
see that keeping them open could use a lot of file descriptors on a
large machine.

  If I run on a 64 bit machine do I need to use large file support? The
next time I upgrade that might be an interesting consideration, since
running through the less used code is always a good cure for boredom :-(

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  When taking small children to a carnival, always have them go potty
*before* you let them go on the rides, and let them eat all the junk
food and candy *after*.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads