size of swap part'n?

size of swap part'n?

Post by Yggdrasil Sysadm » Sun, 13 Aug 1995 04:00:00



I'm planning to put Linux on my P90 with 16 megs RAM, and I'm wondering
what a good swap partition size is. I'll have a 730 meg drive for Linux
to play around with, and I hope to be able to run Netscape and other
X/Windows resource hogs concurrently without bogging down the system too
much. Does anyone have any recommendations for the partition size? I'd
like to get this right the first time, as repartitioning without a tape
backup is a bit of a pain :)

Thanks!

(btw, the Yggdrasil in my finger info is not linux-related: perhaps I'll
have to change that now that I lurk here :)

 
 
 

size of swap part'n?

Post by Mark Cooperste » Sun, 13 Aug 1995 04:00:00



>I'm planning to put Linux on my P90 with 16 megs RAM, and I'm wondering
>what a good swap partition size is. I'll have a 730 meg drive for Linux
>to play around with, and I hope to be able to run Netscape and other
>X/Windows resource hogs concurrently without bogging down the system too
>much. Does anyone have any recommendations for the partition size? I'd
>like to get this right the first time, as repartitioning without a tape
>backup is a bit of a pain :)

I think the 'general' rule of thumb is: twice the amount of ram, or in
otherwords since you have 16 meg, a 32 meg swap partition.  Then again, this may
be way too much, or way too little.  It all depends on what and how you use your
system.  Btw, from what I've read in other threads regarding Linux's memory
management as it pertains to swapping, you *dont* want to rely  on its virtual
memory/page swapping mechanisms.  If you find your system is swapping too much,
get more memory!!

:

:                                                              
:       The answer to life, the universe and everything, is...  
:                              42!!                                  
:

 
 
 

size of swap part'n?

Post by John S. Atchiso » Sun, 13 Aug 1995 04:00:00


Actually, you only need as much swap as you have ram.  I run 8 and 12
just because that is what worked out for my partitions.

--

________________       _____
_/_/_/_/_/_/_/_/      /_/_\_\        John 'Wild Thing' Atchison
      _/             /_/   \_\      
     _/             /_/_____\_\      "To die would be a great adventure!"
\_  _/             /_/       \_\
 \__/       o     /_/         \_\  o -Peter Pan

 
 
 

size of swap part'n?

Post by bill davids » Tue, 15 Aug 1995 04:00:00



| I'm planning to put Linux on my P90 with 16 megs RAM, and I'm wondering
| what a good swap partition size is. I'll have a 730 meg drive for Linux
| to play around with, and I hope to be able to run Netscape and other
| X/Windows resource hogs concurrently without bogging down the system too
| much. Does anyone have any recommendations for the partition size? I'd
| like to get this right the first time, as repartitioning without a tape
| backup is a bit of a pain :)

There are three rules of thumb you may hear. The first is to have at
least as much swap as RAM, the 2nd is swap = largest prog + 10M -
RAM, and the third is not more than swap = 2x RAM.

If you want to have large programs you need lots of virtual memory,
but if you get the working set large (say 2x RAM) it will be very
slow. The one about at least as large as RAM comes from systems
which take core dumps to swap when they crash. Linux doesn't crash,
and doesn't dump if it did.

I have been running Linux for almost two years on a 16MB system with
no swap at all. I can compile the kernel and read news, and send
mail. I have never had a problem. I have Linux on a ThinkPad and did
a demo for the Upstate NY UNIX User's Group on HTML. I had X,
netscape, and the NCSA httpd all running in 12MB of RAM, and free
said no swap in use (I had 40M swap if I needed it). The bottom line
is that you can do useful stuff in small memory.

If you will be doing major stuff on this box, make the swap large.
Aim for 48M or so of RAM+swap. If you are tight on disk or have 32M
RAM you can go smaller. If this will just be a toy personal system,
24M is probably enough (see above for BIG stuff, though).

Just remember that your kernel must be below cyl 1024, think about
your disk layout. A 5M /boot partition low is not a bad idea on a
big disk.

Final word, disk is dirt cheap. I just got 850M Caviar for ~$185.
You can probably return enough deposit bottles for an upgrade if you
need it.

 
 
 

1. Moving space from SWAP part' to /?

Hello,
I have a machine with the following partitions:
PRIMARY=DOS (for windows)
PRIMARY=LinuxNative
EXT(Logical)=LinuxSwap

Right now my Swap partition is 250MB, but I have yet to see more than
5% of it used. So, I'd like to move some of that wasted space, say,
150MB over to the main Linux Partition.

I have Partition Magic 6, and a trial run w/o activating changes seems
to work. At least it's showing I can shorten the SWAP and then
lengthen the Linux to take up the slack.

Before I do it for real, I wanted to get any opinions on if this is
workable or a bad idea.

Thanks!
Liam

2. awk question

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

4. Where from I get the popclient software

5. swap space descrepancy between top and 'swap'

6. Secure Xwindows session?

7. Paging space size (NOT swap space size)

8. ipfwadm and ifconfig ethX allmulti (promiscuous )

9. What if swap size < RAM size on 5.0.4

10. Swapping 'Ctrl' and 'Compose Character'

11. Getting 'pstat -s' and 'swap -s' info programatically

12. Determining process swap space/mem utilization with 'ps' and 'pstat' listings

13. 'df' and 'du' show wrong sizes