Home | Comics | wishlist | Impressum | Datenschutzerklärung |

How much memory do my smtpd processes actually use?

You cannot use the "top" output -- the RSS value measures how of that virtual address space is in RAM being actively used and is not paged out or a candidate for being paged out.
These pages may still be shared. The typical per-process marginal cost for smtpd(8) is barely over 8kB when not using Berkeley DB tables.
Just add the data segment (initialized portion may be copy-on-write), heap and stack sizes.
In my case I am using BerkeleyDB, so pmap pid_of_an_smtpd_process shows:
08048000    308K r-x--  /usr/libexec/postfix/smtpd
08095000     12K rw---  /usr/libexec/postfix/smtpd
bf989000     88K rw---    [ stack ]

© by Ralf Hildebrandt
This document contains links to external information sources that I do neither monitor nor control. I explicitly disclaim any liabilities in respect to external references.
You are getting this document without any guarantees. Any methods shown above are meant as demonstration and may be wrong in some place. You may damage your system if you try to follow my hints and instructions. You do this at your own risk!

This file was last modified 30. Aug 2007 by root