Help!

CPU load monitoring

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> App Development RSS
Next:  yast2 Software installieren: Schemata werden nich..  
Author Message
maksim.galemin
External


Since: Jun 03, 2009
Posts: 1



PostPosted: Wed Jun 03, 2009 1:51 am    Post subject: CPU load monitoring
Archived from groups: comp>os>linux>development>apps (more info?)

Hi all!

I have a couple of applications running with highest priority on my
embedded linux board. I want to monitor their CPU load in real time
and decrease the application priority using setpriority() function
when it exceeds some theshold. I can use getloadavg() but I want to
monitor CPU load by the particular application (something like in
"top") but not the entire CPU load.

Is it possible? Thank you in advance!
Back to top
David Schwartz
External


Since: Apr 29, 2007
Posts: 57



PostPosted: Fri Jun 05, 2009 5:50 pm    Post subject: Re: CPU load monitoring [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Jun 3, 1:51 am, maksim.gale... DeleteThis @gmail.com wrote:

> I have a couple of applications running with highest priority on my
> embedded linux board. I want to monitor their CPU load in real time
> and decrease the application priority using setpriority() function
> when it exceeds some theshold. I can use getloadavg() but I want to
> monitor CPU load by the particular application (something like in
> "top") but not the entire CPU load.
>
> Is it possible? Thank you in advance!

This seems an odd thing to do. Why not just drop the priority in the
first place? What is the effect you are trying to achieve? Are you
trying to tune the distribution of CPU time over long periods of time
or are you more concerned about latency?

DS
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> App Development All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum