From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b2d5,e66415018d2564f7 X-Google-Attributes: gid10b2d5,public X-Google-Thread: fee84,e66415018d2564f7 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-09-15 12:06:29 PST Path: bga.com!chinacat!cs.utexas.edu!uunet!not-for-mail From: chris@suite.sw.oz.au (Chris Maltby) Newsgroups: news.admin.technical,comp.unix.osf.osf1 Subject: Re: Tunefs the /news filesystem? Date: 15 Sep 1994 14:20:03 -0400 Organization: Softway Pty Limited Sender: zorch@ftp.UU.NET Distribution: world Message-ID: <35a38j$rol@ftp.UU.NET> References: <355aci$be@kenya.isu.edu> <3584uk$mkm@ftp.UU.NET> NNTP-Posting-Host: ftp.uu.net Xref: bga.com news.admin.technical:280 comp.unix.osf.osf1:3558 In <3584uk$mkm@ftp.UU.NET> rob@agate.berkeley.edu (Rob Robertson) writes: >In article <355aci$be@kenya.isu.edu> ian@pipex.net (Ian Phillipps) writes: > > Increasing space by 8% will win you around two months at the rate Usenet > is expanding. It's probably not worth it, but try it and see, and let us > know what happens. The rest of us would probably prefer this experiment > to be done on someone else's file system :-) >i've done it with my 4 gig striped partition, and am not seeing any >ill affects. i've set it to 5% tho. Well, you won't see any impact on performance until your disk starts to get full. The 10% reservation default is tuned (or was tuned) to suit a combination of CPU and disk performance for VAX11/780s. The extent of the non-linear performance problem depends on how fast you can find the best next block for a file - when there aren't many easy choices left, it rapidly gets much harder to find the "best" spot. Some of this is related to the disk geometry stuff, so fiddling with sector/track numbers may help. The fragmentation algorithm can cause slowdowns on very full disks too. In any case, I have happily used minfree of 5% (and less) on a news partition. Given the size of the average news article, it makes some more sense to use a 4K block sizes, so you can have 512 byte fragments. > As for optimization - Sun 4.1 automatically sets space/time on the fly > depending on how full the disk is. If OSF1 does the same, you won't get > anything from setting it by hand. >it only changes it from time to space if you cross into your minfree >space. Actually, it changes when the number of free fragments gets to be too large a proportion of your free space. This is so that you don't hit the problem where there are no free whole blocks, just assorted fragments - with a resulting allocation failure. You can eliminate the space/time tradeoff entirely by setting fragsize==blocksize, or reduce it with (say) fragsize=512, blocksize=1024. If your ffs has a fixed maxcontig test, you can recover some of the sequential performance you lose this way by boosting maxcontig. When time optimisation is on, the best placed block will be assigned - even for a possible fragment. When space is on, a suitable fragment will be found instead, which preserves the (presumably) dwindling pool of free blocks. Perhaps a better solution might be to use a file system type better suited to the create, write sequential once, read sequential infrequent, delete pattern of news files. ProLogic have a compressing filesystem they call dtfs which has this property as well and would make a much bigger impact than any minfree setting. Also, it has dynamic allocated inodes, to eliminate the other bane of the news administrators life. -- Chris Maltby - Softway Pty Ltd Internet: chris@softway.sw.oz.au PHONE: +61-2-698-2322 "What I don't want is for C to look like C++ with the FAX: +61-2-699-9174 functionality out and the syntax left behind" - Pike.