Web Hosting Talk







View Full Version : How to increase swap space?


pmak0
07-05-2001, 12:01 PM
How do I increase the swap space on my machine?

[root@sg1 root]# uname -a
Linux sg1.indexthis.net 2.2.17-14 #1 Mon Feb 5 17:53:36 EST 2001 i686 unknown
[root@sg1 root]# free
total used free shared buffers cached
Mem: 257516 245488 12028 57656 5420 30524
-/+ buffers/cache: 209544 47972
Swap: 102808 102804 4

cbaker17
07-05-2001, 01:35 PM
Its pretty hard to adjust partition sizes on a active server, im not a tech so someone might no of a secret, but i sure dont.

cabalstudios
07-05-2001, 02:05 PM
The only thing that comes to mind, when trying to increase partitions/swap space, is the linux equivalent to Partition Magic.

From the top of my head I cant seem to remeber the name of the program.

but... when I do I will post here.

alchiba
07-05-2001, 03:59 PM
This link might help:

http://www.netadmintools.com/tricks.html

pmak0
07-05-2001, 04:08 PM
Originally posted by alchiba
This link might help:

http://www.netadmintools.com/tricks.html

Thanks! That's exactly what I needed. I just followed the instructions and my machine has a lot more swap space now.

cabalstudios
07-05-2001, 04:12 PM
alchiba,

thanks for that mate :)

jw
07-05-2001, 06:38 PM
I dont know why you would need to make more swap space. swap is used when there is not enough ram on your system, or else your server would crash. An optimal system should use 0% of their swap space. swap is basically ram in your hard drive, therefore MUCH slower than regular ram. If I was you, I would upgrade my ram :)

qslack
07-05-2001, 06:49 PM
Originally posted by jw
I dont know why you would need to make more swap space. swap is used when there is not enough ram on your system, or else your server would crash. An optimal system should use 0% of their swap space. swap is basically ram in your hard drive, therefore MUCH slower than regular ram. If I was you, I would upgrade my ram :)

I agree. And you should get RAM *now*, 'cause it's incredibly cheap. You can get a 256MB PC133 stick of RAM for just $40 or so.

jks
07-05-2001, 10:23 PM
Originally posted by pmak0
How do I increase the swap space on my machine?

[root@sg1 root]# uname -a
Linux sg1.indexthis.net 2.2.17-14 #1 Mon Feb 5 17:53:36 EST 2001 i686 unknown
[root@sg1 root]# free
total used free shared buffers cached
Mem: 257516 245488 12028 57656 5420 30524
-/+ buffers/cache: 209544 47972
Swap: 102808 102804 4

Why do you want to increate your swap space when you have 18.6% free ram? (free = memory not used by programs, but only by buffers/cache).

--
Jens Kristian Søgaard, Mermaid Consulting I/S,
jens@mermaidconsulting.dk,
http://www.mermaidconsulting.com/

pmak0
07-06-2001, 01:00 AM
> Why do you want to increate your swap space when
> you have 18.6% free ram?

I've been running out of swap space lately, causing all sorts of nasty things to happen on the machine (such as programs crashing and working incorrectly as a result).

I know I should probably buy more RAM, but Dialtone Internet charges a fortune. $180 to get a 256 MB upgrade! (I can't send them my own RAM because this is a dedicated server.)

Madman2020
07-06-2001, 10:52 AM
Even if you increase swap with a swapfile, you should consider purchasing more physical RAM. More swap will help but you may have to keep increasng it.

Originally posted by pmak0
> Why do you want to increate your swap space when
> you have 18.6% free ram?

I've been running out of swap space lately, causing all sorts of nasty things to happen on the machine (such as programs crashing and working incorrectly as a result).

I know I should probably buy more RAM, but Dialtone Internet charges a fortune. $180 to get a 256 MB upgrade! (I can't send them my own RAM because this is a dedicated server.)

carpman
07-07-2001, 06:49 AM
Originally posted by pmak0
> Why do you want to increate your swap space when
> you have 18.6% free ram?

I've been running out of swap space lately, causing all sorts of nasty things to happen on the machine (such as programs crashing and working incorrectly as a result).

I know I should probably buy more RAM, but Dialtone Internet charges a fortune. $180 to get a 256 MB upgrade! (I can't send them my own RAM because this is a dedicated server.)

I had same problem, seemed interchange/akopia was hogging memory, did this killall -9 interchange and it freed up loads of swap memory