Difference between revisions of "RZ-G/RZG2 kernel"
< RZ-G
(first page) |
(added CPU Hotplug) |
||
Line 1: | Line 1: | ||
<big> RZ/G2 Kernel and Linux FAQ </big> | <big> RZ/G2 Kernel and Linux FAQ </big> | ||
+ | {{TOC right|width=50%}} | ||
+ | |||
+ | |||
+ | = CPU Hotplug = | ||
+ | You can enable and disable CPU cores by wrriting to a sysfs value. | ||
<br> | <br> | ||
− | + | This is helpful for when you want to experiment with the performance of your application if you were to use a processor with less CPU cores. | |
+ | <br> | ||
+ | For example, this command will disable the 2nd core. | ||
+ | <br> | ||
+ | <code>$ echo 0 > /sys/devices/system/cpu/cpu1/online</code> | ||
+ | <br> | ||
+ | More detailed information can be found here: https://www.cyberciti.biz/faq/debian-rhel-centos-redhat-suse-hotplug-cpu |
Revision as of 13:08, 22 October 2020
RZ/G2 Kernel and Linux FAQ
Contents |
CPU Hotplug
You can enable and disable CPU cores by wrriting to a sysfs value.
This is helpful for when you want to experiment with the performance of your application if you were to use a processor with less CPU cores.
For example, this command will disable the 2nd core.
$ echo 0 > /sys/devices/system/cpu/cpu1/online
More detailed information can be found here: https://www.cyberciti.biz/faq/debian-rhel-centos-redhat-suse-hotplug-cpu