Difference between revisions of "RZ-G/RZG2 kernel"

From eLinux.org
Jump to: navigation, search
(added CPU Hotplug)
m (.)
Line 7: Line 7:
 
<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.
 
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.
 
For example, this command will disable the 2nd core.
<br>
+
 
 
<code>$ echo 0 > /sys/devices/system/cpu/cpu1/online</code>
 
<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
 
More detailed information can be found here: https://www.cyberciti.biz/faq/debian-rhel-centos-redhat-suse-hotplug-cpu

Revision as of 12:12, 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