Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 02-28-2013, 02: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, 03:03 AM   #2
Senior Member
Registered: Mar 2004
Location: england
Distribution: Debian, Mint, Puppy, Raspbian
Posts: 3,421

Rep: Reputation: 200Reputation: 200Reputation: 200
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 03:04 AM. Reason: bad grandma


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

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