News for hackers. Stuff that matters.
Re:Linux Load Averages: Solving the Mystery by mobilethrow on Tuesday August 08, 2017 @03:05PM (#14961356)
OT: what could cause a system to have a load of 1 when idle?

I have one (unimportant) Linux system that idles with a load of exactly 1. The issue persists through reboots. It is a KVM virtual machine and qemu confirms nothing is going on in the background.

Any ideas how to find out what's causing it?

Re:Linux Load Averages: Solving the Mystery by rkeene2 on Tuesday August 08, 2017 @04:58PM (#14962643)
I have the same problem on my laptop after loading the nvidia kernel module -- so something in the kernel is always uninterruptible, but it's not a process that I can see in userspace.

$ uptime; ps -L aux | awk '{ print $10 }' | sort -u 15:57:37 up 21 days, 22:49, 16 users, load average: 2.23, 1.61, 1.61 R+ Rl S S+ S< SLs SN STAT Sl Ss Ss+ Ssl T $ ps -L aux|awk '($10 ~ /^R/){ print }' rkeene 1025 1025 0.0 1 0.0 17980 2344 pts/10 R+ 15:57 0:00 ps -L aux $

Re:Linux Load Averages: Solving the Mystery by blinkingled on Tuesday August 08, 2017 @03:22PM (#14961549)
Any processes stuck in D state?
Re:Linux Load Averages: Solving the Mystery by mobilethrow on Tuesday August 08, 2017 @04:21PM (#14962114)
There is one, a [hwrng] process, but I don't think that's it. It's also in D state on other virtual machines on the same host without this symptom.

(The process is probably from virtio-rng.)

Re:Linux Load Averages: Solving the Mystery by blinkingled on Tuesday August 08, 2017 @05:07PM (#14962707)
I am assuming the guest (and host) kernels are sufficiently recent? I remember older kernels having a bug with load calculation. Does disabling Virtio-rng help? D state processes will cause rise in load average depending on NRCPUs.