xfs
[Top] [All Lists]

Re: [RFC PATCH-tip 6/6] xfs: Enable reader optimistic spinning for DAX i

To: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Subject: Re: [RFC PATCH-tip 6/6] xfs: Enable reader optimistic spinning for DAX inodes
From: Waiman Long <waiman.long@xxxxxxx>
Date: Tue, 14 Jun 2016 15:08:56 -0400
Authentication-results: spf=none (sender IP is ) smtp.mailfrom=waiman.long@xxxxxxx;
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, <linux-kernel@xxxxxxxxxxxxxxx>, <x86@xxxxxxxxxx>, <linux-alpha@xxxxxxxxxxxxxxx>, <linux-ia64@xxxxxxxxxxxxxxx>, <linux-s390@xxxxxxxxxxxxxxx>, <linux-arch@xxxxxxxxxxxxxxx>, <xfs@xxxxxxxxxxx>, Davidlohr Bueso <dave@xxxxxxxxxxxx>, Jason Low <jason.low2@xxxxxx>, Dave Chinner <david@xxxxxxxxxxxxx>, Scott J Norton <scott.norton@xxxxxxx>, Douglas Hatch <doug.hatch@xxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <20160614182423.GA6330@xxxxxxxxxxxxx>
References: <1465927959-39719-1-git-send-email-Waiman.Long@xxxxxxx> <1465927959-39719-7-git-send-email-Waiman.Long@xxxxxxx> <20160614182423.GA6330@xxxxxxxxxxxxx>
Spamdiagnosticmetadata: NSPM
Spamdiagnosticoutput: 1:99
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130109 Thunderbird/10.0.12
On 06/14/2016 02:24 PM, Christoph Hellwig wrote:
On Tue, Jun 14, 2016 at 02:12:39PM -0400, Waiman Long wrote:
This patch enables reader optimistic spinning for inodes that are
under a DAX-based mount point.

On a 4-socket Haswell machine running on a 4.7-rc1 tip-based kernel,
the fio test with multithreaded randrw and randwrite tests on the
same file on a XFS partition on top of a NVDIMM with DAX were run,
the aggregated bandwidths before and after the patch were as follows:
And why is this specific to DAX?  Many I/O operations already never
got out to disk, and ilock is mostly held for operations that have
nothing to do with disk I/O.

It is just a showcase for the rwsem change. We can certainly have more use cases.

Cheers,
Longman

<Prev in Thread] Current Thread [Next in Thread>