FYI: better workaround for updating 'df' info after 'rm' on xfs-vols

Dave Chinner david at fromorbit.com
Tue Feb 26 14:54:50 CST 2013


On Mon, Feb 25, 2013 at 09:47:38PM -0800, Linda Walsh wrote:
> 
> >> Someone suggested cat [1|3] >/proc/sys/vm/drop_caches.
> > 
> > echo, not cat. It does work every time, whether you see anything
> > obvious or not. And if you want to reclaim inodes, then you want
> > "echo 2 > ..."
> ----
> 	Erk...meant echo... too much draino on the braino
> (doesn't 3 include '2'? I thought it was a bit mask?)

Yes, it is a bit mask. 1 = page cache, 2 = slab cache, 3 = both.
Inode reclaim is part of the slab cache reclaim, so page cache
reclaim won't make any difference to the behaviour at all.

Cheers,

Dave.
-- 
Dave Chinner
david at fromorbit.com



More information about the xfs mailing list