Chapter 13. Miscellaneous tasks 225
The output shows that cpuplugd starts by default in the current run level.
4. Wait a few minutes and run the lscpus script again:
# lscpus
/sys/devices/system/cpu/cpu0
1
/sys/devices/system/cpu/cpu1
0
/sys/devices/system/cpu/cpu2
0
/sys/devices/system/cpu/cpu3
0
/sys/devices/system/cpu/cpu4
0
/sys/devices/system/cpu/cpu5
0
/sys/devices/system/cpu/cpu6
0
/sys/devices/system/cpu/cpu7
0
/sys/devices/system/cpu/cpu8
0
/sys/devices/system/cpu/cpu9
0
The output shows that now only one of the ten virtual CPUs are active. The cpuplugd
service turned off the other 9.
5. The cpuplugd configuration file is /etc/sysconfig/cpuplugd. Some middleware products
recommend a minimum of two virtual processors. If the majority of your Linux servers will
be running a workload, which recommends two processors, change the default for
CPU_MIN to 2. An exception would be when only a single physical processor is available.
View the non-comments and lines that are not blank in the configuration file with the
following command:
# cd /etc/sysconfig
# egrep -v '^$|^#' cpuplugd
CPU_MIN="1"
CPU_MAX="0"
UPDATE="10"
CMM_MIN="0"
CMM_MAX="8192"
CMM_INC="256"
HOTPLUG="(loadavg > onumcpus + 0.75) & (idle < 10.0)"
HOTUNPLUG="(loadavg < onumcpus - 0.25) | (idle > 50)"
MEMPLUG="0"
MEMUNPLUG="0"
The default rules for the plugging and unplugging of CPUs in the configuration file is as
follows:
HOTPLUG = "(loadavg > onumcpus +0.75) & (idle < 10.0)"
HOTUNPLUG = "(loadavg < onumcpus -0.25) | (idle > 50)"
Commenti su questo manuale