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] [PATCH] tapdisk:check O_DIRECT on hole file for performance

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] tapdisk:check O_DIRECT on hole file for performance
From: Wei Kong <weikong.cn@xxxxxxxxx>
Date: Tue, 18 Aug 2009 10:42:42 +0800
Delivery-date: Mon, 17 Aug 2009 19:43:45 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=HHpK3pWCWV1gDIbsAkB+qOlgveqRT6A+iz+r76r2e1U=; b=rBKDQWGSaBQMKenXXpPnFYZW7O3hI3dpAPF++lpDQ6m86tvzS+iUxM7eqU0NYd1AJY vgbOyFvqzldDD+T45jc3QkBXEFLcY9BOS+QKjP98r9nKILFTg8lhWAnn8NnMbYnYmZgz p8pQckMm/J5IouOEzznB6E+iC5LqEqEOoNb2g=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=NL3CGjBSC21U4itWTY6tWD48dHXtg8TqW5v4RHiXDfKpb9xSNvqV+AOioxFpPvzl0k nTfNBILqPpOnOF/iPB53IxjgzlMT+sTk6H0Pne2JEbWLc3frZEtAR8IM/sw8PnbYfXid jA1NNMQoh46jaTn2RUmInc26xsJjh6XyEN5CA=
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
Although tapdisk has been instead of tapdisk-ioemu, but it still used on some old xen-3.2.
So fix a performance problem here.
--

Kernel aio will retry when encounter a block doesn't allocated, then do async io,
but O_DIRECT flag was there, so io_wait on sync data.
And clean a little code style.

Signed-off-by: Wei Kong <weikong.cn@gmail.com>

Attachment: tapdisk_check_O_DIRECT_on_hole_file.patch
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] tapdisk:check O_DIRECT on hole file for performance, Wei Kong <=