Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can someone explain what the difference is between processor.max_cstate vs intel_idle.max_cstate? And what values are supported?
Most websites show either setting the value as 0 or 1. On my system, without a value set, /sys/module/intel_idle/parameters/max_cstate reports a value of 9.
So assuming 0 though 9 are accepted values, how do they compared to Intel's values of C0, C1, C1E, C2, C2E etc....
I don't know what values are supported because I don't know what drivers are used to work with intel_idle, the kernel and furthermore the driver for the intel_idle ignors the user's BIOS configuration for the C-states and dances to its own tune. So I don't know how one would get around that.
Setting intel_idle.max_cstate to zero will either revert your cpuidle driver to acpi_idle (at least per the documentation of the option), or disable it completely.
If you have the time do some testing to see the results that you get but be careful and take your time. If you are not sure by all means don't change anything in the /etc/default/grub config:- GRUB_CMDLINE_LINUX_DEFAULT until you have complete confirmation.
I have a couple of machines that freeze up. One seems to freeze up anywhere from 1 minute to a day or two after boot. The other seems to run fine for weeks before freezing.
On the machine that freezes sooner, I've been testing the intel_idle.max_cstate=x by adding the kernel parameter just before boot. I've been testing each value for about 4 days. I started with 1, I'm currently on 3. I can't say what's changed between values 1 and 2, but with 3, the CPU is now scaling back the MHz to it's lowest when idle.
I'm not sure in which kernel the intel_pstate driver became the default, but I believe this is when the freezing issue has started. Rather than disable it, I'll test the cstate settings since the machine isn't doing anything important.
Actually it did freeze when set to 3. I've already tested the ram and updated the BIOS. The machine only has 4 GB of non-upgradeable ram. But I've been letting it sit idle, so it hasn't even been using more than 1gb of ram. I've also set a 8gb swap file too.
The 'top' cmd will show you CPU and Swap usage. Maybe check and see if swap is at an ultimate high.
The 8 GB swap file that you made should be of some use.
Years ago I had an old Toshiba laptop that had Windows Vista on it and long story short I installed Crunch Bang and Linux Mint on it.
The boot process with both distro's would only load about 1/2 way and freeze. Nothing I passed to the kernel worked or put an end to the freezing. At first I thought it was the HDD. As it turned out after disassembly of the laptop the HDD worked fine in the new desktop that I custom built.
The 'top' cmd will show you CPU and Swap usage. Maybe check and see if swap is at an ultimate high.
The 8 GB swap file that you made should be of some use.
Years ago I had an old Toshiba laptop that had Windows Vista on it and long story short I installed Crunch Bang and Linux Mint on it.
The boot process with both distro's would only load about 1/2 way and freeze. Nothing I passed to the kernel worked or put an end to the freezing. At first I thought it was the HDD. As it turned out after disassembly of the laptop the HDD worked fine in the new desktop that I custom built.
I think it was the graphics card on it's way out.
Both machines are Lenovo laptops. The older one is probably no more than 3 years old. I've been monitoring with 'htop'. I'm thinking it's something with the newer kernels and maybe newer Intel chips. They didn't have issues before. I've noticed Ubuntu users reverting to whatever kernel came with 14.04 due to similar issues. My 4790k machine doesn't seem to suffer from this issue, but I haven't fully updated it in a while. It's still running kernel 4.2.3.-1, while the laptops are on 4.7.x-x.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.