Tag Archive ‘memory’

 

CharlyBr on Mar 13th, 2009Memory usage by group of processes

While monitoring a http/php server, I needed to do some statistics about php-cgi memory usage.
Playing with memory_limit in PHP, we wanted to know the average memory usage per php-cgi process. This is easily calculated with our best friend awk.
First, get the number of php running processes:
# ps aux | grep php-cgi | grep -v grep [...]

CharlyBr on Aug 4th, 2008How to know the maximum RAM supported by your server?

The dmidecode command gives you all informations available about your memory.
With the special parameter “-t 16″, you can see the maximum (physical) memory that your server can have:
$ dmidecode -t 16
# dmidecode 2.8
SMBIOS 2.4 present.

Handle 0×1000, DMI type 16, 15 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: Multi-bit ECC
Maximum Capacity: 32 [...]