Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have an old machine running Linux kernel 2.6.26.2 which is behaving oddly. I suspect ONE of the CPUs is possibly heating faster than the other. I want to run some tests with specific CPUs/cores disabled and enabled. I googled for directions, and the only matches I find are number of CPUs at boot time via kernel parameters, or setting /sys/devices/system/cpu/cpuX/online with 0 or 1. But /sys/devices/system/cpu/cpuX/online does not exist. However, /sys/devices/system/cpu/online does. I re-googled for that path, but Google insists on matching pages with /sys/devices/system/cpu/cpuX/online anyway (doesn't highlight the cpuX part). Searching kernel source finds one document that has the path, but no explanation of what to set. The current contents of /sys/devices/system/cpu/online is "0-3". I'd like to know what value to set here for each different CPU to test, possibly testing all 15 combinations of on/off. This machine is a dual-socket each with "Dual-Core AMD Opteron(tm) Processor 2220" at 2.8 GHz.

share|improve this question
    
Does your mainboard support the core unlocking feature? Maybe with an up-to-date bios? If so, you could disable/enable the cores you whish here. –  ansi_lumen Sep 7 '12 at 6:13
    
Define "behaving oddly". Why do you suspect a faulty CPU? –  Michael Hampton Sep 7 '12 at 8:45
    
"behaving oddly" is sometimes the fan speed goes UP when I run one thread of a compute process, and sometimes not. My thought is to force it and everything else to specific cores and see what is going on. –  Skaperen Sep 7 '12 at 12:51

1 Answer 1

Note: What you want works with hotplug enabled systems only.

If the directory does not exist, means that you cannot hotplug the core, as you whish.

There is a grub option that just can limit the number of cores, but you cannot select specific ones to use.

The other option is, to check for bios abilities. See comment.

In the end you could use a newer (live) kernel for the load testing.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.