On Thu, 29 Jan 2009, Ralf wrote:

> Here's an IMO interessting observation/experience I made
> when I installed xmail the first time on my Debian 4 (Etch) and 5 (Lenny)
> boxes:
> 
> When I install it from the Debian repository (via apt-get or via aptitude
> etc.)
> then xmail eats up more than 200 MB RAM !!!.
> I couldn't believe it and have immediately deinstalled it! :-)
> 
> But then I took a quick look into the source code and I couldn't
> believe that this clean C++ source really eats up that much memory
> (FYI I'm myself C++ programmer).
> 
> Just for fun I compiled it myself and installed it and started it.
> What a surprize! xmail eats up only about 6 MB memory! Not 200 MB !
> So, the xmail package maintainer at Debian must have done
> something badly wrong!
> 
> Maybe you should inform the xmail package mainter at Debian.
> I've unfortunately no time at the moment because of switching
> my mail servers from qmail to xmail.

Such memory is very likely the per-thread VM stack memory reservation. I 
dunno how it was built, but likely the Debian build uses some linking to 
libraries the in GLIBC trigger the extra NPTL stack reservation.
Setting something like `ulimit -s 128` in the XMail startup scripts should 
fix the issue even for the Debian build).



- Davide


_______________________________________________
xmail mailing list
[email protected]
http://xmailserver.org/mailman/listinfo/xmail

Reply via email to