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 09-28-2006, 10:45 AM   #1
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Which process is using my SWAP ???


Hello all,
i'm running short of memory. Don't know which process is sucking so much of memory.
Is there any way of knowing that which process is using the swap and which one using the main memory ???

regards
 
Old 09-28-2006, 12:24 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
I believe the program you want to use is called top. man top for usage.
 
Old 09-28-2006, 12:44 PM   #3
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
Quote:
Originally Posted by ruudra
Hello all,
i'm running short of memory. Don't know which process is sucking so much of memory.
Is there any way of knowing that which process is using the swap and which one using the main memory ???

regards
I think man lsof would help. There are a lot of options with lsof...you could try this one specifially.

Code:
lsof /dev/hdaX
Replace hdaX with your swap drive.

Tux,

Last edited by tuxrules; 09-28-2006 at 12:45 PM.
 
Old 01-25-2007, 02:10 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
also you could try looking more into

iostat and vmstat with various options in these..
 
  


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
How to disable swap space entry for a process (Sticky bit?) Pandamatak Linux - General 3 09-25-2006 07:17 PM
Linux swap / solaris not appearing as swap in Ubuntu? Erik_the_Red Linux - Newbie 1 07-30-2005 01:57 PM
When does process swap happen in a system call? oldfogie Programming 3 05-03-2005 08:35 PM
What process is changing /etc/fstab and deleting my swap mount? ffrr Linux - Software 8 03-18-2005 10:16 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 02:23 AM


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