Swap usage

This is a discussion on Swap usage within the Linux General forums, part of the Linux Forums category; Hi How to know if my linux is currently using swap or not, e.g. Top: Mem: 4041528k total, 3988108k ...


Go Back   Usenet Forums > Linux Forums > Linux General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-23-2008
howa
 
Posts: n/a
Default Swap usage

Hi

How to know if my linux is currently using swap or not, e.g.

Top:

Mem: 4041528k total, 3988108k used, 53420k free, 87912k
buffers
Swap: 2048248k total, 29364k used, 2018884k free, 2359168k
cached

If it is not currently using swap, how to check if it hit the swap
frequency?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 06-23-2008
Andrew Halliwell
 
Posts: n/a
Default Re: Swap usage

howa <howachen@gmail.com> wrote:
> Hi
>
> How to know if my linux is currently using swap or not, e.g.
>
> Top:
>
> Mem: 4041528k total, 3988108k used, 53420k free, 87912k
> buffers
> Swap: 2048248k total, 29364k used, 2018884k free, 2359168k
> cached


Says there. 29365k used. That's swap.

>
> If it is not currently using swap, how to check if it hit the swap
> frequency?


frequency? Did you mean recently?
Dunno, I'm sure there're a few system monitoring and stat collection tools
out there that might be able to tell you, like sar, I think... But if you've
not got any of that stuff running at the time, I think you can only look at
current swap usage as a snapshot, not review how it was used in the past.

Swap's nothing to worry about. Programs that're running but haven't been
used for a time end up being swapped out to make the system RAM available
for file caching and buffering. It's more use than just sitting there
holding a program that's not being used.
--
| spike1@freenet.co.uk | |
| Andrew Halliwell BSc | "The day Microsoft makes something that doesn't |
| in | suck is probably the day they start making |
| Computer science | vacuum cleaners" - Ernst Jan Plugge |
Reply With Quote
  #3 (permalink)  
Old 06-24-2008
The Natural Philosopher
 
Posts: n/a
Default Re: Swap usage

Andrew Halliwell wrote:
> howa <howachen@gmail.com> wrote:
>> Hi
>>
>> How to know if my linux is currently using swap or not, e.g.
>>
>> Top:
>>
>> Mem: 4041528k total, 3988108k used, 53420k free, 87912k
>> buffers
>> Swap: 2048248k total, 29364k used, 2018884k free, 2359168k
>> cached

>
> Says there. 29365k used. That's swap.
>
>> If it is not currently using swap, how to check if it hit the swap
>> frequency?

>
> frequency? Did you mean recently?
> Dunno, I'm sure there're a few system monitoring and stat collection tools
> out there that might be able to tell you, like sar, I think... But if you've
> not got any of that stuff running at the time, I think you can only look at
> current swap usage as a snapshot, not review how it was used in the past.
>
> Swap's nothing to worry about. Programs that're running but haven't been
> used for a time end up being swapped out to make the system RAM available
> for file caching and buffering. It's more use than just sitting there
> holding a program that's not being used.


yeah..its page out *rates* that you need to watch: if that starts
becoming routine, you have more ACTIVE programs than RAM to fit them in.

Reply With Quote
  #4 (permalink)  
Old 06-24-2008
howa
 
Posts: n/a
Default Re: Swap usage

Hi

On 6$B7n(B23$BF|(B, $B2<8a(B6$B;~(B08$BJ,(B, Andrew Halliwell <spi...@ponder.sky.com> wrote:
> Swap's nothing to worry about. Programs that're running but haven't been
> used for a time end up being swapped out to make the system RAM available
> for file caching and buffering. It's more use than just sitting there
> holding a program that's not being used.
> --


so are there anyway to know how many active memory in use by all
running process?

Thanks.
Reply With Quote
  #5 (permalink)  
Old 06-24-2008
Andrew Halliwell
 
Posts: n/a
Default Re: Swap usage

howa <howachen@gmail.com> wrote:
> Hi
>
> On 6???23???, ??????6???08???, Andrew Halliwell <spi...@ponder.sky.com> wrote:
>> Swap's nothing to worry about. Programs that're running but haven't been
>> used for a time end up being swapped out to make the system RAM available
>> for file caching and buffering. It's more use than just sitting there
>> holding a program that's not being used.
>> --

>
> so are there anyway to know how many active memory in use by all
> running process?


ps
That can show all running processes, their memory usage as a number and a
percentage, cpu usage and other things, like cpu time used, walltime, etc.

Also
top
which constantly updates (but only shows the top processes, along with
free and cpu stats and uptime, but you can switch between top memory users
and top cpu users)
--
| spike1@freenet.co,uk | "Are you pondering what I'm pondering Pinky?" |
| Andrew Halliwell BSc | |
| in | "I think so brain, but this time, you control |
| Computer Science | the Encounter suit, and I'll do the voice..." |
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:39 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0