Re: SMP cpu deep sleep

From: Zwane Mwaikambo
Date: Fri Aug 20 2004 - 09:37:13 EST


On Fri, 20 Aug 2004, Hans Kristian Rosbach wrote:

> Nice, this can be done on non-hotplug motherboards as well?
> How much time does it take to take the cpu up again?

Yes it works on non hotplug motherboards, it's only a logical offline.
Returning from offline;

root@morocco cpu1 {0:0} time echo 0 > online
0.000u 0.290s 0:01.77 16.3% 0+0k 0+0io 0pf+0w
root@morocco cpu1 {0:0} time echo 1 > online
0.000u 0.001s 0:00.10 0.0% 0+0k 0+0io 0pf+0w

> It would need to be awakened whenever the activity increases
> again, and that delay should not be too long.
>
> Also, what effect does this have on cpu power consumtion
> and thermal output? Does it lower it below normal idle?

None at the moment as we busy loop, so if anything, power consumption
would go up. What could be done is perhaps 'hlt' the processor and wait
for a RETURN_FROM_OFFLINE IPI. Or perhaps with more work, graft in the
ACPI C state transitions.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/