Hello,
When I look at the Top Processes section, although I have 4 core cpu, 3 of them are sleeping. I want to get full performance from the system, so all 4 should be active.
How can I turn off sleeping mode? I want all 4 Cores to work.
Hello,
When I look at the Top Processes section, although I have 4 core cpu, 3 of them are sleeping. I want to get full performance from the system, so all 4 should be active.
How can I turn off sleeping mode? I want all 4 Cores to work.
Welcome @egmay Happy you are here
You can enable any sleeping cores using command
$ echo 1 | sudo tee /sys/devices/system/cpu/cpu1/online
Replace cpu1 with exact cpu that is sleeping
You should also disable power saving in /etc/default/grub
by adding at the end GRUB_CMDLINE_LINUX_DEFAULT
line to include intel_pstate=disable
or acpi=off
i.e.
For example intel-based CPU
ignore the first three lines
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=disable"
Now update grub and reboot i.e.
$ sudo update-grub && sudo reboot
In this case for the intel CPU example your CyberPanel server will no longer use the Intel P-state driver keeping all your cores active.
From screenshot I believe your server CPU is AMD Ryzen so use
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amd_pstate=disable"
Hello, thanks for your helps. But not worked. I did exactly what you said, but 3 CPUs are still sleeping.
/etc/default/grub
The content of this file is currently as follows.
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=“$(sed ‘s, release .*$,g’ /etc/system-release)”
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT=“console”
GRUB_CMDLINE_LINUX=“crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M rhgb quiet splash amd_pstate=disable”
GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash amd_pstate=disable”
GRUB_DISABLE_RECOVERY=“true”
GRUB_ENABLE_BLSCFG=true
Almalinux 9
You can try disabling idle states by either add intel_idle.max_cstate=0
or idle=nomwait
i.e.
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amd_pstate=disable intel_idle.max_cstate=0"
Also confirm that you are using " not ”
BTW who is the server provider?
I have the same problem on my Vultr servers. It has 3 Intel Core Processor and 4 sleeping processes. I tried the following and it doesn’t work.
$ echo 1 | sudo tee /sys/devices/system/cpu/cpu2/online
/etc/default/grub file
GRUB_CMDLINE_LINUX=“consoleblank=0 mpt3sas.max_queue_depth=1000 vultr ds=vultr console=ttyS0,115200n8 console=tty0 quiet splash intel_pstate=disable intel_idle.max_cstate=0”
GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash intel_pstate=disable intel_idle.max_cstate=0”
Run update-grub and reboot server.
How do I fix it?