Meidokon Wiki
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Useful(?) links

  • furinkan's stuff

  • Postfix snippets


  • SystemInfo

  • This sidebar

Navigation

  • FrontPage
  • RecentChanges
  • FindPage
  • HelpContents

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

Revision 1 as of 2010-05-06 10:34:05
MeidokonWiki:
  • Postfix
  • Memory_footprint_with_large_maps

Postfix/Memory_footprint_with_large_maps

From http://archives.neohapsis.com/archives/postfix/2009-10/0931.html


It turns out the dude's smtpd processes were getting huge, like 25MiB.

The memory usage is caused by

smtpd_recipient_restrictions =
    check_client_access cidr:/etc/postfix/dnswl/postfix-dnswl-header,
    check_client_access cidr:/etc/postfix/dnswl/postfix-dnswl-permit,

This are whitelists downloaded from DNSWL every night. Each file is about 4 MBytes and bloats EACH
smtpd-process by 10 MBytes.

Aha.

From Victor:

CIDR tables are held in memory. As Wietse mentions, you can use proxymap
as a "shared-memory" cache for this.

You'll have to add smtpd_recipient_restrictions or check_client_access to the list of proxy_read_maps, I'm not sure which is correct.

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01
MoinMoin Release 1.9.11 [Revision release], Copyright by Juergen Hermann et al.