OnDemand governor vs. work queue
Hi !
From what I've seen, the OnDemand governor works using a timer/workqueue pair.
That annoys me a bit as the setup I have on PowerMacs can take several ms to transition (due to voltage transition mostly). I don't like the idea of hogging keventd that long.
Wouldn't it make sense, especially for setups where transition latency is high (by high, I mean significant compared to HZ for example), to actually spawn a kthread and do the sampling & switching from there ?
Regard,
Ben.
Quoted 5 lines · Benjamin Herrenschmidt
Hi !
Quoted 1 line
From what I've seen, the OnDemand governor works using a timer/workqueue
pair.
Quoted 7 lines
That annoys me a bit as the setup I have on PowerMacs can take several ms to transition (due to voltage transition mostly). I don't like the idea of hogging keventd that long.
Wouldn't it make sense, especially for setups where transition latency is high (by high, I mean significant compared to HZ for example), to actually spawn a kthread and do the sampling & switching from there ?
I'm wondering if in that case a userspace daemon will be more suited..
Signature · 4 lines
Bruno Ducrot -- Which is worse: ignorance or apathy? -- Don't know. Don't care.
Quoted 10 lines · Bruno Ducrot
Quoted 9 lines · Benjamin Herrenschmidt
Hi !
Quoted 1 line
From what I've seen, the OnDemand governor works using a timer/workqueue
pair.
That annoys me a bit as the setup I have on PowerMacs can take several ms to transition (due to voltage transition mostly). I don't like the idea of hogging keventd that long.
Quoted 5 lines
Quoted 3 lines
Wouldn't it make sense, especially for setups where transition latency is high (by high, I mean significant compared to HZ for example), to actually spawn a kthread and do the sampling & switching from there ?
I'm wondering if in that case a userspace daemon will be more suited..
This is what I do & recommend for powerbook users (so far, powernowd works like a charm), but since OnDemand governor advertises working with latencies as big as 10ms, I was wondering ...
Ben.