Re: [expert] How to check if the swap is on?

2003-10-19 Thread Jack Coates
On Sun, 2003-10-19 at 18:38, Kwan Lowe wrote:
...
> List swap usage, statistics, etc..
>   vmstat
...

Another nifty trick with vmstat is vmstat [interval] [number of loops].
It outputs a nicely formatted table of memory, cpu, and disk subsystem
activity. Very good for isolating performance problems, you can run one
command and say "ah hah, your problem is that the disks are running like
gerbils on crack and the system is spending all its time blocked and
waiting for disks. Buy more and faster drives." 
-- 
Jack Coates
Monkeynoodle: A Scientific Venture...


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] How to check if the swap is on?

2003-10-19 Thread Kwan Lowe
>Although I can't remember the message on the beginning of boot process,I
know
>that it says something about swap not being turned on.  Later in the boot
>process, swap seems to be turned on but I want to be 100%.  How can I check
>if swap is on?  How can I check how much of swap linux is using and how much
>is left?

A few commands you can use besides the ones already mentioned:

List swap usage by device
 swapon -s

List swap usage, statistics, etc..
  vmstat

Show general memory usage
  free




-- 
The Digital Hermit  Unix and Linux Solutions
http://www.digitalhermit.com
[EMAIL PROTECTED]

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] How to check if the swap is on?

2003-10-19 Thread Eduardo M. A. M. Mendes
On Sunday 19 October 2003 11:04 pm, James Sparenberg wrote:

> Ed,
>   Probably a number of ways to do this but two quick ones.
> At a command line run "top" (without the quotes) you'll see your swap
> usage there.
>
>   Second way as root run "cat /proc/meminfo" (no quotes) and you will
> see the swap info there.
>
> james

Hi James

Many thanks!

Ed



>
> > __
> > Want to buy your Pack or Services from MandrakeSoft?
> > Go to http://www.mandrakestore.com


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] How to check if the swap is on?

2003-10-19 Thread Gary Hodder
On Sat, 2003-10-18 at 18:42, Eduardo M. A. M. Mendes wrote:
> Hello
> 
> Although I can't remember the message on the beginning of boot process, I know 
> that it says something about swap not being turned on.  Later in the boot 
> process, swap seems to be turned on but I want to be 100%.  How can I check 
> if swap is on?  How can I check how much of swap linux is using and how much 
> is left?
> 
> Many thanks
> 
> Ed
> 
> 

Run top, it will tell you if swap is on and how much is being used.

Gary.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] How to check if the swap is on?

2003-10-19 Thread James Sparenberg
On Sat, 2003-10-18 at 01:42, Eduardo M. A. M. Mendes wrote:
> Hello
> 
> Although I can't remember the message on the beginning of boot process, I know 
> that it says something about swap not being turned on.  Later in the boot 
> process, swap seems to be turned on but I want to be 100%.  How can I check 
> if swap is on?  How can I check how much of swap linux is using and how much 
> is left?
> 
> Many thanks
> 
> Ed

Ed,
  Probably a number of ways to do this but two quick ones.
At a command line run "top" (without the quotes) you'll see your swap
usage there.

  Second way as root run "cat /proc/meminfo" (no quotes) and you will
see the swap info there.

james

> 
> 
> 
> __
> Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://www.mandrakestore.com


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com