From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,5ea95efcabd4151b X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2004-03-19 15:53:06 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news.infoave.net!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail From: Bob Harris Newsgroups: comp.unix.tru64 Subject: Re: Performance problem (I/O) References: User-Agent: MT-NewsWatcher/3.3b1 (PPC Mac OS X) Message-ID: Date: Sat, 20 Mar 2004 00:01:40 GMT NNTP-Posting-Host: 16.140.32.194 X-Complaints-To: abuse@HP.com X-Trace: news.cpqcorp.net 1079740900 16.140.32.194 (Fri, 19 Mar 2004 16:01:40 PST) NNTP-Posting-Date: Fri, 19 Mar 2004 16:01:40 PST Organization: Hewlett-Packard Company Xref: archiver1.google.com comp.unix.tru64:11307 In article , peter@abbnm.com (Peter da Silva) wrote: > In article , > Bob Harris wrote: > > When you restored the file system using tar, you placed all the files in > > the exact order that you would then back them up. You positioned the > > metadata for each file next to the file that would preceed it. As a > > result you maximized your backup performance. > > AdvFS doesn't use an analog of the UFS cylinder group technique to keep > metadata near the file data? No. > That would explain some of the performance problems we see in an app that > writes a lot of small files. Not having cylinder groups may not have anything to do with small file write performance. This could be due to the way the last 8K allocation of a small file is managed. For space efficency, files under 150K tend to have the last 8K of the file stored in a frag of from 1K to 7K in length. But while the is being written, a full 8K is allocated. When the file is closed, the size of the file is checked and if a 10% saving in space can be obtained by turning the last 8K into a frag, then a frag is allocated, the end of the flie copied to the frag, and then the original 8K is deallocated. All of this results in additional disk I/O for small files when they are closed. In the newer versions of Tru64 UNIX, there is chfsets option to disable this and make all files created from that point forward allocation storage in multiples of 8K. For older versions there is a global variable that can be patched in the kernel to disable frag'ing of a file. In the 8 million file case, if the small files are evenly distributed between 1K and and any size that is 8K or greater, then turning off file frag'ing would increase the storage usage for that file system by about 32 gigabytes. At one time I would have choaked on such a number. Today, I have more storage than that on my laptop. I will not attempt to place a value on this to you or your company as laptop storage is not the same as SCSI, RAID, SAN storage which tends to come in smaller sizes and cost more. But is still a much lower cost than when I was the system manager for a VAX-11/780 :-) Times change. Bob Harris