Article View: news.software.nntp
Article #82687Re: CNSF at block devices and FreeBSD?
From: 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.
Technical Details
Message-ID:
<4b61b127$0$22919$e4fe514c@news.xs4all.nl>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!usenetcore.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mailReferences:
<hjl4uq$1d56$2@de-l.enfer-du-nord.net> <87tyu9hldo.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <4b61b127$0$22919$e4fe514c@news.xs4all.nl> Subject: Re: CNSF at block devices and FreeBSD? Date: Thu, 28 Jan 2010 15:45:43 +0000 From: "Miquel van Smoorenburg" <miquels@netscum.invalid> References: <hjl4uq$1d56$2@de-l.enfer-du-nord.net> <87tyu9hldo.fsf@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!usenetcore.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Newsgroups: news.software.nntp Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: mikevs@n2o.xs4all.nl (Miquel van Smoorenburg) Lines: 47 NNTP-Posting-Host: 194.109.0.112 X-Trace: 1264693543 news.xs4all.nl 22919 [::ffff:194.109.0.112]:35229 X-Complaints-To: abuse@xs4all.nl X-Original-Bytes: 2788