Results 1 to 4 of 4

Thread: Diagnosing a freezing Ubuntu PC

  1. #1
    Join Date
    Jul 2021
    Beans
    2

    Diagnosing a freezing Ubuntu PC

    My work computer has recently started freezing up. When I leave it running for a longer period of time (such as overnight) and returning to it, it looks much like it went to sleep (the screens are turned off but don't give any "no signal" messages, the power button on the PC is still turned on, and the fans are still working). However, I cannot wake it up, regardless of what I do (I've tried moving the mouse, pressing keys, pressing ctrl+alt+del, and even the power button). I also cannot ssh to it any more and the system logs also do not get recorded properly. So I have to force reboot it (by holding the power button).

    In all this time it has never frozen/crashed on me while I was actively using it. Additionally, the idle time required for it to freeze up varies wildly. Once I left an rsynccommand running over lunch (roughly an hour) and it froze by the time I came back, while another time it was on for over a week (successfully executing daily rsync and rclone jobs via cron the whole time) with no freezes.

    I tried some solutions I found online to turn off sleep/suspend, such as turning off "Automatic Suspend" in Power settings, turning off "Suspend when laptop lid is closed" in gnome Tweaks, and adding intel_idle.max_cstate=1 to /etc/default/grub. None of these prevented the issue. I've also messed around with several BIOS settings that could plausibly cause something like this (namely, turning off AMD's XMP feature, adjusting RAM voltage to the exact recommended values I found on the seller's website, and changing Wake Up Event settings) to no avail.

    I've also considered a hardware issue, so I ran memtest86 and got no errors. I also checked my SSD and HDD for errors as best I could (using SMART diagnostics) and got nothing.

    The system logs aren't helpful as they aren't written to when the freeze happens (as noted above) - I'm attaching /var/log/syslog from the most recent freeze anyway. I found a solution to this online, namely following the logs live over an SSH connection from a different computer (using ssh user@workstation journalctl -f), however nothing in the logs jumped out at me as an obvious cause of the freeze - I'm attaching two such log files leading to freezes here regardless.

    I'm kind of at a loss on how to continue diagnosing this problem. Are there perhaps some other log files I could look at to get an idea of what's going on and whether it's a software or hardware issue? Some way to check for motherboard and CPU errors? Maybe even PSU errors?

    Computer specs:

    • OS: Ubuntu 20.04.2 LTS
    • CPU: AMD Ryzen 7 1700
    • MB: MSI X370 SLI PLUS
    • RAM: G.Skill Ripjaws V 16GB DDR4-3200
    • GPU: NVIDIA Titan V
    • SSD: Samsung - 860 Evo 500GB M.2-2280
    • HDD: Toshiba - P300 3TB 3.5" 7200RPM
    Last edited by iamlegenda; September 1st, 2021 at 12:50 PM.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Diagnosing a freezing Ubuntu PC

    My Ryzen 2600 is really picky about RAM speeds. I had to slow the RAM down from 2800 to 2733 just a few weeks ago when new crashes started happening every few hrs. I have the same RAM hardware you have. There were errors showing up in the system HW log file. Here's the command that would show that multiple RAM faults were happening.
    Code:
    journalctl -b |grep  'System manufacturer System Product' |wc -l
    I was seeing 50-400 issues in the logs before the system would lock up. On a perfectly working system, the result is 1. It has been stable for over a week now.
    Code:
    $ uptime 
     18:51:40 up 8 days,  9:58,  4 users,
    Hopefully, this is helpful. If you don't run the RAM tests at least 24 hrs, I don't think it can be claimed the RAM is fine.

    To see older boots, use journalctl -b -1 ... and just change the number to go back further in boot times.

  3. #3
    Join Date
    Jul 2021
    Beans
    2

    Re: Diagnosing a freezing Ubuntu PC

    Hmm...
    Code:
    journalctl -b |grep  'System manufacturer System Product' |wc -l

    didn't find any errors (the wc -l printed out 0).

    I've tried setting the RAM speed to 2733 anyway (it was 3200 before when I had XMP turned on and after I turned XMP off it was set to Auto, which resulted in 2133 speed). However, now my computer is acting quite sluggish and unresponsive. I'll try a few more different RAM speeds and see if anything works though.

  4. #4
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Diagnosing a freezing Ubuntu PC

    That command could be very specific to my system. I took a shot, trying to help. Look through the log files, determine where the logs show problems.

    AMD doesn't use XMP. They call it something else. I have it on, except that the speed is manually made slower in the BIOS settings. My system has been stable since setting the RAM speed to 2733 and it does get very busy a few hours every day.
    Code:
    $ uptime 
     08:58:38 up 11 days, 5 min,  4 users,  load average: 12.28, 7.03, 3.51
    Your system may not have the same issue. Only the log files AND you LOOKING AT THEM can tell.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •