Re: After reboot fs with barrier faster deletes then fs with nobarrier

Chris Wedgwood
2007-06-27T21:45:12Z

On Wed, Jun 27, 2007 at 06:58:29PM +0100, Szabolcs Illes wrote:

> I repeated this test several times, same results. I made sure
> nothing was running while I was doing the tests, cpu was idle, hdd
> led was not on, etc.

instead of doing a reboot can you try something like:

echo 1 > /proc/sys/vm/drop_caches

or
echo 3 > /proc/sys/vm/drop_caches

(the value is a bit mask, bit 0 will drop the page cache, bit 1 will
drop the slab)

does that give you more or less the same results as rebooting?

another thing to try, before the delete, also try:

find path/to/whatever -noleaf >/dev/null

and see if that helps (i expect it should greatly)