From: "Mike Sun" Subject: Is noncached_write() in xc_domain_save() actually doing what it says? Date: Wed, 7 Jan 2009 22:25:10 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi, I'm curious if noncached_write() (from xc_domain_save.c) is actually doing writes without adding to the file system cache. From what I see, it's doing a write_exact(), then calling discard_file_cache() without a flush, and ostensibly relying on the posix_fadvise64(..., POSIX_FADV_DONTNEED) call to remove those written pages from the file cache... but from what I understand, the POSIX_FADV_DONTNEED call won't be able to remove those pages unless they have already been flushed to disk. Am I misunderstanding this? Thanks, Mike