Re: [PATCHSET] cpuhog: implement and use cpuhog

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tejun Heo
Date: Thursday, March 11, 2010 - 8:13 pm

Hello, Peter.

On 03/11/2010 04:25 AM, Peter Zijlstra wrote:

The distinction would be diabling of IRQ on each CPU.
hog_[one_]cpu[s]() schedule highest priority task to, well, hog the
cpu but doesn't affect contextless part of the cpu (irq, bh, whatnot).
In that sense, it is the lowest bottom of upper half but not quite
stopping the cpu and I think the distinction is rather important to
make.  With the proposed preemption disabling around the callback, it
pretty much behaves like a complete hog too.


I wanted to avoid verbs associatffed with the traditional workqueue -
schedule and queue, while emphasizing that this is something that you
don't want to abuse - so the verb hog.  monopolize_cpu() was the
second choice but hog is shorter, sweeter and can also be used as a
noun as-is, so I chose hog.

So, those were my rationales.  What do you think?

Thanks.

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

Messages in current thread:
[PATCHSET] cpuhog: implement and use cpuhog, Tejun Heo, (Mon Mar 8, 8:53 am)
[PATCH 1/4] cpuhog: implement cpuhog, Tejun Heo, (Mon Mar 8, 8:53 am)
Re: [PATCH 2/4] stop_machine: reimplement using cpuhog, Arjan van de Ven, (Mon Mar 8, 9:32 am)
Re: [PATCH 2/4] stop_machine: reimplement using cpuhog, Heiko Carstens, (Mon Mar 8, 10:10 am)
Re: [PATCH 2/4] stop_machine: reimplement using cpuhog, Oleg Nesterov, (Mon Mar 8, 11:27 am)
Re: [PATCH 1/4] cpuhog: implement cpuhog, Oleg Nesterov, (Mon Mar 8, 12:01 pm)
Re: [PATCH 2/4] stop_machine: reimplement using cpuhog, Oleg Nesterov, (Mon Mar 8, 12:06 pm)
Re: [PATCH 2/4] stop_machine: reimplement using cpuhog, Heiko Carstens, (Mon Mar 8, 12:37 pm)
Re: [PATCH 1/4] cpuhog: implement cpuhog, Tejun Heo, (Mon Mar 8, 4:18 pm)
Re: [PATCH 2/4] stop_machine: reimplement using cpuhog, Heiko Carstens, (Tue Mar 9, 12:09 am)
Re: [PATCHSET] cpuhog: implement and use cpuhog, Peter Zijlstra, (Wed Mar 10, 12:25 pm)
Re: [PATCHSET] cpuhog: implement and use cpuhog, Tejun Heo, (Thu Mar 11, 8:13 pm)
Re: [PATCHSET] cpuhog: implement and use cpuhog, Rusty Russell, (Sun Mar 28, 11:46 pm)
Re: [PATCHSET] cpuhog: implement and use cpuhog, Peter Zijlstra, (Mon Mar 29, 2:11 am)
Re: [PATCHSET] cpuhog: implement and use cpuhog, Tejun Heo, (Thu Apr 1, 10:45 pm)