Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-19-2012, 10:16 AM   #1
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, 10:34 AM   #2
Senior Member
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,665

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
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:

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

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
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 10:44 AM.


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

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