AMD ryzen 1700 zenstates C6
Hi, I'm about installing a fresh Leap 15.5. For Leap 15.4 and Tumbleweed my processor needed disabling zenstate c6, and someone provided a python script which did just that. Is this still relevant for a "fresh" installation of Leap 15.5 /Tumbleweed? Below is a link to the problem. cu Peter https://forum.level1techs.com/t/ryzen-and-disabling-c6-c-state-the-curse-of-...
Am 24.06.23 um 20:31 schrieb Peter McD:
I'm about installing a fresh Leap 15.5. For Leap 15.4 and Tumbleweed my processor needed disabling zenstate c6, and someone provided a python script which did just that. Is this still relevant for a "fresh" installation of Leap 15.5 /Tumbleweed?
A bit of research brought some fresh insight and finally my question at the end: Bug report: (closed and inconclusive, at least to me) https://bugzilla.kernel.org/show_bug.cgi?id=196683 last entry: 2022-11-08 13:49:02 UTC A final solution from ASUS: Switch C-state off in BIOS https://www.asus.com/support/FAQ/1047407/?clickid=0%3A%3A136472%3A%3A3CelwpW6XMsXDsxHESbqfYXKMqHneiIuZuWaGd9APrF3EF%3A%3A%3A%3A1688502704&utm_source=Takeads.com&utm_medium=affiliate&utm_campaign=&utm_content=136472 Google search: linux kernel c states Some information from Dell "Controlling Processor C-State Usage in Linux" https://wiki.bu.ost.ch/infoportal/_media/embedded_systems/ethercat/controlli... And shorter: ------------------- What are CPU "C-states" and how to disable them if needed?" https://gist.github.com/wmealing/2dd2b543c4d3cff6cab7 To limit a CPU to a certain C-state, you can pass the processor.max_cstate=X option in the kernel line of /boot/grub/grub.conf. Here we limit the system to only C-State 1: kernel /vmlinuz-2.6.18-371.1.2.el5 ... processor.max_cstate=1 On some systems, the kernel can override the BIOS setting, and the parameter intel_idle.max_cstate=0 may be required to ensure sleep states are not entered: kernel /vmlinuz-2.6.32-431.el6.x86_64 ... processor.max_cstate=1 intel_idle.max_cstate=0 You can confirm the maximum allowed CPU C-State with: # cat /sys/module/intel_idle/parameters/max_cstate --------------- This seems to be a solution for Intel processors but might work for AMD Ryzen too. Now my question: I use Tumbleweed and Leap 15.4/5, my processor needs disabling cstate 6. I think I should change with Yast the present boot-loader settings from: splash=verbose noresume security=apparmor to: splash=verbose noresume security=apparmor processor.max_cstate=5 Would that be the right location? Peter
Am 05.07.23 um 12:08 schrieb Peter McD:
Am 24.06.23 um 20:31 schrieb Peter McD:
I'm about installing a fresh Leap 15.5. For Leap 15.4 and Tumbleweed my processor needed disabling zenstate c6, and someone provided a python script which did just that. Is this still relevant for a "fresh" installation of Leap 15.5 /Tumbleweed?
Have had the idle problem when my desktop sytems where new, tumbleweed amd ryzen 1700. kernel commandline work for me: pcie_aspm=off never had any lockups or problems after that. (before also changing twice the processors because of the full-load-problem in early produced ryzen (kill-ryzen-script) simoN -- www.becherer.de
Am 05.07.23 um 12:39 schrieb Simon Becherer:
Am 05.07.23 um 12:08 schrieb Peter McD:
Am 24.06.23 um 20:31 schrieb Peter McD:
I'm about installing a fresh Leap 15.5. For Leap 15.4 and Tumbleweed my processor needed disabling zenstate c6, and someone provided a python script which did just that. Is this still relevant for a "fresh" installation of Leap 15.5 /Tumbleweed?
Have had the idle problem when my desktop sytems where new, tumbleweed amd ryzen 1700.
kernel commandline work for me: pcie_aspm=off
With my processor disabling c6 via zenstates.py was sufficient, so I will try kernel parameter "processor.max_cstate=5" first Thank you Peter
Hello, In the Message; Subject : Re: AMD ryzen 1700 zenstates C6 Message-ID : <4f9479d4-dc5e-0713-d1f4-36929b77d2bb@gmx.net> Date & Time: Wed, 5 Jul 2023 12:08:19 +0200 [PM] == Peter McD <peter.posts@gmx.net> has written: PM> Am 24.06.23 um 20:31 schrieb Peter McD: [...] PM> Now my question: I use Tumbleweed and Leap 15.4/5, my processor needs PM> disabling cstate 6. I think I should change with Yast the present PM> boot-loader settings from: PM> splash=verbose noresume security=apparmor PM> to: PM> splash=verbose noresume security=apparmor processor.max_cstate=5 PM> Would that be the right location? This is the ChatGPT's answer: To set the processor.max_cstate=5 on Linux, you can add the following line to the /etc/default/grub file: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash processor.max_cstate=5" After that, you need to run the following command: $ sudo update-grub This will update the grub configuration file and apply the changes Silly ChatGPT! $ update-grub is for Debian. In openSUSE, $ sudo grub-mkconfig -o /path/to/grub.cfg Please take this as a demonstration of ChatGPT. Regards. --- ┏━━┓彡 野宮 賢 mail-to: nomiya @ lake.dti.ne.jp ┃\/彡 ┗━━┛ " Hassabis says that no one really knows for sure that AI will become a major danger. But he is certain that if progress continues at its current pace, there isn’t much time to develop safeguards. "I can see the kinds of things we're building into the Gemini series right, and we have no reason to believe that they won't work," he says." -- "Google DeepMind's CEO Says Its Next Algorithm Will Eclipse ChatGPT" --
Hello, In the Message; Subject : Re: AMD ryzen 1700 zenstates C6 Message-ID : <CAA91j0VdAtC8U0f1Y8-JD2BHcmWwR4pTaWdC6zMHgU6m_cuN3Q@mail.gmail.com> Date & Time: Wed, 5 Jul 2023 14:04:04 +0300 [AB] == Andrei Borzenkov <arvidjaar@gmail.com> has written: AB> On Wed, Jul 5, 2023 at 1:47 PM Masaru Nomiya <nomiya@lake.dti.ne.jp> wrote: [...] MN> > In openSUSE, MN> > MN> > $ sudo grub-mkconfig -o /path/to/grub.cfg Sorry for typo. $ grub2-mkconfig -o /boot/grub2/grub.cfg AB> In openSUSE it is AB> update-bootloader --config Thanks. I always run sudo grub2-mkconfig -o /boot/grub2/grub.cfg after editing grub, though. Is there anything wrong with this? Regards. --- ┏━━┓彡 野宮 賢 mail-to: nomiya @ lake.dti.ne.jp ┃\/彡 ┗━━┛ " Hassabis says that no one really knows for sure that AI will become a major danger. But he is certain that if progress continues at its current pace, there isn’t much time to develop safeguards. "I can see the kinds of things we're building into the Gemini series right, and we have no reason to believe that they won't work," he says." -- "Google DeepMind's CEO Says Its Next Algorithm Will Eclipse ChatGPT" --
On Wed, Jul 5, 2023 at 2:24 PM Masaru Nomiya <nomiya@lake.dti.ne.jp> wrote:
AB> In openSUSE it is
AB> update-bootloader --config
Thanks.
I always run sudo grub2-mkconfig -o /boot/grub2/grub.cfg after editing grub, though.
Is there anything wrong with this?
update-bootloader worked before (lilo, grub legacy), works with different bootloaders now (like shim) and will continue to work if grub2 is replaced by e.g. systemd-boot. You just need to learn one command and do not need to be aware of the low-level implementation.
Hello, In the Message; Subject : Re: AMD ryzen 1700 zenstates C6 Message-ID : <CAA91j0U3NO=mSsw0gcsLxjcp4J8aNo9nbAHaQQTrop2xAbWgow@mail.gmail.com> Date & Time: Wed, 5 Jul 2023 14:45:51 +0300 [AB] == Andrei Borzenkov <arvidjaar@gmail.com> has written: [...] MN> > I always run sudo grub2-mkconfig -o /boot/grub2/grub.cfg after editing MN> > grub, though. MN> > MN> > Is there anything wrong with this? AB> update-bootloader worked before (lilo, grub legacy), works with AB> different bootloaders now (like shim) and will continue to work if AB> grub2 is replaced by e.g. systemd-boot. You just need to learn one AB> command and do not need to be aware of the low-level implementation. Ah, I see. I use update-bootloader as follows; # dracut --force $(uname -r) && update-bootloader Anyway, many thanks in deed. --- ┏━━┓彡 野宮 賢 mail-to: nomiya @ lake.dti.ne.jp ┃\/彡 ┗━━┛ " Hassabis says that no one really knows for sure that AI will become a major danger. But he is certain that if progress continues at its current pace, there isn’t much time to develop safeguards. "I can see the kinds of things we're building into the Gemini series right, and we have no reason to believe that they won't work," he says." -- "Google DeepMind's CEO Says Its Next Algorithm Will Eclipse ChatGPT" --
Am 05.07.23 um 12:47 schrieb Masaru Nomiya:
In the Message; Subject : Re: AMD ryzen 1700 zenstates C6 Message-ID : <4f9479d4-dc5e-0713-d1f4-36929b77d2bb@gmx.net> Date & Time: Wed, 5 Jul 2023 12:08:19 +0200 [PM] == Peter McD <peter.posts@gmx.net> has written:
[...] PM> Now my question: I use Tumbleweed and Leap 15.4/5, my processor needs PM> disabling cstate 6. I think I should change with Yast the present PM> boot-loader settings from:
PM> splash=verbose noresume security=apparmor PM> to: PM> splash=verbose noresume security=apparmor processor.max_cstate=5 PM> Would that be the right location?
This is the ChatGPT's answer: To set the processor.max_cstate=5 on Linux, you can add the following line to the /etc/default/grub file: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash processor.max_cstate=5" After that, you need to run the following command: $ sudo update-grub This will update the grub configuration file and apply the changes
Lazy me! I fired up Yast, Bootloader settings - kernel parameter, added "processor.max_cstate=5" OK Test with less /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="splash=verbose noresume security=apparmor processor.max_cstate=5 mitigations=auto" Bingo. Let's whether it works. Thank you ChatGPT, and you Masaru, too! cu Peter
participants (4)
-
Andrei Borzenkov
-
Masaru Nomiya
-
Peter McD
-
Simon Becherer