Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-19-2012, 05:05 PM   #1
LQ Newbie
Registered: Oct 2012
Posts: 13

Rep: Reputation: Disabled
How to monitor the real time kernel buffer utilization

I want to monitor the real time utilization of a kernel module buffer, while running some benchmark. But when I did it through adding some "printk(...)", I found the performance of benchmark will be seriously injured, which in turn cannot reflect the exact real time buffer utilization. So, how can I achieve this? I mean, monitor the buffer utilization while not injuring the performance of the running benchmark, or just a little performance injury that can be neglected.
Thank you!
Old 11-21-2012, 07:34 AM   #2
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,986

Rep: Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444
A routine like "printk" would indeed be very "phat" (fat...).

Usually, the best way I've found to do metrics like this is to set some kind of a rule, then use a very simple yes/no counting mechanism to observe how often the rule was or was-not broken. When the counter values grow large, do a logical right-shift (divide by two) on all of them at once so that they never overflow.

This approach is one of giving you the answer that you really care about: "am I running out of room?" Or, "am I possibly losing data to a buffer overrun?" And, it doesn't give you a flood of data to "analyze."

Find out "what hurts," e.g. running out of buffers. Then, set up some kind of test ... "90% of the time I wont run out." Yes or no. Pass or fail. This is often much easier than gathering some huge data stream and trying to "analyze" it.

Last edited by sundialsvcs; 11-21-2012 at 06:43 PM.


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
Measure CPU Utilization on Real time Linux patsylin Linux - Software 1 07-01-2010 01:21 PM
real time kernel not real time, still xruns in Jackd browny_amiga Linux - General 0 09-20-2009 03:47 PM
Real Time Monitor for proxy server kepkin Linux - Server 0 08-30-2007 08:57 AM
Monitor directory size in real-time billygoat32 Linux - Software 2 10-28-2005 10:21 AM
Graphical real-time bandwidth monitor ??? khermans Linux - Software 5 05-10-2004 10:54 PM

All times are GMT -5. The time now is 04:51 AM.

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