Difference between revisions of "Memory"

From Alessandro's Wiki
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
* I hade to tune this setting on a high traffic Postgresql server:
* I hade to tune this setting on a high traffic Postgresql server:
  vm.overcommit_memory = 2
  vm.overcommit_memory = 2
*'' 0 (default): as before: guess about how much overcommitment is reasonable,
* 0 (default):'' as before: guess about how much overcommitment is reasonable,''
* 1: never refuse any malloc(),
* 1:'' never refuse any malloc(),''
* 2: be precise about the overcommit ''
* 2:'' be precise about the overcommit ''
 
== which kind of memory is installed? ==
 
lshw -short -C memory
<pre>
/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]
</pre>

Latest revision as of 14:40, 4 April 2014

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]