Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 05-26-2009, 02:00 AM   #1
LQ Newbie
Registered: Apr 2009
Posts: 19

Rep: Reputation: 0
How to measure system jitter


I have to measure system jitter under heady load conditions.
Can somebody tell me any open source available for the same.
If I wish to make my own program then How should I take the time stamps so that I get the most accurate reading.

gettimeofday I guess will not give the correct jitter value because it will have its own jitter introduced.
What I mean is the following code will not give the correct jitter value.

gettimeofday (start)
usleep(10000) // 10 ms
gettimeofday (end)

(end... - start....) will have gettimeofday delay as well

The correct value of jitter has to be something like this:
usleep() //10ms
<timestamp X: When process went to sleep for 10 ms>
<timestamp Y: When process rescheduled after (10+t) ms where t is jitter>

Can some body tell me how to make a program which can take these timestamps.
If someone can provide me some open source for the same then it would be even better.

Thanks in Advance

Last edited by nitinarora; 05-26-2009 at 02:02 AM.
Old 05-26-2009, 03:15 AM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 16,106

Rep: Reputation: 2255Reputation: 2255Reputation: 2255Reputation: 2255Reputation: 2255Reputation: 2255Reputation: 2255Reputation: 2255Reputation: 2255Reputation: 2255Reputation: 2255
I hope you mean latency - have a look if latencytop does what you need.
Old 05-26-2009, 05:05 PM   #3
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze SMP AMD64
Posts: 3,318

Rep: Reputation: 126Reputation: 126
A google search of "linux jiffies jitter" gave this among the other responses:

Since this is the kernel forum, there was also at least one link to kernel code which does a jitter correction. I'll leave it to you to find that.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ntp-server syncs ok then goes to 4000 jitter Notwerk Linux - Server 10 03-05-2007 06:44 AM
dvd jitter correction linuxmandrake Linux - Software 0 09-29-2006 01:22 PM
Copying to a FAT32 drive causes mouse to jitter Jimage Linux - Hardware 2 08-21-2006 06:51 AM
Tools for determinig Jitter bzlaskar Linux - Networking 0 07-01-2006 12:50 AM
LCD screen jitter jonfa Linux - Hardware 6 05-27-2005 03:32 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration