Question about file system checks

Ivan Voras ivoras at freebsd.org
Fri Mar 28 08:26:30 PDT 2008


Dan Nelson wrote:
> In the last episode (Mar 28), Ivan Voras said:

> Note that you can tweak the SU caching time by adjusting the sysctls
> kern.{meta,dir,file}delay.  Take them down to 10 seconds instead of 30
> and you'll lose less files (at the cost of more disk I/O of course).

Yes, but the other file systems were also tested with their respective
defaults.

>> 5. ZFS on FreeBSD was the fastest, in the sense of creating the most files 
>> during this benchmark (though speed was not the target for this benchmark 
>> so this is a low-quality observation), closely followed by JFS and XFS.
> 
> ZFS's transaction commit interval is only 5 seconds (see txg_time in
> uts/common/fs/zfs/txg.c); how many more files/second did it create vs
> the others to be able to lose the most files in that window? :)

All were tested within the same time: 50 seconds. Details: the machine
being tested was connected to a "reporter" machine via plain crossover
cable, the reporter had a TCP server and the tested machine had a TCP
client that run a tight loop of IO operations, single threaded, randomly
choosing between creating files and directories, appending to them and
changing (a random amount of data in a random position) them, then
sending to the server a description (log) of each IO operation after it
has been done. These were several Python scripts I wrote.

After 50 seconds I'd pull the plug off the server (meaning it's not
*exactly* 50 seconds but 50 seconds+time of my action, but it doesn't
matter as everything is timestamped), plug it back in, run fsck. The
reporting server would replay the log of IO operations from the first to
the last and generate a report of what should have been on the tested
machine which would then be compared with what was found on the tested
machine (by scripts/automated).



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20080328/37ea12f2/signature.pgp


More information about the freebsd-stable mailing list