Thread View: news.software.nntp
13 messages
13 total messages
Started by Michael Grimm
Mon, 25 Jan 2010 22:11
CNSF at block devices and FreeBSD?
Author: Michael Grimm
Date: Mon, 25 Jan 2010 22:11
Date: Mon, 25 Jan 2010 22:11
18 lines
1738 bytes
1738 bytes
Hi -- I'm currently investigating block devices as CNFS buffers. According http://www.eyrie.org/~eagle/software/inn/docs-2.5/cycbuff.conf.html FreeBSD is suspected to lack mmap() on block devices. Has anyone out there had had success in using CNFS@partition with FBSD 8? Another add-on: what is the technical background of ... ,---- | Note, however, that each cycbuff cannot be larger than 2 GB with this | method `---- ... if one would have enabled --enable-largefiles? Regards, Michael -- to let
Re: CNSF at block devices and FreeBSD?
Author: Russ Allbery
Date: Mon, 25 Jan 2010 22:26
Date: Mon, 25 Jan 2010 22:26
26 lines
2072 bytes
2072 bytes
Michael Grimm <trashcan@odo.in-berlin.de> writes:
> I'm currently investigating block devices as CNFS buffers. According
> http://www.eyrie.org/~eagle/software/inn/docs-2.5/cycbuff.conf.html
> FreeBSD is suspected to lack mmap() on block devices. Has anyone out
> there had had success in using CNFS@partition with FBSD 8?
> Another add-on: what is the technical background of ...
> ,----
> | Note, however, that each cycbuff cannot be larger than 2 GB with this
> | method
> `----
> ... if one would have enabled --enable-largefiles?
Even if you enabled large files, there were problems with using larger
cycbuffs as block devices on Solaris, IIRC.
The advantages of using block devices instead of files in a file system
are somewhat dubious. I'm not sure the configuration complexity is really
worth it.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: CNSF at block devices and FreeBSD?
Author: Michael Grimm
Date: Mon, 25 Jan 2010 22:49
Date: Mon, 25 Jan 2010 22:49
24 lines
1755 bytes
1755 bytes
Russ Allbery <rra@stanford.edu> wrote: > Michael Grimm <trashcan@odo.in-berlin.de> writes: [CNFS@raw devices] > The advantages of using block devices instead of files > in a file system are somewhat dubious. -v please, if you don't mind. I'd always ran into claims that when it comes to speed, raw devices are the ultimate answer ... true? > I'm not sure the configuration complexity is really > worth it. The longer I investigate the more I do back your statement, but, I have read a lot of statements in favour of raw devices ... Regards, Michael -- to let
Re: CNSF at block devices and FreeBSD?
Author: Russ Allbery
Date: Mon, 25 Jan 2010 23:05
Date: Mon, 25 Jan 2010 23:05
23 lines
2077 bytes
2077 bytes
Michael Grimm <trashcan@odo.in-berlin.de> writes:
> Russ Allbery <rra@stanford.edu> wrote:
>> The advantages of using block devices instead of files
>> in a file system are somewhat dubious.
> -v please, if you don't mind.
> I'd always ran into claims that when it comes to speed,
> raw devices are the ultimate answer ... true?
The problem is that you may be bypassing the buffer cache in the kernel
when accessing block devices directly, and INN is not doing equivalent
caching. So while you save some overhead from the file system layout
since most file systems don't do that sensible of things for really large
files, you're probably losing that speed again by bypassing useful kernel
caching. The result is probably mostly a wash.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: CNSF at block devices and FreeBSD?
Author: Miquel van Smoorenburg
Date: Thu, 28 Jan 2010 15:45
Date: Thu, 28 Jan 2010 15:45
47 lines
3001 bytes
3001 bytes
In article <87tyu9hldo.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: >Michael Grimm <trashcan@odo.in-berlin.de> writes: > >> I'm currently investigating block devices as CNFS buffers. According >> http://www.eyrie.org/~eagle/software/inn/docs-2.5/cycbuff.conf.html >> FreeBSD is suspected to lack mmap() on block devices. Has anyone out >> there had had success in using CNFS@partition with FBSD 8? > >> Another add-on: what is the technical background of ... >> ,---- >> | Note, however, that each cycbuff cannot be larger than 2 GB with this >> | method >> `---- >> ... if one would have enabled --enable-largefiles? > >Even if you enabled large files, there were problems with using larger >cycbuffs as block devices on Solaris, IIRC. Okay this thread was originally about FBSD8, and I don't know anything about that, but the documentation that is referred to above isn't completely correct. Solaris may have a 2GB limit on raw block devices, but Linux doesn't (also, on Linux, the blockdevice isn't quite 'raw', the buffer cache is still being used). Look: # cnfsstat Class bin for groups matching "*" Buffer c1, size: 5.46 TBytes, position: 1.01 TBytes 193.18 cycles Newest: 2010-01-28 16:37:54, 0 days, 0:00:00 ago Buffer c2, size: 5.46 TBytes, position: 1011 GBytes 193.18 cycles Newest: 2010-01-28 16:37:54, 0 days, 0:00:00 ago This is using blockdevices directly. >The advantages of using block devices instead of files in a file system >are somewhat dubious. I'm not sure the configuration complexity is really >worth it. If your system supports large blockdevices, it's quite a bit less complex than using the filesystem. For one thing, it takes a loooong time to create empty files tens of TBs worth. Mike.
Re: CNSF at block devices and FreeBSD?
Author: Miquel van Smoorenburg
Date: Thu, 28 Jan 2010 15:49
Date: Thu, 28 Jan 2010 15:49
12 lines
1829 bytes
1829 bytes
In article <4b61b127$0$22919$e4fe514c@news.xs4all.nl>, Miquel van Smoorenburg <miquels@netscum.invalid> wrote: >Solaris may have a 2GB limit on raw block devices, but Linux >doesn't (also, on Linux, the blockdevice isn't quite 'raw', >the buffer cache is still being used). Wait, the limit used to be 2 TB, perhaps you meant that? That was with the 512-bytes CNFS blocksize. With the latest INN, when a fresh cycbuff is created, it uses 4K blocksize- and the limit becomes 16 TB. Mike.
Re: CNSF at block devices and FreeBSD?
Author: Julien ÉLIE
Date: Thu, 28 Jan 2010 17:21
Date: Thu, 28 Jan 2010 17:21
49 lines
3770 bytes
3770 bytes
Hi Miquel,
>>> Another add-on: what is the technical background of ...
>>> ,----
>>> | Note, however, that each cycbuff cannot be larger than 2 GB with this
>>> | method
>>> `----
>>> ... if one would have enabled --enable-largefiles?
>>
>>Even if you enabled large files, there were problems with using larger
>>cycbuffs as block devices on Solaris, IIRC.
>
> Okay this thread was originally about FBSD8, and I don't know
> anything about that, but the documentation that is referred to
> above isn't completely correct.
>
> Solaris may have a 2GB limit on raw block devices, but Linux
> doesn't (also, on Linux, the blockdevice isn't quite 'raw',
> the buffer cache is still being used).
Maybe we should update the documentation of cycbuff.conf to be more specific
about that limit of 2 GB.
It appears that *older* Linux versions have a limit according to that
other part of documentation (in INSTALL):
For each metacycbuff, you now need to determine how many cycbuffs will
make up the metacycbuff, the size of those cycbuffs, and where they will
be stored. Some OSes do not support files larger than 2 GB, which will
limit the size you can make a single cycbuff, but you can still combine
many cycbuffs into each metacycbuff. Older versions of Linux are known to
have this limitation; FreeBSD does not. Some OSes that support large
files don't support direct access to block devices for large partitions
(Solaris prior to Solaris 7, or not running in 64-bit mode, is in this
category); on those OSes, if you want cycbuffs over 2 GB, you'll have to
use regular files. If in doubt, keep your cycbuffs smaller than 2 GB.
Also, when laying out your cycbuffs, you will want to try to arrange them
across as many physical disks as possible (or use a striped disk array and
put them all on that).
In order to use any cycbuff larger than 2 GB, you need to build INN with
the --enable-largefiles option.
--
Julien ÉLIE
« -- Ouvre l'œil, et le bon !
-- L'autre, je peux pas encore l'ouvrir, je risque pas de me tromper ! » (Astérix)
Re: CNSF at block devices and FreeBSD?
Author: Russ Allbery
Date: Thu, 28 Jan 2010 18:04
Date: Thu, 28 Jan 2010 18:04
22 lines
2223 bytes
2223 bytes
"Miquel van Smoorenburg" <miquels@netscum.invalid> writes:
> Miquel van Smoorenburg <miquels@netscum.invalid> wrote:
>> Solaris may have a 2GB limit on raw block devices, but Linux doesn't
>> (also, on Linux, the blockdevice isn't quite 'raw', the buffer cache is
>> still being used).
> Wait, the limit used to be 2 TB, perhaps you meant that? That was with
> the 512-bytes CNFS blocksize. With the latest INN, when a fresh cycbuff
> is created, it uses 4K blocksize- and the limit becomes 16 TB.
I'm pretty sure that documentation passage was originally written before
Linux had raw block device support that INN could use (in other words, a
*long* time ago), so it was just referencing Solaris. I suspect I deleted
the other stuff that assumed all the world was Solaris and missed that
part.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: CNSF at block devices and FreeBSD?
Author: Russ Allbery
Date: Thu, 28 Jan 2010 18:06
Date: Thu, 28 Jan 2010 18:06
39 lines
3177 bytes
3177 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> Maybe we should update the documentation of cycbuff.conf to be more
> specific about that limit of 2 GB.
> It appears that *older* Linux versions have a limit according to that
> other part of documentation (in INSTALL):
> For each metacycbuff, you now need to determine how many cycbuffs
> will make up the metacycbuff, the size of those cycbuffs, and where
> they will be stored. Some OSes do not support files larger than 2
> GB, which will limit the size you can make a single cycbuff, but you
> can still combine many cycbuffs into each metacycbuff. Older
> versions of Linux are known to have this limitation; FreeBSD does
> not.
I think this is older as in *really* old. I forget when Linux added large
file support, but it was a long time ago.
> Some OSes that support large files don't support direct access to
> block devices for large partitions (Solaris prior to Solaris 7, or
> not running in 64-bit mode, is in this category); on those OSes, if
> you want cycbuffs over 2 GB, you'll have to use regular files. If in
> doubt, keep your cycbuffs smaller than 2 GB. Also, when laying out
> your cycbuffs, you will want to try to arrange them across as many
> physical disks as possible (or use a striped disk array and put them
> all on that).
> In order to use any cycbuff larger than 2 GB, you need to build INN with
> the --enable-largefiles option.
It seems like a good idea to lift all or most of this into the other
documentation.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: CNSF at block devices and FreeBSD?
Author: Miquel van Smoorenburg
Date: Thu, 28 Jan 2010 19:59
Date: Thu, 28 Jan 2010 19:59
27 lines
2293 bytes
2293 bytes
In article <hjsh29$bdu$1@news.trigofacile.com>, Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: >Hi Miquel, > >Maybe we should update the documentation of cycbuff.conf to be more specific >about that limit of 2 GB. > >It appears that *older* Linux versions have a limit according to that >other part of documentation (in INSTALL): Some more datapoints (I'd send a patch, but in a few hours I'll be heading to the French Alps) : LFS support was added in 2000 (before linux 2.4.0, glibc 2.1.3) You know, when windows '98 was state of the art :) But, with 2.4 kernels, the maximum blockdevice size is 2TB. This means filesystems - and files - can also not be bigger than 2 TB. With 2.6 the blockdevice size limit (so filesystem size limit) is something like 2 ** 73, BUT on 32 bit systems the kernel must have been compiled with the config option CONFIG_LBD set, otherwise the limit is still 2TB. All distribution kernels enable this AFAIK. Mike.
Re: CNSF at block devices and FreeBSD?
Author: Michael Grimm
Date: Sun, 31 Jan 2010 21:36
Date: Sun, 31 Jan 2010 21:36
21 lines
1824 bytes
1824 bytes
Miquel van Smoorenburg <miquels@netscum.invalid> wrote: > Class bin for groups matching "*" > Buffer c1, size: 5.46 TBytes, position: 1.01 TBytes 193.18 cycles > Newest: 2010-01-28 16:37:54, 0 days, 0:00:00 ago > Buffer c2, size: 5.46 TBytes, position: 1011 GBytes 193.18 cycles > Newest: 2010-01-28 16:37:54, 0 days, 0:00:00 ago > > This is using blockdevices directly. 5.46 TBytes, must be some Raid system, and is it possible to use those like blockdevices? Didn't know that. And, holy cow, 193 cycles for such huge CNFS, I'd like to know how many generations are needed to see those many cycles at such huge buffers on text only feeds ;-) Regards, Michael -- to let
Re: CNSF at block devices and FreeBSD?
Author: D. Stussy
Date: Sun, 31 Jan 2010 23:59
Date: Sun, 31 Jan 2010 23:59
31 lines
2620 bytes
2620 bytes
"Michael Grimm" <trashcan@odo.in-berlin.de> wrote in message news:hk4t4n$1a5g$1@de-l.enfer-du-nord.net... > Miquel van Smoorenburg <miquels@netscum.invalid> wrote: > > > Class bin for groups matching "*" > > Buffer c1, size: 5.46 TBytes, position: 1.01 TBytes 193.18 cycles > > Newest: 2010-01-28 16:37:54, 0 days, 0:00:00 ago > > Buffer c2, size: 5.46 TBytes, position: 1011 GBytes 193.18 cycles > > Newest: 2010-01-28 16:37:54, 0 days, 0:00:00 ago > > > > This is using blockdevices directly. > > 5.46 TBytes, must be some Raid system, and is it possible to use those > like blockdevices? Didn't know that. > > And, holy cow, 193 cycles for such huge CNFS, I'd like to know how many > generations are needed to see those many cycles at such huge buffers on > text only feeds ;-) After 2 years with a text-only feed and my current configuration of 371.0 GB of space (chopped up into 176 2GB CNFS buffers), I'm only 82.1% through my first cycle (or 304.7 GB). (In mid-January 2008, I had to replace my spool disk due to hardware failure, so I started with an empty spool). So, at 150GB/year for a text only feed, it's about 37 years for one cycle, or 7,200 years for 193 cycles. An average generation is 25 years, so that's 288 generations - my best guess at current traffic rates. I expect to start my second cycle through my buffers about June or July of this year.
Re: CNSF at block devices and FreeBSD?
Author: Julien ÉLIE
Date: Sat, 06 Feb 2010 12:10
Date: Sat, 06 Feb 2010 12:10
76 lines
5026 bytes
5026 bytes
Hi Miquel, > Some more datapoints (I'd send a patch, but in a few hours I'll > be heading to the French Alps) : I hope your holiday was fine. What do you think of that change? Index: cycbuff.conf.pod =================================================================== --- cycbuff.conf.pod (révision 8880) +++ cycbuff.conf.pod (copie de travail) @@ -147,10 +147,18 @@ Use block devices directly. If your operating system allows you to call mmap() on block devices (Solaris and recent versions of Linux do, FreeBSD at last report does not), this is the recommended method since you can -avoid all of the native file system overhead. Note, however, that each -cycbuff cannot be larger than S<2 GB> with this method, so if you need a lot -of spool space, you may have to go back to disk files. +avoid all of the native file system overhead. +Note that some OSes do not support files larger than S<2 GB>, which will +limit the size you can make a single cycbuff, but you can still combine +many cycbuffs into each metacycbuff. Very old versions of Linux (before 2.4 +kernels, that raised the limit to S<2 TB>) are known to have this limitation; +FreeBSD does not. Some OSes that support large files don't support direct +access to block devices for large partitions (Solaris prior to S<Solaris +7>, or not running in 64-bit mode, is in this category); on those OSes, +if you want cycbuffs over S<2 GB>, you'll have to use regular files. +If in doubt, keep your cycbuffs smaller than S<2 GB>. + Partition the disk to make each partition equal to or smaller than S<2 GB>. If you're using Solaris, set up your partitions to avoid the first cylinder of the disk (or otherwise the cycbuff header will overwrite the disk partition table and render the cycbuffs inaccessible). Then, create device files for each block device you're going to use. Index: install.pod =================================================================== --- install.pod (révision 8880) +++ install.pod (copie de travail) @@ -1067,17 +1067,9 @@ For each metacycbuff, you now need to determine how many cycbuffs will make up the metacycbuff, the size of those cycbuffs, and where they will -be stored. Some OSes do not support files larger than S<2 GB>, which will -limit the size you can make a single cycbuff, but you can still combine -many cycbuffs into each metacycbuff. Older versions of Linux are known to -have this limitation; FreeBSD does not. Some OSes that support large -files don't support direct access to block devices for large partitions -(Solaris prior to S<Solaris 7>, or not running in 64-bit mode, is in this -category); on those OSes, if you want cycbuffs over S<2 GB>, you'll have to -use regular files. If in doubt, keep your cycbuffs smaller than S<2 GB>. -Also, when laying out your cycbuffs, you will want to try to arrange them -across as many physical disks as possible (or use a striped disk array and -put them all on that). +be stored. Also, when laying out your cycbuffs, you will want to try to +arrange them across as many physical disks as possible (or use a striped +disk array and put them all on that). In order to use any cycbuff larger than S<2 GB>, you need to build INN with the B<--enable-largefiles> option. See L<Installing INN> for more -- Julien ÉLIE « -- Où vous croyez-vous ici ? -- Où je me trouve, je sais. » (Astérix)
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