I have recently built a new PC, to be used as a server. For months now, I have been getting unexplained crashes, sometimes after a few minutes, sometimes after a few days, where the PC just reboots without any trace in the logs. Just normal occasional status logs, and then, a few seconds later, the log of a normal boot process.

This is slowly driving me crazy because I just can’t make out the issue. I have tried multiple different Linux installs, swapped out the ssd and PSU and ran a ram test but this behaviour stills persists.

Today something was different. Instead of rebooting, it showed me this blue screen, this time finally with a log. But I still can’t seem to make out the issues. Some quick internet searches show some very vague answers; everything from software to hardware, and psu to CPU.

Can any Linux wizard help me fix my problem? Link to the log

Update: I have now faced an even weirder issue. I booted up, installed cpupower like a comment suggested, installed man to look up its documentation and then the screen froze, and I was forced to reboot the PC by pressing the power button for 3s. Then when I booted back up, my bash history was reset to a state a from a few days back (~.bash_history mod time from 2 days ago) even though I rebooted several times since then, and have not had any persistency errors like this. man was also not installed anymore. Even weirder is that cpupower was still installed. So it seems like some data was saved, while other files were discarded. I will now use a second ssd and try to replicate this. I now suspect some kind of Storage issue, even though the two ssd drives in question have never caused issues in my laptop. This seems scary, I have never witnessed a so weirdly corrupted Linux install, ever.

  • Molecular5869@feddit.orgOP
    link
    fedilink
    arrow-up
    5
    ·
    3 天前

    Thanks, please check my updated post. I have disabled the relevant setting in my BIOS, installed cpupower and increased the idle state to the maximum value of 2. I have also tried states 0 & 1. Do I need to run the machine for longer or should it have crashed right away according to your hypothesis? I also can’t tell you if the BIOS setting already fixed my issue since I still can’t reproduce it.

    About your last paragraph, the system has had these issues mostly while idle, but that’s probably because my system is running idle most of time anyways. I have also had the issue during low to medium loads, like transcoding audio via jellyfin. But I haven’t methodically run a process on all cpus. How would I go about running a load that uses all cores? I don’t particularly want to run a stress test for hours (because loud), but at this time I’m really open to trying anything.

    I have also enabled an option in my BIOS that generates a dummy load some time ago, because some forum post had suggested a PSU issue is at fault for unexplained reboots. I have a 500W PSU that is way overkill for my components, and some users suggested that some PSU’s can turn of when the load is to low. The option did not fix my problem. I have since connected a weaker 220W PSU, which also didn’t help.

    • Ænima@lemm.ee
      link
      fedilink
      arrow-up
      5
      ·
      2 天前

      Just my two cents as someone who does this a lot, myself, only change one thing at a time when testing troubleshooting suggestions. I know the reply suggested a few things in succession, but that was showing progressive steps to confirm and identify the underlaying cause. Doing them all at once fails to correctly identify the root-cause at best, and at worst may have introduced new problems.

      I say this again, as someone who notoriously does this all the time. It’s a time-saver reflex, but one that will bite you in the ass eventually.

      • Molecular5869@feddit.orgOP
        link
        fedilink
        arrow-up
        4
        ·
        2 天前

        Yes, I went to fast because I have been sitting on this for months now. Normally I would only change one thing at a time, but with this situation it can take everywhere from 5 minutes to multiple days to test one single thing. If it doesn’t crash for 48 hours, it might be because I fixed the issues, or it might just be a coincidence and it will crash in hour 49 ¯_(ツ)_/¯.

        But your right, I will attempt it the right way when I find the time, even though it will probably take weeks 😮‍💨.

        • Ænima@lemm.ee
          link
          fedilink
          arrow-up
          1
          ·
          2 天前

          I know it sucks but I’m glad you seen to have corrected the problem. As someone who does more harm than good with Linux systems, myself, to fix a Linux issue without completely reinstalling the OS, is impressive and you should be proud to have accomplished such a feat!

    • Gyroplast@pawb.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 天前

      Do I need to run the machine for longer or should it have crashed right away according to your hypothesis?

      Sorry for mudding the waters with my verbosity. It should not crash anymore. I believe your kernel panic was caused when an idle CPU 6 was sent to sleep. Disabling C-states, or limiting them to C0 or C1, prevents your CPUs from going into (deep) sleep. Thusly, by disabling or limiting c-states, a kernel panic should not happen anymore.

      I haven’t found a way to explicitly put a core into a specific c-state of your choosing, so best I can recommend now is to keep your c-states disabled or limited to C1, and just normally use your computer. If this kernel panic shows up again, and you’re sure your c-state setting was effective, then I would consider my c-state hypothesis as falsified.

      If, however, your system runs normally for a few days, or “long enough for you to feel good about it” with disabled c-states, that would be a strong indication for having some kind of issue when entering deeper sleep modes. You may then try increasing the c-state limit again until your system becomes unstable. Then you know at least a workaround at the cost of some loss of power savings, and you can try to find specific issues with your CPU or mainboard concerning the faulty sleep mode on Linux.

      Best of luck!

      • Molecular5869@feddit.orgOP
        link
        fedilink
        arrow-up
        1
        ·
        2 天前

        Thank you very much for your help so far, I will test the different methods and settings suggested in this thread over the next few weeks. I probably won’t find the time or motivation to methodically figure out the specific issue. That means that if at some point my system seems stable again, I will just leave everything as is and try to just be happy about it.

        But when my life gets less busy I’ll maybe have time to see this completely through.

        Anyways thanks to everyone, especially you, for taking the time to help me. I will update this post should I ever figure it out.