[Dovecot] Design: Asynchronous I/O for single/multi-dbox

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Tue Mar 16 12:16:42 EET 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 16 Mar 2010, Stan Hoeppner wrote:

> You didn't read the paste Jakob.  Or maybe you don't comprehend the
> material?  Also, it seems you're unaware that Dovecot creates at minimum 1
> imap process per client connection.  In the case of Thunderbird, it creates
> 5 imap processes.  Each one is over 2MB in size, and all of those imap
> processes share close to 2MB of memory pages that are identical, because the
> code is identical.  If they're all identical, why have 500 copies in memory
> instead of one?

The "paste" talks about data.
You talk about code.

If I display a process map of an active imap process, I have:
mapped: 2656K    writeable/private: 460K    shared: 300K
Essentially you are talking about 460KB of KSM-able data.

IMHO, all modern Unix-alike system just "map" code pages read-only into 
the process and share them among all processes. No KSM required at all.

Regards,

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBS59ajr+Vh58GPL/cAQK8Ogf/SmUcpPHMsNBBcE3yoTD/1j2A6jMBU7/E
84hn6az0kc+aigz5OFGxPPXhussTyjxOu3FlyeLagB0kIcC03/awiKBmqIOGQBX6
SZokUay7zfoPiBcPJ4VVADBwfr4FGQPjyBgOS+X8ut5twrgJ8Wd66ipzdQLS4E6x
lp26HYx6brPisKWb2Po83T9UM8/hecnJCQmCPhGsrE6ig6KUjXOQv67P/AVBNg6N
WSRRwzhD3dut1SZCWxup7f6PXlCtPH25ZZUFprdw1QoYvkhM2D9PSnHutWD2srIe
bP0SfK0tGBeQkF9zg+V6hg+QRHFxM//d7mDOg1vJxBrrl/74I9QuIA==
=z7k/
-----END PGP SIGNATURE-----


More information about the dovecot mailing list