[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: what is using my swap



On Wed, 8 Jun 2005 17:49:27 -0400
"theal" <theal@pace2020.com> wrote:

> I have a program that suspect is cause my swap to grow to almost a gig, but it would be nice to verify without restarting a very mission critical program.
> 

Run ps aux or top and look for programs using a lot of memory.

Programs don't have any control on whether they are using regular memory or
swap, its the kernels job to decide what it does.

Run free and see how much memory you are using. Take note of the caches field
though. Disk accesses are also cached to memory to reduce farther seek times,
so your system may be using a lot more memory then the actual programs are
using in order to speed overall things (I think that there is some control
through the proc file system over cache and buffer usage, but I'm not sure).

> Tony
>   ----- Original Message ----- 
>   From: Michael Z Daryabeygi 
>   To: debian-user@lists.debian.org 
>   Sent: Wednesday, June 08, 2005 5:43 PM
>   Subject: Re: what is using my swap
> 
> 
>   I know nothing, but I would think that the OS uses swap, not individual 
>   processes.  Probably the memory optimizer does it's job regardless of 
>   free memory?
>   What is the problem with using swap?  Or are you just curious?
> 
>   theal wrote:
>   > Does anyone know how to tell what program or PID is causing swap usage? 
>   > I have a system with 2 GB RAM so it should using little or no swap, but 
>   > at times it does and I need to determine what the cause is.
>   >  
>   > Tony
>   > 
>   > 
>   > ------------------------------------------------------------------------
>   > 
>   > No virus found in this incoming message.
>   > Checked by AVG Anti-Virus.
>   > Version: 7.0.323 / Virus Database: 267.6.6 - Release Date: 6/8/2005
> 
>   -- 
>   ~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~`
>   Michael Z Daryabeygi
>   Database Applications Developer
>   Sligo Computer Services Co-op
>   www.sligowebworks.com
>   301.270.9673 x 304
>   ~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~`~,~`
> 
> 
>   -- 
>   No virus found in this outgoing message.
>   Checked by AVG Anti-Virus.
>   Version: 7.0.323 / Virus Database: 267.6.6 - Release Date: 6/8/2005
> 
> 
>   -- 
>   To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
>   with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 
>  
>  +++++++++++++++++++++++++++++++++++++++++++
>  This Mail Was Scanned By Mail-seCure System
>  at the Tel-Aviv University CC.



Reply to: