LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-19-2012, 04:05 PM   #1
RickCheung
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, 06:34 AM   #2
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,401

Rep: Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119
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 05:43 PM.
 
  


Reply


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


All times are GMT -5. The time now is 09:37 AM.

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