lkml.org 
[lkml]   [2010]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 2/3] workqueue: Add an API to create a singlethread workqueue attached to the current task's cgroup
    Hello,

    On 05/27/2010 03:12 PM, Michael S. Tsirkin wrote:
    >> I don't understand the reasons for this patch, but this doesn't matter.
    >
    > Depending on userspace application, driver can create a lot of work
    > for a workqueue to handle. By making the workqueue thread
    > belong in a cgroup, we make it possible to the CPU and other
    > resources thus consumed.

    Hmmm.... I don't really get it. The unit of scheduling in workqueue
    is a work. Unless you're gonna convert every driver to use this
    special kind of workqueue (and what happens when multiple tasks from
    different cgroups share the driver?), I can't see how this is gonna be
    useful. If you really wanna impose cgroup control on workqueue items,
    you'll have to do it per work item which might lead to the problem of
    priority inversion. Can you please describe what you're trying to do
    in more detail?

    Thank you.

    --
    tejun


    \
     
     \ /
      Last update: 2010-05-27 18:19    [W:5.957 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site