mike@mike-ubuntu:~$ systemd-analyze time
Startup finished in 4.754s (kernel) + 32.997s (userspace) = 37.751s
mike@mike-ubuntu:~$ systemd-analyze critical-chain
The time after the unit is active or started is printed after the “@” character.
The time the unit takes to start is printed after the “+” character.
I just tested it again. From clicking ‘restart’ in Ubuntu, it was 90 seconds until the desktop appeared, with lots of disk accessing still going on. I clicked immediately on the Firefox icon and it took another 40 seconds for FF to load and be useable.
This is getting silly now. I’ve just spent over five minutes listening to constant disk accessing and waiting for this PC to become responsive again. I couldn’t shut anything down, open a terminal, or anything else.
I was on the point of a hard reboot when things finally started responding. The terminal showed this;
mike@mike-ubuntu:~$ free -m
total used free shared buff/cache available
Mem: 3950 1374 1980 50 594 2265
Swap: 4092 331 3761
mike@mike-ubuntu:~$ free -m
total used free shared buff/cache available
Mem: 3950 1375 1979 50 594 2264
Swap: 4092 331 3761
mike@mike-ubuntu:~$ free -m
total used free shared buff/cache available
Mem: 3950 1303 2002 49 644 2337
Swap: 4092 329 3763
mike@mike-ubuntu:~$ free -m
total used free shared buff/cache available
Mem: 3950 1302 2003 50 644 2338
Swap: 4092 329 3763
mike@mike-ubuntu:~$ free -m
total used free shared buff/cache available
Mem: 3950 492 2817 18 640 3185
Swap: 4092 329 3763
mike@mike-ubuntu:~$ free -m
total used free shared buff/cache available
Mem: 3950 492 2817 18 640 3185
Swap: 4092 329 3763
mike@mike-ubuntu:~$ free -m
total used free shared buff/cache available
Mem: 3950 494 2815 18 640 3183
Swap: 4092 329 3763
mike@mike-ubuntu:~$ free -m
total used free shared buff/cache available
Mem: 3950 494 2815 18 640 3183
Swap: 4092 329 3763
mike@mike-ubuntu:~$ free -m
total used free shared buff/cache available
Mem: 3950 494 2815 18 640 3183
Swap: 4092 329 3763
mike@mike-ubuntu:~$
Swap used is still at 323 with only Firefox running. No streaming or downloading going on…
The when the PC slows down, try to see if there’s some process that’s either hammering the CPU (top) or hard drive (iotop).
My point is, there’s no point in taking a single reading from those whilst the PC isn’t running slowly … so do something that causes the system to slow down, and look at those terminals whilst it’s doing it.
I’ve been trying this, but there’s no obvious culprit. FF and Chrome (which I’m reluctantly trying because FF keeps giving me the “Well, this is embarrassing” screen) tend to use a lot of CPU, especially when streaming videos, but I haven’t seen the whole machine freeze up again.
Obviously I can’t open the two terminals until the machine is running, so they don’t offer any clues as to why the boot process takes so long (consistently around 100 - 120 seconds to a usable desktop). FF also starts up amazingly slowly.
I’m beginning to think in terms of a full reinstall of Ubuntu 16.04…
Not sure, but I don’t think so - still a linux newbie…
Incidentally, we have a laptop also running Ubuntu 16.04 which is also running very slowly, and which also shows unreadable contents on the Ubuntu partition. I assume that probably confirms that this is a permissions problem…
I’m having one last shot at this before I go for the nuclear option…
Given the amount of disk accessing I’m hearing (not all the time, but quite often) I’m wondering whether the partition on which Ubuntu is installed is nearly full.
Problem is, I don’t yet know how to find out. I’m googling (with duckduckgo) but any clues appreciated (ubuntu is on sdc5).