How can I increase swap space?

How can I increase swap space?

Post by Ken » Thu, 29 Mar 2001 11:53:55



When I configured the system, I had 256 MB RAM, so I setup 2 swap partitions
each 256MB.
Also, I didn't expect the need to go beyond 512MB. But, I'm doing database
development.
Now I want to upgrade the machine to 1 GB RAM, would it be safe without
increasing swap?
I have more space left on the hard drive, but I can't move the 4 unknown
partitions at the end.
I have RedHat 6.2 (2.2.16)

Current fdisk:
Command (m for help): p

Disk /dev/hda: 255 heads, 63 sectors, 4982 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1         3     24066   83  Linux
/dev/hda2             4      4982  39993817+   5  Extended
/dev/hda5             4       264   2096451   83  Linux
/dev/hda6           265       525   2096451   83  Linux
/dev/hda7           526       786   2096451   83  Linux
/dev/hda8           787      1047   2096451   83  Linux
/dev/hda9          1048      1308   2096451   83  Linux
/dev/hda10         1309      1569   2096451   83  Linux
/dev/hda11         1570      1602    265041   82  Linux swap
/dev/hda12         1603      1635    265041   82  Linux swap
/dev/hda13         1636      1896   2096451   d3  Unknown
/dev/hda14         1897      2157   2096451   d3  Unknown
/dev/hda15         2158      2418   2096451   d3  Unknown
/dev/hda16         2419      2679   2096451   d3  Unknown

Any help would be greatly appreciated.

Thanks

Ken

 
 
 

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. CSLIP?

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

4. Linux Traffic Control

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

6. tshell documentation

7. Allocated swap space versus used swap space

8. Support for Colorado memroy system tape

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