Re: Overview of concurrency managed workqueue

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Daniel Walker
Date: Wednesday, June 16, 2010 - 9:30 am

On Wed, 2010-06-16 at 17:50 +0200, Tejun Heo wrote:

It's not a flushing situation .. The high priority thread is a userspace
thread so it , AFAIK, can't flush any workqueues.


I didn't see anything in there related to this discussion.


Why not? They currently are to no known ill effects (none that I know
of).


It may not have been a feature in the past, but it's used as a feature
now.. So it is a feature even tho you don't want it to be.


But it is in the mainline, that's why we're talking right now.

What I was thinking is that you could have a debugfs interface which
would list off what workqueues you system is processing and give the
user the ability to pull one or more of those workqueues into individual
threads for processing, just like it currently is. That way I can
prioritize the work items with out you having to give priorities through
your entire system.

The alternative is that you would give each work item a settable
priority and your whole system would have to honor that, which would be
a little like re-creating the scheduler.


The cases are all in the mainline kernel, you just have to look at the
code in a different way to understand them .. If I have a userspace
thread at a high priority and I'm making calls into the kernel, some of
those call inevitably will put work items onto workqueues, right? I'm
sure you can think of 100's of ways in which this could happen .. At
that point my thread depends on the workqueue thread, since the
workqueue thread is doing processing for which I've , in some way,
requested from userspace.

Daniel

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 01/30] kthread: implement kthread_data(), Tejun Heo, (Mon Jun 14, 2:37 pm)
[PATCH 09/30] workqueue: kill cpu_populated_map, Tejun Heo, (Mon Jun 14, 2:37 pm)
[PATCH 10/30] workqueue: update cwq alignement, Tejun Heo, (Mon Jun 14, 2:37 pm)
[PATCH 12/30] workqueue: introduce worker, Tejun Heo, (Mon Jun 14, 2:37 pm)
[PATCH 17/30] workqueue: implement worker states, Tejun Heo, (Mon Jun 14, 2:37 pm)
[PATCH 22/30] workqueue: implement WQ_NON_REENTRANT, Tejun Heo, (Mon Jun 14, 2:37 pm)
[PATCH 30/30] async: use workqueue for worker pool, Tejun Heo, (Mon Jun 14, 2:37 pm)
Re: [PATCH 27/30] workqueue: implement DEBUGFS/workqueue, Frederic Weisbecker, (Tue Jun 15, 6:54 am)
Re: [PATCH] SubmittingPatches: add more about patch descri ..., Christoph Lameter, (Tue Jun 15, 9:33 am)
Overview of concurrency managed workqueue, Tejun Heo, (Tue Jun 15, 11:25 am)
Re: Overview of concurrency managed workqueue, Christoph Lameter, (Tue Jun 15, 11:40 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Tue Jun 15, 11:44 am)
Re: Overview of concurrency managed workqueue, Daniel Walker, (Tue Jun 15, 12:43 pm)
Re: Overview of concurrency managed workqueue, Florian Mickler, (Tue Jun 15, 11:55 pm)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Wed Jun 16, 5:10 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Wed Jun 16, 5:22 am)
Re: Overview of concurrency managed workqueue, Daniel Walker, (Wed Jun 16, 6:27 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Wed Jun 16, 6:30 am)
Re: Overview of concurrency managed workqueue, Johannes Berg, (Wed Jun 16, 6:37 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Wed Jun 16, 6:39 am)
Re: Overview of concurrency managed workqueue, Daniel Walker, (Wed Jun 16, 6:41 am)
Re: Overview of concurrency managed workqueue, Johannes Berg, (Wed Jun 16, 6:42 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Wed Jun 16, 6:45 am)
Re: Overview of concurrency managed workqueue, Daniel Walker, (Wed Jun 16, 7:05 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Wed Jun 16, 7:15 am)
Re: Overview of concurrency managed workqueue, Daniel Walker, (Wed Jun 16, 7:34 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Wed Jun 16, 7:50 am)
Re: Overview of concurrency managed workqueue, Daniel Walker, (Wed Jun 16, 8:11 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Wed Jun 16, 8:50 am)
Re: Overview of concurrency managed workqueue, Daniel Walker, (Wed Jun 16, 9:30 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Wed Jun 16, 9:55 am)
Re: Overview of concurrency managed workqueue, Daniel Walker, (Wed Jun 16, 11:22 am)
Re: Overview of concurrency managed workqueue, Stefan Richter, (Wed Jun 16, 11:31 am)
Re: Overview of concurrency managed workqueue, Daniel Walker, (Wed Jun 16, 11:41 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Wed Jun 16, 11:46 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Wed Jun 16, 12:20 pm)
Re: Overview of concurrency managed workqueue, Daniel Walker, (Wed Jun 16, 12:36 pm)
Re: Overview of concurrency managed workqueue, Daniel Walker, (Wed Jun 16, 12:46 pm)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Wed Jun 16, 12:52 pm)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Wed Jun 16, 12:58 pm)
Re: Overview of concurrency managed workqueue, Daniel Walker, (Wed Jun 16, 1:19 pm)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Wed Jun 16, 1:24 pm)
Re: Overview of concurrency managed workqueue, Daniel Walker, (Wed Jun 16, 1:40 pm)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Wed Jun 16, 2:41 pm)
Re: Overview of concurrency managed workqueue, Florian Mickler, (Wed Jun 16, 10:29 pm)
Re: Overview of concurrency managed workqueue, Florian Mickler, (Wed Jun 16, 11:21 pm)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Thu Jun 17, 1:28 am)
Re: Overview of concurrency managed workqueue, Andy Walls, (Thu Jun 17, 5:01 am)
Re: Overview of concurrency managed workqueue, Daniel Walker, (Thu Jun 17, 9:56 am)
Re: Overview of concurrency managed workqueue, Daniel Walker, (Thu Jun 17, 11:03 am)
Re: Overview of concurrency managed workqueue, Daniel Walker, (Thu Jun 17, 3:28 pm)
Re: Overview of concurrency managed workqueue, Andrew Morton, (Thu Jun 17, 4:14 pm)
Re: Overview of concurrency managed workqueue, Andrew Morton, (Thu Jun 17, 4:15 pm)
Re: Overview of concurrency managed workqueue, Andrew Morton, (Thu Jun 17, 4:16 pm)
Re: Overview of concurrency managed workqueue, Joel Becker, (Thu Jun 17, 4:25 pm)
Re: Overview of concurrency managed workqueue, Andrew Morton, (Thu Jun 17, 4:56 pm)
Re: Overview of concurrency managed workqueue, Florian Mickler, (Thu Jun 17, 11:36 pm)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Fri Jun 18, 12:15 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Fri Jun 18, 12:16 am)
Re: Overview of concurrency managed workqueue, Andrew Morton, (Fri Jun 18, 12:31 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Fri Jun 18, 12:31 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Fri Jun 18, 1:03 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Fri Jun 18, 1:09 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Fri Jun 18, 1:22 am)
Re: Overview of concurrency managed workqueue, Daniel Walker, (Fri Jun 18, 9:38 am)
Re: Overview of concurrency managed workqueue, Andrew Morton, (Fri Jun 18, 10:02 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Fri Jun 18, 10:28 am)
Re: Overview of concurrency managed workqueue, Daniel Walker, (Fri Jun 18, 10:29 am)
Re: Overview of concurrency managed workqueue, Andi Kleen, (Sat Jun 19, 1:38 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Sat Jun 19, 1:40 am)
Re: Overview of concurrency managed workqueue, Andi Kleen, (Sat Jun 19, 1:55 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Sat Jun 19, 2:01 am)
Re: Overview of concurrency managed workqueue, Andi Kleen, (Sat Jun 19, 2:08 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Sat Jun 19, 2:12 am)
Re: Overview of concurrency managed workqueue, Andi Kleen, (Sat Jun 19, 2:15 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Sat Jun 19, 2:17 am)
Re: Overview of concurrency managed workqueue, Andi Kleen, (Sat Jun 19, 2:27 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Sat Jun 19, 2:42 am)
Re: Overview of concurrency managed workqueue, Andi Kleen, (Sat Jun 19, 5:20 am)
Re: Overview of concurrency managed workqueue, Tejun Heo, (Sat Jun 19, 5:48 am)
[PATCH] kthread: implement kthread_worker, Tejun Heo, (Sat Jun 19, 8:53 am)
Re: [PATCH] kthread: implement kthread_worker, Randy Dunlap, (Mon Jun 21, 1:33 pm)
Re: [PATCH] kthread: implement kthread_worker, Tejun Heo, (Tue Jun 22, 12:31 am)