LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 12-14-2009, 06:05 AM   #1
richmike3
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Rep: Reputation: 0
Question how to get memory info using system calls or files in linux


Dear All,

I want to get memory information like swap, mounted file system, RAM and etc. on Linux system by either using system calls or reading file. I need all information about particular partition like name, total memory, available memory, whether accessible or not and so on.

Thanks dears.

Regards,
Richard

Last edited by richmike3; 12-14-2009 at 06:07 AM.
 
Old 12-14-2009, 06:17 AM   #2
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,633
Blog Entries: 29

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Try out the following commands:

for RAM etc..
Code:
cat /proc/meminfo
for filesystems:
Code:
cat /proc/filesystems
for Processors etc..
Code:
cat /proc/cpuinfo

Last edited by TheIndependentAquarius; 12-14-2009 at 06:41 AM.
 
1 members found this post helpful.
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how does java calls the system calls which are written in c babu198649 Linux - General 3 12-05-2011 04:40 AM
getting cpu info, system info thru system calls naveenisback Programming 7 06-11-2010 03:06 PM
How to get info from system calls in Linux using C++ tnjones Programming 2 10-19-2008 11:53 AM
Info files in the help system, e.g., grub pwabrahams Linux - Software 3 01-10-2008 08:33 AM
Wrong memory info in gnome-system-monitor after 2.6.6 kernel upgrade corezapr Linux - Software 1 06-14-2004 04:57 AM


All times are GMT -5. The time now is 10:49 PM.

Main Menu
Advertisement
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