WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Is noncached_write() in xc_domain_save() actually doing what it says?
From: "Mike Sun" <msun@xxxxxxxxxx>
Date: Wed, 7 Jan 2009 22:25:10 -0500
Delivery-date: Wed, 07 Jan 2009 19:25:48 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=6lHupOhHZvCBv+A/udP3YdXAjn0giZL6Y3y0XD54jRM=; b=pN21bOJSKCSllLcAatXjNWPVn02mMQNU4xl9owe6sD8tYviH7X3tMnoRybE00rTu+h el8iflbSI5NwolbZAbG4+Q6oYo/LbYNX1zaSqYweZVtEp98ad25PRE7HKCP/7quFQWEL 0N7QAxh4k0L0evLnCtabpIoBuyJjc3TNBZ3eA=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Is noncached_write() in xc_domain_save() actually doing what it says?, Mike Sun <=