General discussion

Locked

swap prob

By umar381 ·
I'm using LINUX Machine and I have 128 MB RAM and 128 MB swap I wanna run a program which required 500 MB Memory.
What should I do to run this program?

This conversation is currently closed to new comments.

9 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

swap prob

by anthonyc In reply to swap prob

Not sure what kind of program that is but you could add more swap. Type - man mkswap - read the man page on how to add more swap space.

anthonyc

Collapse -

swap prob

by umar381 In reply to swap prob

The question was auto-closed by TechRepublic

Collapse -

swap prob

by jimRHCE In reply to swap prob

Get 500 mb ram. If you need it you need it. Swap should only be used to allow your machine to work under extra load. Never use it on a day to day basis ( unless you want it to run slow ;). The extra access will also put more wear on the drive. If you run 4-5 apps that need ~128mb but usually only run 1-2 at a time, your current setup might make sense. I personally never make my swap more than 2x my physical ram. At bare minimum I would add 256mb ram and 500-600mb swap. "man fstab" to see how toadd annother swap partition if necessary.

jhamme01@hotmail.com

Collapse -

swap prob

by umar381 In reply to swap prob

The question was auto-closed by TechRepublic

Collapse -

swap prob

by anp04 In reply to swap prob

1) Best possible answer: Remove 128 MB and 512MB RAM. Create a swap file in one of the partitons having ample amount of Free space.
The procedure is:
a) >swapfile
b)mkswap swapfile n, where n is the size of swap you need to add in KB.
c) swapon swapfile

2) If you are willing to compromise on speed simply add a larger swap file, of a number of smaller swap files. This will do the trick. Please note the utilization using "uptime". If uptime indices are greATER than 4, you should consider adding more RAM.

Hope it helps.

Collapse -

swap prob

by umar381 In reply to swap prob

The question was auto-closed by TechRepublic

Collapse -

swap prob

by Rob Wolfe In reply to swap prob

I cannot imagine what kind of program (other than maybe Oracle) wants to chew up 500 MB of RAM but... I would suggest adding as much real ram as you can afford (hopefully enough to get you to 256 or more).
After getting that plugged in, I would create enough swap partitions (remember to keep them smallish - I dont use ones more than 64 megs) to ensure that you get up to enough space.
Last quick and dirty one, go buy a small fast hard drive and partition it up as swaps (as above)and just live with the speed reduction.

Collapse -

swap prob

by umar381 In reply to swap prob

The question was auto-closed by TechRepublic

Collapse -

swap prob

by umar381 In reply to swap prob

This question was auto closed due to inactivity

Back to Linux Forum
9 total posts (Page 1 of 1)  

Related Discussions

Related Forums