home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.sysv386
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!ncar!ico!dougp
- From: dougp@ico.isc.com (Doug Pintar)
- Subject: Re: ISC 3.0: Why Very Fast File System is slower?
- Message-ID: <1992Jul28.060848.21420@ico.isc.com>
- Sender: uucp@ncar.ucar.edu (UNIX-to-UNIX Copy)
- Organization: Interactive Systems Corp., Boulder CO
- References: <76678@ut-emx.uucp>
- Date: Tue, 28 Jul 1992 06:08:48 GMT
- Lines: 34
-
- In article <76678@ut-emx.uucp> muhammad@chaos.utexas.edu (Muhammad Pervez) writes:
- >
- > From the tests I have done with the VFFS (Very Fast File System),
- >I am getting a performance of about half as compared to the default
- >file system (S51K). Am I missing something? I will like to hear
- >comments about this new file system.
- >
-
- > Then used the copy command:
- >
- > # time cp foo bar
- >
- Here's the problem. The VFFS provides no buffering, nor does it do the
- adaptive read-ahead that the standard (ISC anyway) filesystem does. The
- 'cp' command uses a small (4K) buffer for reading and writing the file
- when copying it. The standard filesystem will attempt to read something
- like 34KB at a time, so most of the reads will wind up getting things
- from the buffer cache. In addition, you won't see the times taken by the
- cache manager doing write-behind. The VFFS was designed for programs that
- use *large* buffers internally, usually to do unidirectional file I/O.
- Try doing something like
- dd if=foo of=/dev/null bs=1024k
- to see how fast it'll read. It wasn't designed to be terrific on copy
- operations, but you could easily write a small program to write 30MB in
- 1MB chunks and see how fast it works.
-
- This is a problem of using the wrong benchmarking method. Remember, the
- VFFS was *not* designed to be a general-purpose filesystem (although, as
- you've demonstrated, it will *work* as such -- just not terribly well).
- Think of big files such as images (maybe 18MB each) where you need to
- read in large portions of them to perform some kind of computation and
- then need to write it out again somewhere later.
- Cheers,
- DLP
-