Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Why Linux uses swap instead of RAM?

SergeyBFeb 6 2008 — edited Feb 15 2008
Hello, all.

I have:
- Enterprise Linux on a server with 2Gb RAM
- 2Gb swap
- 2 Oracle databases (1000M and 400M SGA)
- very poor performance

The following shows that Linux prefers using swap instead of RAM.

[root@sigma etc]# free
total used free shared buffers cached
Mem: 2074920 1913728 161192 0 380 1233520
-/+ buffers/cache: 679828 1395092
Swap: 2097112 1307636 789476

[root@sigma etc]# sar -B 1 100
Linux 2.6.9-55.0.0.0.2.ELsmp (sigma.inline.ru) 02/06/2008

06:00:34 PM pgpgin/s pgpgout/s fault/s majflt/s
06:00:35 PM 5665.31 2689.80 3634.69 215.31
06:00:36 PM 5955.56 1464.65 4089.90 281.82
06:00:37 PM 6329.90 2042.27 8905.15 285.57
06:00:38 PM 9636.36 353.54 6952.53 294.95
06:00:39 PM 5787.76 168.37 5302.04 208.16
06:00:40 PM 6987.76 118.37 3485.71 262.24
06:00:41 PM 6238.38 210.10 5519.19 335.35
06:00:42 PM 34224.49 824.49 6241.84 260.20

Value of "buffers" has never exceeded 1G.

Could somebody suggest me how to improve the situation?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 14 2008
Added on Feb 6 2008
7 comments
3,002 views