Memory

From Alessandro's Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

top10 processes using moemory

ps auxh | sort -r --key=4 | head -5

Overcommit

  • I hade to tune this setting on a high traffic Postgresql server:
vm.overcommit_memory = 2
  • 0 (default): as before: guess about how much overcommitment is reasonable,
  • 1: never refuse any malloc(),
  • 2: be precise about the overcommit

which kind of memory is installed?

lshw -short -C memory
/0/1c/0                              memory     512MiB DIMM DDR2 Synchronous 667 MHz (1.5 ns)
/0/1c/1                              memory     512MiB DIMM DDR2 Synchronous 667 MHz (1.5 ns)
/0/1c/2                              memory     512MiB DIMM DDR2 Synchronous 667 MHz (1.5 ns)
/0/1c/3                              memory     512MiB DIMM DDR2 Synchronous 667 MHz (1.5 ns)
/0/1c/4                              memory     512MiB DIMM DDR2 Synchronous 667 MHz (1.5 ns)
/0/1c/5                              memory     DIMM DDR2 Synchronous 667 MHz (1.5 ns) [empty]
/0/1c/6                              memory     512MiB DIMM DDR2 Synchronous 667 MHz (1.5 ns)
/0/1c/7                              memory     DIMM DDR2 Synchronous 667 MHz (1.5 ns) [empty]