Re: How to reduce memory footpring?

2009-10-29 Thread Wietse Venema
Rene Bartsch: r...@www:~# pmap 23976 pmap is a command that originates from Solaris, but that is also available on Linux (except that the Linux version is very light on documentation). 23976: smtpd -n myip:smtp -t inet -u -o stress ... 7f2936d45000 36K r-x-- /lib/libcrypt-2.9.so

Re: How to reduce memory footpring?

2009-10-29 Thread Rene Bartsch
Zitat von Rene Bartsch m...@bartschnet.de: Rene Bartsch: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 7159 postfix 20 0 79960 24m 3332 S 0 12.4 0:00.14 smtpd 7897 postfix 20 0 79204 23m 2736 S 0 11.7 0:00.10 smtpd Please report what

Re: How to reduce memory footpring?

2009-10-29 Thread Victor Duchovni
On Thu, Oct 29, 2009 at 09:10:27AM +0100, lst_ho...@kwsoft.de wrote: [...] 7f293a37f000 4K r /lib/ld-2.9.so 7f293a38 4K rw--- /lib/ld-2.9.so 7f293a381000188K r-x-- /usr/lib/postfix/smtpd 7f293a5af000 12K r /usr/lib/postfix/smtpd

How to reduce memory footpring?

2009-10-29 Thread Stan Hoeppner
Rene Bartsch put forth on 10/29/2009 7:24 AM: It's a Linux-VServer with Ubuntu 9.04. The package is postfix_2.5.5-1.1_amd64.deb. Additionally the postfix-mysql package is installed for domains and aliases. It looks like something in your OS config is causing an additional ~2MB to be

Re: How to reduce memory footpring?

2009-10-29 Thread Seth Mattinen
Rene Bartsch wrote: On Thu, Oct 29, 2009 at 09:10:27AM +0100, lst_ho...@kwsoft.de wrote: It looks like a heap to me. Some library is allocating a lot of virtual memory. It could be via Postfix, or via an NSS module, perhaps db entries in nsswitch.conf, just to close out the Berkeley DB theme.

Re: How to reduce memory footpring?

2009-10-29 Thread Wietse Venema
Rene Bartsch: Is there any reason why such lists are not in shared memory? You can use the proxymap service for that. Is it normal that TLS bloats each smtpd-process by about 1 Mbyte? Hah. If it were only one. Wietse

Re: How to reduce memory footpring?

2009-10-29 Thread Victor Duchovni
On Thu, Oct 29, 2009 at 02:45:00PM +0100, Rene Bartsch wrote: Otherwise, run a test Postfix instance with a default configuration, and add one feature at a time, until the memory footprint jumps... The memory usage is caused by smtpd_recipient_restrictions = check_client_access

Re: How to reduce memory footpring?

2009-10-29 Thread Rene Bartsch
Rene Bartsch: Is there any reason why such lists are not in shared memory? You can use the proxymap service for that. How can I configure that? Setting proxy:cidr:/path/to/file throws Oct 30 00:33:19 www postfix/proxymap[26942]: warning: request for unapproved table:

Re: How to reduce memory footpring?

2009-10-29 Thread Wietse Venema
Rene Bartsch: [ Charset UTF-8 unsupported, converting... ] Rene Bartsch: Is there any reason why such lists are not in shared memory? You can use the proxymap service for that. How can I configure that? Setting proxy:cidr:/path/to/file throws Oct 30 00:33:19 www

How to reduce memory footpring?

2009-10-28 Thread Rene Bartsch
Hi, smtpd needs 24 MByte per client connection. Is there any way to reduce that? Thanx for any help, Renne

Re: How to reduce memory footpring?

2009-10-28 Thread Victor Duchovni
On Wed, Oct 28, 2009 at 08:28:35PM +0100, Rene Bartsch wrote: smtpd needs 24 MByte per client connection. You may not be measuring correctly, are you sure you are not counting shared executable pages or otherwise mapped read-only pages. Is there any way to reduce that? If you have 24MB of

Re: How to reduce memory footpring?

2009-10-28 Thread Victor Duchovni
On Wed, Oct 28, 2009 at 09:43:23PM +0100, Rene Bartsch wrote: On Wed, Oct 28, 2009 at 08:28:35PM +0100, Rene Bartsch wrote: smtpd needs 24 MByte per client connection. You may not be measuring correctly, are you sure you are not counting shared executable pages or otherwise mapped

Re: How to reduce memory footpring?

2009-10-28 Thread lst_hoe02
Zitat von Rene Bartsch m...@bartschnet.de: On Wed, Oct 28, 2009 at 08:28:35PM +0100, Rene Bartsch wrote: smtpd needs 24 MByte per client connection. You may not be measuring correctly, are you sure you are not counting shared executable pages or otherwise mapped read-only pages. Output of

Re: How to reduce memory footpring?

2009-10-28 Thread Wietse Venema
Rene Bartsch: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+COMMAND 7159 postfix 20 0 79960 24m 3332 S 0 12.4 0:00.14 smtpd 7897 postfix 20 0 79204 23m 2736 S 0 11.7 0:00.10 smtpd Please report what portions of the process memory map are

Re: How to reduce memory footpring?

2009-10-28 Thread Rene Bartsch
Rene Bartsch: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+COMMAND 7159 postfix 20 0 79960 24m 3332 S 0 12.4 0:00.14 smtpd 7897 postfix 20 0 79204 23m 2736 S 0 11.7 0:00.10 smtpd Please report what portions of the process memory map are