lkml.org 
[lkml]   [2019]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: single aio thread is migrated crazily by scheduler
* Jens Axboe <axboe@kernel.dk> [2019-11-21 09:19:29]:

> >
> > I wish there was a flag to wake_up() or to the event object that says
> > to relinquish the remaning of the time-slice to the waiter on same
> > CPU, since I will be soon sleeping.
>
> Isn't that basically what wake_up_sync() is?
>

Workqueue don't seem to be using wait_queue_head which is needed when using
wake_up_sync and its related APIs. Also wake_up_sync would work when the
waking task seems to hand off the CPU and goes to sleep/block. However here,
i.e in fsperf case atleast, the waking thread continues to run after it has
woken the per cpu workqueue.

--
Thanks and Regards
Srikar Dronamraju

\
 
 \ /
  Last update: 2019-12-09 17:58    [W:0.061 / U:2.912 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site