Gentoo Archives: gentoo-user

From: Simon Windsor <simon.windsor@×××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: More memory?
Date: Sun, 05 Dec 2004 00:28:43
Message-Id: 1102206474.4421.34.camel@gaul.cornfield.org.uk
1 Hi
2
3 SWAP is not necessarily a bad thing. It is mealy a simple way of moving
4 unused code from memory so that it can be better used, ie disk caching.
5
6 Swap can be bad if you have insufficient memory to run your processes.
7
8 If your system has lots of disk activity, the OS will assign memory to
9 cache the disk. This may where you memory is going.
10
11 You say that your system is using perl. What else? Apache? MySQL/PgSQL?
12 etc ...
13
14 Please more info ..
15
16 All the best
17
18 Simon
19
20 On Fri, 2004-12-03 at 20:45 -0600, Gabriel M. Beddingfield wrote:
21 > Grant wrote:
22 >
23 > >> If you don't want it to swap try 'man swapoff' and 'man fstab'
24 > >
25 > > It seems like swap is there for a reason so I don't want to disable
26 > > it. What I do want to be able to do is run my system in a manner that
27 > [snip]
28 >
29 > Just turn it off. You don't need it unless you run out of RAM. Swap is
30 > just for "virtual RAM." You don't *need* virtual RAM unless you run out of
31 > physical RAM.
32 >
33 > You may still need 2GB RAM in the future... but turning off swap won't hurt
34 > anything. Using 'swapoff' and 'swapon' will let you try-before-you-buy.
35 > Editing fstab (comment out the line with the swap partition) will make it
36 > so for every boot-up.
37 >
38 > What happens when you run out of RAM? The application doesn't start up. It
39 > doesn't crash the system. Once when attempting a Gentoo install on a 486 I
40 > ran out of memory when using tar. I didn't crash, it just didn't untar my
41 > file. I turned on swap, and everything worked just fine.
42 >
43 --
44 Simon Windsor
45
46 Eml: simon.windsor@×××××××××××××.uk
47 Tel: 01454 617689
48 Mob: 07960 321599
49
50
51 --
52 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Re: More memory? Grant <emailgrant@×××××.com>