We have moved to a new Sailfish OS Forum. Please start new discussions there.
1 | initial version | posted 2014-06-26 00:59:54 +0200 |
It seems that the latest update has broken /proc/stat reporting of CPU usage.
The cpu line's iowait and idle column values jump down between ticks, usually when the CPU starts to get busy. This is not normal, I confirmed with linux kernel devs that these values should never go down, only up since they represent jiffies spent on given activity.
This causes programs like top to report errorenous CPU usages (I get 2700% at times for example) and breaks all apps reporting CPU usage too.
2 | No.2 Revision |
It seems that the latest update has broken /proc/stat reporting of CPU usage.
The cpu line's iowait and idle column values jump down between ticks, usually when the CPU starts to get busy. This is not normal, I confirmed with linux kernel devs that these values should never go down, only up since they represent jiffies spent on given activity.
This causes programs like top to report errorenous CPU usages (I get 2700% at times for example) and breaks all apps reporting CPU usage too.
I found this out because my app measures CPU usage.
Here's an example of 2 subsequent readings of /proc/stat (using just bash loop with cat and grep)
cpu 68399 3711 69248 1476309 46342 8 360 0 0 0 cpu 68406 3712 69254 1405524 38397 8 360 0 0 0
The 4th and 5th data columns (iowait and idle) have a visible drop.
I noticed that it's caused mostly by the second CPU's values dropping to almost 0 values (this reading is for "overall cpu").
3 | No.3 Revision |
It seems that the latest update has broken /proc/stat reporting of CPU usage.
The cpu line's iowait and idle column values jump down between ticks, usually when the CPU starts to get busy. This is not normal, I confirmed with linux kernel devs that these values should never go down, only up since they represent jiffies spent on given activity.
This causes programs like top to report errorenous CPU usages (I get 2700% at times for example) and breaks all apps reporting CPU usage too.
I found this out because my app measures CPU usage.
Here's an example of 2 subsequent readings of /proc/stat (using just bash loop with cat and grep)
cpu 68399 3711 69248 1476309 46342 8 360 0 0 0
0
cpu 68406 3712 69254 1405524 38397 8 360 0 0 0
The 4th and 5th data columns (iowait and idle) have a visible drop.
I noticed that it's caused mostly by the second CPU's values dropping to almost 0 values (this reading is for "overall cpu").
4 | No.4 Revision |
It seems that the latest update has broken /proc/stat reporting of CPU usage.
The cpu line's iowait and idle column values jump down between ticks, usually when the CPU starts to get busy. This is not normal, I confirmed with linux kernel devs that these values should never go down, only up since they represent jiffies spent on given activity.
This causes programs like top to report errorenous CPU usages (I get 2700% at times for example) and breaks all apps reporting CPU usage too.
I found this out because my app measures CPU usage.
Here's an example of 2 subsequent readings of /proc/stat (using just bash loop with cat and grep)
cpu 68399 3711 69248 1476309 46342 8 360 0 0 0
cpu 68406 3712 69254 1405524 38397 8 360 0 0 0
The 4th and 5th data columns (iowait and idle) have a visible drop.
I noticed that it's caused mostly by the second CPU's values dropping to almost 0 values (this reading is for "overall cpu").
NOTE: issue still present in the latest release
5 | No.5 Revision |
It seems that the latest update has broken /proc/stat reporting of CPU usage.
The cpu line's iowait and idle column values jump down between ticks, usually when the CPU starts to get busy. This is not normal, I confirmed with linux kernel devs that these values should never go down, only up since they represent jiffies spent on given activity.
This causes programs like top to report errorenous CPU usages (I get 2700% at times for example) and breaks all apps reporting CPU usage too.
I found this out because my app measures CPU usage.
Here's an example of 2 subsequent readings of /proc/stat (using just bash loop with cat and grep)
cpu 68399 3711 69248 1476309 46342 8 360 0 0 0
cpu 68406 3712 69254 1405524 38397 8 360 0 0 0
The 4th and 5th data columns (iowait and idle) have a visible drop.
I noticed that it's caused mostly by the second CPU's values dropping to almost 0 values (this reading is for "overall cpu").
example of top reading when bug apparent:
NOTE: issue still present in the latest release