Increasing SWAP space: help.

Increasing SWAP space: help.

Post by Kathikeyan Sure » Thu, 08 May 1997 04:00:00



Hi!
I have to increase my swap space and quite honestly I forgot the steps
to do it. Right now, my /etc/vfstab says the following

/dev/dsk/c0t0d0s1       -       -       swap    -       no      -
swap    -       /tmp    tmpfs   -       yes     -

and the command swap -l give the following output:

swapfile             dev  swaplo blocks   free
/dev/dsk/c0t0d0s1   32,1      16 135264   6880

Could someone please send me an email on how to increase the swap space

Thanks for your kind help..

Suresh.


 
 
 

Increasing SWAP space: help.

Post by Andrey Ryzho » Fri, 09 May 1997 04:00:00



> Hi!
> I have to increase my swap space and quite honestly I forgot the steps
> to do it. Right now, my /etc/vfstab says the following

> /dev/dsk/c0t0d0s1       -       -       swap    -       no      -
> swap    -       /tmp    tmpfs   -       yes     -

> and the command swap -l give the following output:

> swapfile             dev  swaplo blocks   free
> /dev/dsk/c0t0d0s1   32,1      16 135264   6880

> Could someone please send me an email on how to increase the swap space

> Thanks for your kind help..

> Suresh.



Don't remember exactly but seems like I did it
by adding more entries of the form
/dev/dsk/cXtYd0sZ       -       -       swap    -       no      -
to /etc/vfstab, and run mount command for each XYZ:
mount /dev/dsk/cXtYd0sZ
you don't need to reboot the machne.
Next time it boots, it will pick this space automatically.

Andrey

 
 
 

Increasing SWAP space: help.

Post by Alex Sau-Leung L » Fri, 09 May 1997 04:00:00


: Hi!
: I have to increase my swap space and quite honestly I forgot the steps
: to do it. Right now, my /etc/vfstab says the following

: /dev/dsk/c0t0d0s1     -       -       swap    -       no      -
: swap  -       /tmp    tmpfs   -       yes     -

: and the command swap -l give the following output:

: swapfile             dev  swaplo blocks   free
: /dev/dsk/c0t0d0s1   32,1      16 135264   6880

Here are the steps

1) Find some local disk space to create a swap file.
   On my sparc 20, I use the /export/home

2) create the swap file. ( 100MB is created here)
   mkfile 100m /export/home/swap

3) Make the file available for swapping
   swap -a /export/home/swap

4) Add the following line in /etc/vfstab so that the swap file is used
   after reboot.

   /export/home/swap    -       -       swap    -       no      -

Hope this works for you.

regards,
Alex Lee
Mech Eng.
Chinese Univ. of Hong Kong

 
 
 

Increasing SWAP space: help.

Post by Peter L. Berghol » Tue, 13 May 1997 04:00:00


This is a multi-part message in MIME format.
--------------F44BAA75673FDE4F187944FE
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


> Could someone please send me an email on how to increase the swap space

swap -a /dev/dsk/cXtYdZsW where X Y Z and W are the appropriate values
for the device you want to use for swap.

This is a temporary situation.

Otherwise you'd put an entry in /etc/vfstab as
/dev/dsk/cXtYdZsW - - swap - - -

Then the device will be loaded as swap at boot time.  Course you can
also do both and you won't have to reboot...

--
PGP Fingerprint = D6 74 56 8E FB 52 4E DD  5C 3F 32 FE AE 1F 1C D0

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Peter L. Berghold -- Unix Hacker at Large                          %%
%% TCG -- MIS Department       PHONE: (908) 392-2722                  %%

%% "Those who fail to learn from history are condemned to repeat it"  %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
--------------F44BAA75673FDE4F187944FE
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Peter  Berghold
Content-Disposition: attachment; filename="vcard.vcf"

begin:vcard
fn:Peter  Berghold
n:Berghold;Peter
org:Who ME?  Organized?!?!?!?!

x-mozilla-cpt:;0
x-mozilla-html:FALSE
end:vcard

--------------F44BAA75673FDE4F187944FE--

 
 
 

Increasing SWAP space: help.

Post by John Kotche » Tue, 13 May 1997 04:00:00




> > Could someone please send me an email on how to increase the swap space

> swap -a /dev/dsk/cXtYdZsW where X Y Z and W are the appropriate values
> for the device you want to use for swap.

> This is a temporary situation.

> Otherwise you'd put an entry in /etc/vfstab as
> /dev/dsk/cXtYdZsW - - swap - - -

> Then the device will be loaded as swap at boot time.  Course you can
> also do both and you won't have to reboot...

Peter, your usually good advice is a bit off the mark on this one.

Suppose Kathikeyan has no available raw slices?????  Or worse, he
does a swap -a on an _existing_ file system.

Alternatively I propose this:

1)  Find a file system with plenty o' space.
2)  Create a file of appropriate size (I'm assuming /home/swapfile 100m)
        mkfile -v 100m /home/swapfile
3)  Add the additional swap space:
        swap -a /home/swapfile
4)  To make this permanent add an entry in /etc/rc2.d or /etc/rc3.d

--
       ___________________________________
      / John Kotches is *netically:  /\


   /                                  / /
  /  Technology: no place for wimps! / /
  \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/

 
 
 

Increasing SWAP space: help.

Post by Paul Schall » Wed, 14 May 1997 04:00:00


When I did a manual add of the swap space, swap -a /swap/here,
I received what l;ooked to be an error that swap spaces can't be
overlapped.

Could this be to the fact that I had already added it to me /etc/vfstab
file, rebooted and then tried to the swap command?  If not, then why
did I get what looked like an error?

TIA,
Paul
(To email me directly, remove the "deletethis" from my email address.)

 
 
 

Increasing SWAP space: help.

Post by Jose Luis Martinez Salina » Thu, 15 May 1997 04:00:00





> > > Could someone please send me an email on how to increase the swap
space

> > swap -a /dev/dsk/cXtYdZsW where X Y Z and W are the appropriate values
> > for the device you want to use for swap.

> > This is a temporary situation.

> > Otherwise you'd put an entry in /etc/vfstab as
> > /dev/dsk/cXtYdZsW - - swap - - -

> > Then the device will be loaded as swap at boot time.  Course you can
> > also do both and you won't have to reboot...

> Peter, your usually good advice is a bit off the mark on this one.

> Suppose Kathikeyan has no available raw slices?????  Or worse, he
> does a swap -a on an _existing_ file system.

> Alternatively I propose this:

> 1)  Find a file system with plenty o' space.
> 2)  Create a file of appropriate size (I'm assuming /home/swapfile 100m)
>    mkfile -v 100m /home/swapfile
> 3)  Add the additional swap space:
>    swap -a /home/swapfile
> 4)  To make this permanent add an entry in /etc/rc2.d or /etc/rc3.d

An entry could be added also in the /etc/vfstab, it does not matter it is a
regular file in a filesystem, of course you have to be sure the filesystem
that hosts your new swap space is mounted first.
 
 
 

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. PPP GUI

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

4. Compiling BIND 8.1.2 on RedHat 5.2

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

6. CKermit, RH5

7. Allocated swap space versus used swap space

8. system calls tracer for Linux?

9. Increasing swap space on Solaris 2.4

10. Increasing swap space

11. increasing swap space

12. How to increase swap space in AIX PS/2 1.1?

13. Increasing Swap Space