Martin Würtele wrote: > > why does my server user swap if top givex me: > > 10:36am up 19:06, 1 user, load average: 0.02, 0.04, 0.00 > 123 processes: 121 sleeping, 1 running, 1 zombie, 0 stopped > CPU states: 0.5% user, 0.9% system, 0.0% nice, 98.4% idle > Mem: 1029200K av, 534364K used, 494836K free, 0K shrd, 2772K buff > Swap: 257032K av, 255216K used, 1816K free 294632K cached > > telling that 494 mb ram are free? >
For permformance! When you need memory some data are written to swap. Until you don't need again these data, data are keep in swap, so that you have more memory. (It cost time to read such data, and probably will swap again) Note that every file you read is cached (actual cach size 294mb), so even if you program don't use much memory, kernel will use it (and cache data are more usually more important (for speed) than old data) giacomo