Swap not used *at**all*

2001-12-26 Thread Andrei Popov


Is this normal:

andrei@vogon:~
2:05:49pm% swapinfo
Device  1K-blocks UsedAvail Capacity  Type
/dev/ad4s1b5253440   525344 0%Interleaved

This machine is running with 256MB RAM and a 512MB swap device.  Swap usage
is zero even when running X and postgress and aolserver with a running
instance of OpenACS-4.

systat(1) with vmstat option shows no activity on swap either.

The system is a recent -CURRENT (21-Dec).


-- Andrei

P.S.  From -questions, please cc: me in reply

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Swap not used *at**all*

2001-12-26 Thread Dan Nelson

In the last episode (Dec 26), Andrei Popov said:
 
 Is this normal:
 
 andrei@vogon:~
 2:05:49pm% swapinfo
 Device  1K-blocks UsedAvail Capacity  Type
 /dev/ad4s1b5253440   525344 0%Interleaved
 
 This machine is running with 256MB RAM and a 512MB swap device.  Swap usage
 is zero even when running X and postgress and aolserver with a running
 instance of OpenACS-4.

Try this: 

dd if=/dev/zero of=/dev/null bs=192m count=1

That should force some swapping :)
 
-- 
Dan Nelson
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Swap not used *at**all*

2001-12-26 Thread Andrei Popov

On Wed, Dec 26, 2001 at 09:19:05AM -0600, Dan Nelson wrote:
 In the last episode (Dec 26), Andrei Popov said:
  
  Is this normal:
  
  andrei@vogon:~
  2:05:49pm% swapinfo
  Device  1K-blocks UsedAvail Capacity  Type
  /dev/ad4s1b5253440   525344 0%Interleaved
  
  This machine is running with 256MB RAM and a 512MB swap device.  Swap usage
  is zero even when running X and postgress and aolserver with a running
  instance of OpenACS-4.
 
 Try this: 
 
 dd if=/dev/zero of=/dev/null bs=192m count=1
 
 That should force some swapping :)

It sure does :)

But the question still remains -- is it not odd that there's no swapping
when running X, nor is there one when running fairly expenmsive Postgres
selects et al?

  
 -- 
   Dan Nelson
   [EMAIL PROTECTED]


-- Andrei

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Swap not used *at**all*

2001-12-26 Thread Dan Nelson

In the last episode (Dec 26), Andrei Popov said:
 On Wed, Dec 26, 2001 at 09:19:05AM -0600, Dan Nelson wrote:
  In the last episode (Dec 26), Andrei Popov said:
   Is this normal:
  
   Device  1K-blocks UsedAvail Capacity  Type
   /dev/ad4s1b5253440   525344 0%Interleaved
   
   This machine is running with 256MB RAM and a 512MB swap device. 
   Swap usage is zero even when running X and postgress and
   aolserver with a running instance of OpenACS-4.
  
  Try this: dd if=/dev/zero of=/dev/null bs=192m count=1.  That
  should force some swapping :)
 
 It sure does :)
 
 But the question still remains -- is it not odd that there's no
 swapping when running X, nor is there one when running fairly
 expenmsive Postgres selects et al?

Not necessarily.  It depends on your configuration.  If you tell
Postgres to use (say) 192MB of memory, then it will definitely swap,
just like the dd did.  If you only configure it for 64MB, then it could
easily coexist with X, Netscape, and other medium-memory-use
applications without swapping.  I wouldn't expect AOLServer to consume
much memory at all.

As comparison, I have a 512MB box that runs mysql (256MB), squid
(75MB), and roxen (20MB), and occasionally X+mozilla (64MB).  It has
30MB of swap used at the moment, which was probably just used once.

-- 
Dan Nelson
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Swap not used *at**all*

2001-12-26 Thread Alfred Perlstein

* Andrei Popov [EMAIL PROTECTED] [011226 12:21] wrote:
 On Wed, Dec 26, 2001 at 09:19:05AM -0600, Dan Nelson wrote:
  In the last episode (Dec 26), Andrei Popov said:
   
   Is this normal:
   
   andrei@vogon:~
   2:05:49pm% swapinfo
   Device  1K-blocks UsedAvail Capacity  Type
   /dev/ad4s1b5253440   525344 0%Interleaved
   
   This machine is running with 256MB RAM and a 512MB swap device.  Swap usage
   is zero even when running X and postgress and aolserver with a running
   instance of OpenACS-4.
  
  Try this: 
  
  dd if=/dev/zero of=/dev/null bs=192m count=1
  
  That should force some swapping :)
 
 It sure does :)
 
 But the question still remains -- is it not odd that there's no swapping
 when running X, nor is there one when running fairly expenmsive Postgres
 selects et al?

No, the system tries pretty hard not to swap.  In fact swapping is
really a bad thing to have happen on a loaded machine as it can
result in a cascade failure.  If you look in the archives for
Matt Dillon's postings on cascade failure it will explain things
a lot better.

-- 
-Alfred Perlstein [[EMAIL PROTECTED]]
'Instead of asking why a piece of software is using 1970s technology,
 start asking why software is ignoring 30 years of accumulated wisdom.'
Tax deductable donations for FreeBSD: http://www.freebsdfoundation.org/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message