Re: XFS defragmentation issue

Stan Hoeppner
2010-09-12T09:44:45Z

Emmanuel Florac put forth on 9/12/2010 3:43 AM:
> Le Sat, 11 Sep 2010 14:38:48 -0500 vous écriviez:
>
>> That's good to know Dave. Thanks. I created a short-name script a
>> while back with "echo 3 > /proc/sys/vm/drop_caches" merely so I could
>> "clear the baffles" now and then.
>
> But isn't it somewhat risky? isn't there any risk of data loss by
> dropping cache at any moment?

From: http://linux-mm.org/Drop_Caches

This is a non-destructive operation and will only free things that are
completely unused. Dirty objects will continue to be in use until
written out to disk and are not freeable. If you run "sync" first to
flush them out to disk, these drop operations will tend to free more
memory.

--
Stan