1 |
Grant wrote: |
2 |
> If I'm reading that right, I'm only *using* using 340MB. Why doesn't |
3 |
> the system get rid of some of the inactive stuff in memory so I don't |
4 |
> have to use more and more swap and slow down my system? |
5 |
|
6 |
that's what swap does. It moves inactive stuff onto disk so : |
7 |
|
8 |
* apps have more ram - thus faster |
9 |
* the OS can cache more data - thus faster |
10 |
|
11 |
I'll post some of my systems, so you can see their swap usage. The |
12 |
machines with the most IO utilize the most swap. The one that serves |
13 |
purely dynamic pages uses very little swap - and it's apache server has |
14 |
fewer dynamic modules compiled in so that will help on memory foot print |
15 |
usage. However, swap usage isn't a bad thing. In fact, it most cases |
16 |
it's a really, really good thing. |
17 |
|
18 |
[Terminal Server] gentoo running 2.6.x kernel. I'm doing an emerge, and |
19 |
I have 10 physically different people logged on the system doing work. |
20 |
Running on dual 1.6 Ghz opertons. High load average is mostly disk IO |
21 |
due to emerge. |
22 |
|
23 |
11:56:03 up 18 days, 12:04, 25 users, load average: 7.65, 7.23, 5.63 |
24 |
total used free shared buffers cached |
25 |
Mem: 2009 1591 417 0 57 341 |
26 |
-/+ buffers/cache: 1192 816 |
27 |
Swap: 4094 1218 2876 |
28 |
|
29 |
However, since I'm using the ck-sources, and most of the apps are |
30 |
interactive, no one even notices I'm doing anything funny. |
31 |
|
32 |
[Web Server] suse running 2.4.x kernel, a peak of about 15 hits per |
33 |
second, and peak traffic of 670kbps. does not act slow. Running on 1.2 |
34 |
Ghz P3. Also email virus scanner, SMTP and POP - I don't have peak usage |
35 |
on those services. |
36 |
|
37 |
11:52am up 274 days, 18:38, 1 user, load average: 0.00, 0.02, 0.02 |
38 |
total used free shared buffers cached |
39 |
Mem: 1005 929 75 0 183 319 |
40 |
-/+ buffers/cache: 426 578 |
41 |
Swap: 1027 698 328 |
42 |
|
43 |
[secure commerce server] redhat running 2.4.x kernel, a peak of about 12 |
44 |
hits per minute, and about 130 kbps. Also not slow, all pages dynamic. |
45 |
Running on 1.2 Ghz P3. Database on another system. |
46 |
|
47 |
12:17pm up 67 days, 3:08, 2 users, load average: 0.01, 0.06, 0.06 |
48 |
total used free shared buffers cached |
49 |
Mem: 439 414 24 0 159 117 |
50 |
-/+ buffers/cache: 137 301 |
51 |
Swap: 509 37 472 |
52 |
|
53 |
|
54 |
-- |
55 |
gentoo-user@g.o mailing list |