lkml.org 
[lkml]   [2015]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v3 3/4] block: loop: use kthread_work
From
On Thu, May 7, 2015 at 3:17 PM, Christoph Hellwig <hch@infradead.org> wrote:
> On Thu, May 07, 2015 at 01:08:25AM +0800, Ming Lei wrote:
>> The following patch will use dio/aio to submit IO to backing file,
>> then it isn't good to schedule IO concurrently from work, so
>> use kthread_work.
>
> I can't really parse this, what's the specific advantage here?

Patch 4's commit log provides the test data.

From the data, it is observed that one thread is enough to get
similar throughput with previous one which submits IO from
work concurrently.

Single thread can decrease context switch a lots, also one thread is
often used to submit AIO in reality.

Thanks,
Ming Lei


\
 
 \ /
  Last update: 2015-05-07 12:41    [W:0.064 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site