LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 02-28-2013, 01:27 AM   #1
veena hosur
LQ Newbie
 
Registered: Feb 2013
Posts: 13

Rep: Reputation: Disabled
cpu load and memory consumption


how to get cpu load and memory consumption of current kernel module.using c
 
Old 03-01-2013, 02:03 AM   #2
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,290

Rep: Reputation: 174Reputation: 174
there is a function I came across it the other day I cannot for the life of me remember.

I can see using strace that prtstat reads /proc/pid/stat though.

Last edited by bigearsbilly; 03-01-2013 at 02:04 AM. Reason: bad grandma
 
  


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
CPU Consumption yusufs Linux - Newbie 5 11-12-2007 12:17 AM
Measure "CPU load" and "memory consumption" of a process DaneelGiskard Programming 3 08-30-2007 11:43 AM
limit CPU consumption eantoranz Linux - Security 3 07-19-2005 08:32 PM
server over load cpu/memory usage chadi Linux - General 11 12-15-2004 03:31 PM
CPU, Load and Memory ... KnightAzul Linux - General 1 09-17-2003 11:57 AM


All times are GMT -5. The time now is 06:32 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