We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2014-06-26 00:59:54 +0200

Kernel update bug in /proc/stat

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.

Kernel update bug in /proc/stat

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").

Kernel update bug in /proc/stat

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").

Kernel update bug in /proc/stat

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

Kernel update bug in /proc/stat

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: image description

NOTE: issue still present in the latest release