🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #60282

Re: cnfs file size > 2Gb problem

#60282
From: Miquel van Smoorenburg
Date: Sat, 07 Sep 2002 08:28
38 lines
3016 bytes
In article <2Bae9.483893$2p2.19186687@bin4.nnrp.aus1.giganews.com>,
Mark Hittinger <bugs@pu.net> wrote:
>clarke@news.cilia.org (Ed Clarke) writes:
>>Been done already; Miquels at cistron.nl has had rawfs out for a long
>>time on linux 2.2.x.  I don't think he's ported it to the 2.4 kernel
>>yet.  It maps raw disk partitions into CNFS files.
>
>Its close to what I was looking for - pretty neat.

However since it's a 2.2 kernel you're limited to 2 GB per file/partition.

>What I was really looking for is a dumbfs that would allow multiple very large
>contiguous files on a single big device.  I would use multiple files in order
>to have more flexibility with allocating storage to text, binaries, etc.
>I would also like to play with some positional optimization of cycbuffs where
>the cycbuffs for, say, control would be at the center of the spindle.  We
>used to focus a lot on such optimization in the old days but I'm not sure
>it has any relevance today.  Still it would be neat to experiment with it.
>
>For example if I had several 100gb drives I could put cycbuffs in the center 
>of the drives for control/jobs/etc and put cycbuffs for very infrequently used 
>groups towards the beginning of the drive and towards the end of the drive.

What you probably want is an OS that allows you to use a partition
directly in large-file mode. Linux 2.4 does this (I've migrated most
servers from linux-2.2+rawfs to linux-2.4). Then you need to hack
the cnfs driver in innd so that you can specify parts of a file
as cycbuff instead of an entire file.

Say

cycbuff:sdb1-1:/dev/sdb1:1023M:0-1023M		# Need some fudge at the end
cycbuff:sbb1-2:/dev/sdb2:1023M:1024-2047M

.. or something similar. I think it's easy enough to do.

Mike.
Technical Details
Message-ID: <alcdca$4m1$2@ncc1701.cistron.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed1.bredband.com!bredband!news01.chello.se!amsnews01.chello.com!newsgate.cistron.nl!news.cistron.nl!not-for-mail
References: <al4h1g$gkl$1@news.ust.hk> <LF2e9.210334$On.8239962@bin3.nnrp.aus1.giganews.com> <slrnanhpmj.4oj.clarke@news.cilia.org> <2Bae9.483893$2p2.19186687@bin4.nnrp.aus1.giganews.com>

Show Full Headers
Complete Article Headers
Message-ID: <alcdca$4m1$2@ncc1701.cistron.net>
Subject: Re: cnfs file size > 2Gb problem
Date: Sat, 07 Sep 2002 08:28:58 +0000
From: "Miquel van Smoorenburg" <miquels.at.cistron.nl.spamtrap@netscum.nl>
References: <al4h1g$gkl$1@news.ust.hk> <LF2e9.210334$On.8239962@bin3.nnrp.aus1.giganews.com> <slrnanhpmj.4oj.clarke@news.cilia.org> <2Bae9.483893$2p2.19186687@bin4.nnrp.aus1.giganews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed1.bredband.com!bredband!news01.chello.se!amsnews01.chello.com!newsgate.cistron.nl!news.cistron.nl!not-for-mail
Newsgroups: news.software.nntp
Organization: Cistron
Lines: 37
NNTP-Posting-Host: traveler.cistron-office.nl
Content-Type: text/plain; charset=iso-8859-15
X-Trace: ncc1701.cistron.net 1031387338 4801 62.216.29.67 (7 Sep 2002 08:28:58 GMT)
X-Complaints-To: abuse@cistron.nl
NNTP-Posting-Date: Sat, 7 Sep 2002 08:28:58 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: miquels@cistron-office.nl (Miquel van Smoorenburg)