Open MPI logo

PLPA Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all PLPA Users mailing list

Subject: [PLPA users] Use of /sys/.../cpuX/online files
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2008-08-12 16:06:53


General question to anyone who may know...

According to this document:

     http://www.mjmwired.net/kernel/Documentation/cpu-hotplug.txt

I see that /sys/devices/system/cpu/cpuX/online contains the current
CPU hotplugging state. You can logically offline a CPU by "echo 0
> /.../offline", and you can check the state of the CPU by "cat /.../
offline" (it'll be 0 or 1).

However, looking on my RHEL 5.1 machine, I see:

------
% ls -l /sys/devices/system/cpu/cpu*/online
-rw------- 1 root root 4096 Aug 12 11:10 /sys/devices/system/cpu/cpu1/
online
-rw------- 1 root root 4096 Aug 12 11:10 /sys/devices/system/cpu/cpu2/
online
-rw------- 1 root root 4096 Aug 12 11:10 /sys/devices/system/cpu/cpu3/
online
------

Which seems weird:

1. There's no "online" file for cpu0 (even though the cpu0/ directory
exists). Perhaps you're not allowed to offline cpu0?

2. The perms on these files are 600, which seems pretty useless --
only root can read them.

Does anyone know if this is normal?

-- 
Jeff Squyres
Cisco Systems