Welcome to the Linux Foundation Forum!


On a dual core real time enabled target I have observed a problem with /proc/stat
The problem is that, two threads are running every 10 ms.
Now the kernel is compiled with 10 HZ, which is also 10 ms.

This means that the samplings in /proc/stat is completely random, and depending on when the threads was started relative to the kernel tick. If the threads are started just before the tick, the load would be 200%, and if the are started just after load would be 0%.

Recompiling the kernel with 1000 HZ only reduces the problem.

Setting the threads to 10.873127314 (aka 4e) would solve the problem. But one cant require applications to do so.

Now the question, would it be possible to add yet a selectable frequency to the kernel?

Sign In or Register to comment.