Swap space not show by swap -l

Swap space not show by swap -l

Post by Mohammed Saji » Sat, 23 Nov 2002 03:57:06



Hi There,

I have a SUN E3000 server with 6 .8 GB allocated as swap slice but when I
check swap with swap -l it shows only 2 GB. Any idea why?

Thanks in advance

Sajid

 
 
 

Swap space not show by swap -l

Post by Darren Dunha » Sat, 23 Nov 2002 04:21:59



> Hi There,
> I have a SUN E3000 server with 6 .8 GB allocated as swap slice but when I
> check swap with swap -l it shows only 2 GB. Any idea why?

Likely you are running a 32 bit kernel.

1) Are you running 2.6 or below?
1a) If not, do a 'isainfo -b'

32 bit kernels can only use the first 2GB of any swap file.  So you're
wasting 4.8 GB with this configuration.

Do you *need* more than a 2GB swapfile on this machine?  Why are you
paging/swapping so much?

--

Unix System Administrator                    Taos - The SysAdmin Company
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

 
 
 

Swap space not show by swap -l

Post by Chris Thomps » Sat, 23 Nov 2002 04:34:27




>I have a SUN E3000 server with 6 .8 GB allocated as swap slice but when I
>check swap with swap -l it shows only 2 GB. Any idea why?

You are probably running an old version of Solaris (2.6 or earlier) or
a 32-bit mode kernel. In these cases only the first 2 GB of each swap
area can be used.

Chris Thompson
Email: cet1 [at] cam.ac.uk

 
 
 

Swap space not show by swap -l

Post by msajid » Wed, 27 Nov 2002 04:00:54


Hi there,

Right I was having 2.6 and recently upgraded to 8 but still in 32
bit mode. I am going to do the OBP upgrade this weekend. Thanks for
this info.

Actually, I am not sure whether I will need so much swap but this has
been proposed by my application vendor. My system has 2 GB RAM . There
is one Oracle instance ( Oracle 7 ) already running. We need to have one
more instance ( Oracle 8 ) on the same machine for application
co-existance. This is one reason I thought it might require more swap.
Application is one of oil field related ( Seismic ) applcations which
also reserves swap space when executed.

Any comments? Or what kind of swap size is optimal on a 2 CPU , 2
GB machine?

Thanks once again.

--
Posted via http://dbforums.com

 
 
 

Swap space not show by swap -l

Post by Darren Dunha » Wed, 27 Nov 2002 06:31:20



> Any comments? Or what kind of swap size is optimal on a 2 CPU , 2
> GB machine?

Required swap size depends on what you're doing, not just what you have.

If you're trying to run 3 GB of stuff on 2GB of RAM, then you're going
to need swap space (and you know it will slow down).

If you're only running 1GB of stuff on 1GB of RAM, then you may not need
any swap, but having at least a bit turned on can improve things.

Of course your swap space is also your default dump region, so you may
want to have it if you need core dumps.

Most production machines need speed, so swapping/paging of any
significant amount is a very bad thing.  They don't tend to need gigs
and gigs of swap space.

Adding more swap space isn't really a bad thing other than the loss of
disk space.  I'm *not* giving a 10G machine a 10G swap space unless
someone has a good reason for it.  I'll generally default to 2G when I
have no other information.

--

Unix System Administrator                    Taos - The SysAdmin Company
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

 
 
 

1. plenty of swap space, but keep receiving error "swap space limit exceeded"

Syslog reports
  unix: WARNING: /tmp: File system full, swap space limit exceeded

But

  Filesystem            kbytes    used   avail capacity  Mounted on
  swap                 2423720   48480 2375240     3%    /tmp

The host:
  SunOS <hostname> 5.7 Generic_106541-16 sun4u sparc SUNW,Ultra-60

I ran vmstat 1 for some time and watched for available swap space to
go to zero. But the lowest it would go is 75kB.

When analyzing this problem, I ran into the following error twice, but
for different commands:
  Can't run command <command>
  fork(2) failed; no more memory

What's going on?

Thanks.

2. ACER Trio64 based PCI video card

3. Try to mount a seocn SWAP space-- error" unable to find swap space signature"

4. => RedHat?

5. Is swap space in SCO only swap space or is it consider virtual memory

6. statfs returning erroneous data(or I'm just on crack)

7. Allocated swap space versus used swap space

8. Informagic Developers Release - IDE installation problems.

9. Paging space size (NOT swap space size)

10. Adding swap space using 'swap -a' command ?

11. Only 16MB swap space with 30 MB swap file ?

12. How to remove swap partition/swap space

13. Same space for OS/2 swap file/Linux swap partition?