Post details: cpu fun

9 October, 2006

Permalink 04:50 UTC, by KingTaco, 173 words, 2211 views   English (US)
Categories: Gentoo, fun

cpu fun

While looking at options 2.6.18 provided, I came across cpu "hotplug", where one can turn on/off CPUs on the fly. On my workstation(dual opteron 248) I enabled CONFIG_HOTPLUG_CPU and rebooted. A simple # echo 0 > /sys/devices/system/cpu/cpu1/online and /proc/cpuinfo only shows one processor. This showed up in dmesg:

CPU 1 is now offline
SMP alternatives: switching to UP code

After # echo 1 > /sys/devices/system/cpu/cpu1/online /proc/cpuinfo shows both CPUs and dmesg contains this:

SMP alternatives: switching to SMP code
Booting processor 1/2 APIC 0x1
Initializing CPU#1
Calibrating delay using timer specific routine.. 4410.23 BogoMIPS (lpj=22051180)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 1024K (64 bytes/line)
CPU 1/1 -> Node 0
AMD Opteron(tm) Processor 248 stepping 0a
CPU 1: Syncing TSC to CPU 0.
CPU 1: synchronized TSC with CPU 0 (last diff 2 cycles, maxerr 821 cycles)

This makes me wonder "how much" the CPU is shut down... I wonder if this could be used as some sort of power management for SMP systems.

Time to find a ammeter....

Comments:

Comment from: Tomasz Wysocki [Visitor] Email
Nice (-: Unfortunately I have only one CPU. Have you try to disable all CPUs?
PermalinkPermalink 10 October, 2006 @ 19:03
Comment from: Brian Hall [Visitor] Email
Have you been able to determine if shutting down a core with hotplug reduces power useage? I shut down one of the cores on my Optereon 165, but the core temperature did not drop (this was at idle).
PermalinkPermalink 11 October, 2006 @ 17:40
Comment from: KingTaco [Member]
you can't disable the first CPU(on my box) I don't think disabling one core will have much effect on power consumption. the best way to find out is it get a wattmeter and have a good testcase(compile something big)
PermalinkPermalink 12 October, 2006 @ 16:00

This post has 1 feedback awaiting moderation...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))

Mike Doty

May 2008
Mon Tue Wed Thu Fri Sat Sun
<< <     
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Search

Categories

Misc

XML Feeds

What is RSS?

Who's Online?

  • Guest Users: 40

powered by
b2evolution