Hello everyone,
> So my question is, how do I flush the directory cache, so ls reads the
> filenames from disk on the second run? Thanx!
I was assuming that the kernel has a directory cache, but it turns out that I
just need to flush the disk cache from the "sub"devices.
hdparm does this! Setting hard disk parameters can only be done for the main
device, eg "hdparm -d 1 /dev/hda", but flushing and testing a filesystem can
also be done for a "sub"device, so "hdparm -f /dev/hda1" will work, and
renders the result I need.
Now I can test the influence of the filesystem cache (-a) on the speed of
disk transactions. The hdparm testing mode doesn't show any difference when
changing the filesystem cache size, but this cache does have influence on
"real world" disk transactions.
Bye,
Leonard.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list