[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Is noncached_write() in xc_domain_save() actually doing what it says?


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: "Mike Sun" <msun@xxxxxxxxxx>
  • Date: Wed, 7 Jan 2009 22:25:10 -0500
  • Delivery-date: Wed, 07 Jan 2009 19:25:48 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=E9lC9I3iLVtV342bQQ2eRSwo9JEw0Ci4cl1MxNNmFlUDh5xCNpnKySdw/oyL6YAQe1 R5VXPGXeN5qLLhKI/CYYHaYKh1LvA1pYXRfI7mKyZbzs+8Pa1kYA1+UBdOXPluYw3mty RpYNOgEt4c8+5ZuhBKGfkqqY3F7agIfPpz4a4=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.