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? 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
$ man sync -- Steven Haigh Email: netwiz at crc.id.au Web: http://www.crc.id.au Phone: (03) 9001 6090 - 0412 935 897 -----Original Message----- From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Scott Ehrlich Sent: Tuesday, 12 February 2008 7:05 AM To: centos at centos.org Subject: [CentOS] Flushing RAM contents? 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? 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 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.20.2/1270 - Release Date: 10/02/2008 12:21 PM
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