Jiffies too low for acceptable ppoll accuracy
Binary package hint: linux-image-
Hello,
we are developing an application that wants to (relatively precise) wake up at chosen microsecond values in the future. We are using the ppoll (2). When we wake up, we compare the gettimeofday (2) value with the expected result. Our process has normal nice level and is subject to the default scheduler of the kernel.
What we observe: On RHEL we reliably achieve delays below 2ms. On Ubuntu we fail to achieve this low delays, we get around 4ms, sometimes 8ms on relatively idle machines.
I have checked the ELF note 17 to determine the Hertz (as done in ps source code too), and on RHEL it's 1000, whereas on Ubuntu it's 100 only.
I believe this explains the poor performance on even an idle machine compare to RHEL. I could understand if the server kernel of Ubuntu had a low jiffy value, because higher jiffies loose throughput, but for the desktop kernel this is a surprise. And RHEL doesn't seem to consider 1000 too high. With tickless kernels the impact on notebooks power usage should not exist, so I don't see any obstacles.
My proposal would be to increase the HZ configuration of the non-server kernels of Ubuntu to 1000 to take advantage of tickless.
Yours,
Kay Hayen
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu linux Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Kay Hayen
- Solved:
- Last query:
- Last reply:
This question was originally filed as bug #252728.