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

From eLinux.org
Jump to: navigation, search
(first page)
 
m (.)
(One intermediate revision by the same user not shown)
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>
coming soon...
+
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.
 +
 
 +
<code>$ echo 0 > /sys/devices/system/cpu/cpu1/online</code>
 +
 
 +
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