LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-19-2012, 09:16 AM   #1
yaswanth4b7
LQ Newbie
 
Registered: Aug 2012
Posts: 5

Rep: Reputation: Disabled
memory issuse


hi, i want to check particular pid how memory it consumed in both swap memory and physical memory
 
Old 12-19-2012, 09:34 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,627

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
Quote:
Originally Posted by yaswanth4b7 View Post
hi, i want to check particular pid how memory it consumed in both swap memory and physical memory
At the terminal type:

Code:
htop
(or just type " top ", and to exit press Ctl+C
 
Old 12-19-2012, 09:42 AM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
I'm pretty sure htop will not give you any useful information about swap usage by a specific pid. I'm even more sure top will not give you useful swap use info (top has a SWAP column that is useless info and not correlated with swap use).

In /proc/pid/smaps you can find the best detail I know of for memory and swap use by a pid. It is a bit verbose, so you would probably want some kind of program to read that and summarize the data into a more easily understood form.

Last edited by johnsfine; 12-19-2012 at 09:44 AM.
 
  


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
Slackware networking and printing issuse Hallofo Slackware 6 10-03-2012 11:57 AM
Install issuse on ASUS G60JX Ezekeiil Linux - Laptop and Netbook 0 05-30-2011 03:46 PM
Yast2 Security issuse form command line Andrew Sorensen SUSE / openSUSE 4 06-10-2006 05:00 AM
strange nfs mounting issuse triXlife Linux - Networking 1 04-26-2006 08:26 PM
Kernel issuse installing NVIDIA drivers on Suse 8.2 steve1401 Linux - Hardware 7 06-06-2003 02:30 AM


All times are GMT -5. The time now is 06:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration