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@crc.id.au Web: http://www.crc.id.au Phone: (03) 9001 6090 - 0412 935 897
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Scott Ehrlich Sent: Tuesday, 12 February 2008 7:05 AM To: centos@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 Tue, 12 Feb 2008, Steven Haigh wrote:
$ man sync
Ah, yes. I haven't used it in a long time.
Actually, the more I've discussed this with the user, the more additional details are unfolding, so I'll let them figure out what they want to do, and we'll see where that actually leads.
Scott
-- Steven Haigh
Email: netwiz@crc.id.au Web: http://www.crc.id.au Phone: (03) 9001 6090 - 0412 935 897
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Scott Ehrlich Sent: Tuesday, 12 February 2008 7:05 AM To: centos@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
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
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@centos.org http://lists.centos.org/mailman/listinfo/centos