[CentOS] Flushing RAM contents?

Wojtek Pilorz wpilorz at bdk.pl
Mon Feb 11 20:44:11 UTC 2008


On Mon, Feb 11, 2008 at 03:05:10PM -0500, Scott Ehrlich wrote:
> A user wants to time a command/program/application and ensure the full 
> contents of that command's data management has been flushed from RAM/cache 
> and saved to disk.  Is there a way to ensure the cache/RAM is flushed to 
> disk, or is the flushing a function of the kernel or the application?
> 
Besides sync, look for sync at mount manpage, sync or write in chattr manpage
as well as man fsync, fdatasync

Also, for timing programs, kernel documentation of
/proc/sys/vm/drop_caches in filesystems/proc.txt
will be useful.

Wojtek

> This happens to be on a 64-bit Intel system with 64-bit CentOS 5, fully 
> patched.   But even if the system were an out-of-box 64-bit install, 
> unpatched, would it make a difference?
> 
> Thanks.
> 
> Scott
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos



More information about the CentOS mailing list