How to calculate the memory spent on a cyrus server with Linux 2.6?

Lucas Zinato Carraro lucaszc at gmail.com
Thu Apr 7 07:23:04 EDT 2011


 I see in

http://www.cyrusimap.org/docs/cyrus-imapd/2.4.7/install-perf.php

......   In general, there's no magic bullet for performance. It depends on
your hardware, your operating system, and how your users use the system. In
general, an imapd process takes up anywhere from 256 Kbytes to 512 Kbytes of
memory When it is first fired up. .......


But when I use the pmap command I see that the memory est private spending
more than 512Kbytes.


pmap -d 32407
32407:   imapd
Address           Kbytes Mode  Offset           Device    Mapping
0000000000400000    1452 r-x-- 0000000000000000 0fd:00000 imapd
000000000076b000     104 rw--- 000000000016b000 0fd:00000 imapd
0000000000785000      84 rw--- 0000000000785000 000:00000   [ anon ]
0000000003d36000     512 rw--- 0000000003d36000 000:00000   [ anon ]
000000373b400000     112 r-x-- 0000000000000000 0fd:00000 ld-2.5.so
000000373b61b000       4 r---- 000000000001b000 0fd:00000 ld-2.5.so
000000373b61c000       4 rw--- 000000000001c000 0fd:00000 ld-2.5.so
000000373b800000    1336 r-x-- 0000000000000000 0fd:00000 libc-2.5.so
000000373b94e000    2048 ----- 000000000014e000 0fd:00000 libc-2.5.so
000000373bb4e000      16 r---- 000000000014e000 0fd:00000 libc-2.5.so
000000373bb52000       4 rw--- 0000000000152000 0fd:00000 libc-2.5.so
000000373bb53000      20 rw--- 000000373bb53000 000:00000   [ anon ]
000000373bc00000       8 r-x-- 0000000000000000 0fd:00000 libdl-2.5.so
000000373bc02000    2048 ----- 0000000000002000 0fd:00000 libdl-2.5.so
000000373be02000       4 r---- 0000000000002000 0fd:00000 libdl-2.5.so
000000373be03000       4 rw--- 0000000000003000 0fd:00000 libdl-2.5.so
000000373c400000      88 r-x-- 0000000000000000 0fd:00000 libpthread-2.5.so
000000373c416000    2044 ----- 0000000000016000 0fd:00000 libpthread-2.5.so
000000373c615000       4 r---- 0000000000015000 0fd:00000 libpthread-2.5.so
000000373c616000       4 rw--- 0000000000016000 0fd:00000 libpthread-2.5.so
000000373c617000      16 rw--- 000000373c617000 000:00000   [ anon ]
000000373c800000      80 r-x-- 0000000000000000 0fd:00000 libz.so.1.2.3
000000373c814000    2044 ----- 0000000000014000 0fd:00000 libz.so.1.2.3
000000373ca13000       4 rw--- 0000000000013000 0fd:00000 libz.so.1.2.3
000000373d000000     964 r-x-- 0000000000000000 0fd:00000 libdb-4.3.so
000000373d0f1000    2048 ----- 00000000000f1000 0fd:00000 libdb-4.3.so
000000373d2f1000      20 rw--- 00000000000f1000 0fd:00000 libdb-4.3.so
000000373d400000      84 r-x-- 0000000000000000 0fd:00000 libselinux.so.1
000000373d415000    2048 ----- 0000000000015000 0fd:00000 libselinux.so.1
000000373d615000       8 rw--- 0000000000015000 0fd:00000 libselinux.so.1
000000373d617000       4 rw--- 000000373d617000 000:00000   [ anon ]
000000373d800000     236 r-x-- 0000000000000000 0fd:00000 libsepol.so.1
000000373d83b000    2048 ----- 000000000003b000 0fd:00000 libsepol.so.1
000000373da3b000       4 rw--- 000000000003b000 0fd:00000 libsepol.so.1
000000373da3c000      40 rw--- 000000373da3c000 000:00000   [ anon ]
000000373e000000      96 r-x-- 0000000000000000 0fd:00000 libsasl2.so.2.0.22
000000373e018000    2048 ----- 0000000000018000 0fd:00000 libsasl2.so.2.0.22
000000373e218000       4 rw--- 0000000000018000 0fd:00000 libsasl2.so.2.0.22
000000373e400000     224 r-x-- 0000000000000000 0fd:00000
libldap-2.3.so.0.2.31
000000373e438000    2048 ----- 0000000000038000 0fd:00000
libldap-2.3.so.0.2.31
000000373e638000       8 rw--- 0000000000038000 0fd:00000
libldap-2.3.so.0.2.31
000000373e800000      52 r-x-- 0000000000000000 0fd:00000
liblber-2.3.so.0.2.31
000000373e80d000    2048 ----- 000000000000d000 0fd:00000
liblber-2.3.so.0.2.31
000000373ea0d000       4 rw--- 000000000000d000 0fd:00000
liblber-2.3.so.0.2.31
0000003740000000      32 r-x-- 0000000000000000 0fd:00000 libwrap.so.0.7.6
0000003740008000    2044 ----- 0000000000008000 0fd:00000 libwrap.so.0.7.6
0000003740207000       8 rw--- 0000000000007000 0fd:00000 libwrap.so.0.7.6
0000003742000000    1204 r-x-- 0000000000000000 0fd:00000
libcrypto.so.0.9.8e
000000374212d000    2044 ----- 000000000012d000 0fd:00000
libcrypto.so.0.9.8e
000000374232c000     132 rw--- 000000000012c000 0fd:00000
libcrypto.so.0.9.8e
000000374234d000      16 rw--- 000000374234d000 000:00000   [ anon ]
0000003742800000      84 r-x-- 0000000000000000 0fd:00000 libnsl-2.5.so
0000003742815000    2044 ----- 0000000000015000 0fd:00000 libnsl-2.5.so
0000003742a14000       4 r---- 0000000000014000 0fd:00000 libnsl-2.5.so
0000003742a15000       4 rw--- 0000000000015000 0fd:00000 libnsl-2.5.so
0000003742a16000       8 rw--- 0000003742a16000 000:00000   [ anon ]
0000003743400000     280 r-x-- 0000000000000000 0fd:00000 libssl.so.0.9.8e
0000003743446000    2048 ----- 0000000000046000 0fd:00000 libssl.so.0.9.8e
0000003743646000      24 rw--- 0000000000046000 0fd:00000 libssl.so.0.9.8e
0000003745200000      36 r-x-- 0000000000000000 0fd:00000 libcrypt-2.5.so
0000003745209000    2044 ----- 0000000000009000 0fd:00000 libcrypt-2.5.so
0000003745408000       4 r---- 0000000000008000 0fd:00000 libcrypt-2.5.so
0000003745409000       4 rw--- 0000000000009000 0fd:00000 libcrypt-2.5.so
000000374540a000     184 rw--- 000000374540a000 000:00000   [ anon ]
0000003745600000      68 r-x-- 0000000000000000 0fd:00000 libresolv-2.5.so
0000003745611000    2048 ----- 0000000000011000 0fd:00000 libresolv-2.5.so
0000003745811000       4 r---- 0000000000011000 0fd:00000 libresolv-2.5.so
0000003745812000       4 rw--- 0000000000012000 0fd:00000 libresolv-2.5.so
0000003745813000       8 rw--- 0000003745813000 000:00000   [ anon ]
0000003746400000       8 r-x-- 0000000000000000 0fd:00000 libcom_err.so.2.1
0000003746402000    2044 ----- 0000000000002000 0fd:00000 libcom_err.so.2.1
0000003746601000       4 rw--- 0000000000001000 0fd:00000 libcom_err.so.2.1
0000003746800000     144 r-x-- 0000000000000000 0fd:00000 libk5crypto.so.3.1
0000003746824000    2044 ----- 0000000000024000 0fd:00000 libk5crypto.so.3.1
0000003746a23000       8 rw--- 0000000000023000 0fd:00000 libk5crypto.so.3.1
0000003746c00000     580 r-x-- 0000000000000000 0fd:00000 libkrb5.so.3.3
0000003746c91000    2048 ----- 0000000000091000 0fd:00000 libkrb5.so.3.3
0000003746e91000      16 rw--- 0000000000091000 0fd:00000 libkrb5.so.3.3
0000003747000000       8 r-x-- 0000000000000000 0fd:00000 libkeyutils-1.2.so
0000003747002000    2044 ----- 0000000000002000 0fd:00000 libkeyutils-1.2.so
0000003747201000       4 rw--- 0000000000001000 0fd:00000 libkeyutils-1.2.so
0000003747800000      32 r-x-- 0000000000000000 0fd:00000
libkrb5support.so.0.1
0000003747808000    2044 ----- 0000000000008000 0fd:00000
libkrb5support.so.0.1
0000003747a07000       4 rw--- 0000000000007000 0fd:00000
libkrb5support.so.0.1
0000003748000000     176 r-x-- 0000000000000000 0fd:00000
libgssapi_krb5.so.2.2
000000374802c000    2048 ----- 000000000002c000 0fd:00000
libgssapi_krb5.so.2.2
000000374822c000       8 rw--- 000000000002c000 0fd:00000
libgssapi_krb5.so.2.2
00002b9e2dd09000       8 rw--- 00002b9e2dd09000 000:00000   [ anon ]
00002b9e2dd0b000      24 rw-s- 0000000000000000 0fd:0001a __db.001
00002b9e2dd21000      32 rw--- 00002b9e2dd21000 000:00000   [ anon ]
00002b9e2dd29000     648 rw-s- 0000000000000000 0fd:0001a __db.002
00002b9e2ddcb000      96 rw-s- 0000000000000000 0fd:0001a __db.003
00002b9e2dde3000   32840 rw-s- 0000000000000000 0fd:0001a __db.004
00002b9e2fdf5000      32 rw-s- 0000000000000000 0fd:0001a __db.005
00002b9e2fdfd000      16 r-x-- 0000000000000000 0fd:00000 libplain.so.2.0.22
00002b9e2fe01000    2044 ----- 0000000000004000 0fd:00000 libplain.so.2.0.22
00002b9e30000000       4 rw--- 0000000000003000 0fd:00000 libplain.so.2.0.22
00002b9e30001000     860 r-x-- 0000000000000000 0fd:00000
libsasldb.so.2.0.22
00002b9e300d8000    2044 ----- 00000000000d7000 0fd:00000
libsasldb.so.2.0.22
00002b9e302d7000      16 rw--- 00000000000d6000 0fd:00000
libsasldb.so.2.0.22
00002b9e302db000      16 r-x-- 0000000000000000 0fd:00000 liblogin.so.2.0.22
00002b9e302df000    2044 ----- 0000000000004000 0fd:00000 liblogin.so.2.0.22
00002b9e304de000       4 rw--- 0000000000003000 0fd:00000 liblogin.so.2.0.22
00002b9e304df000      16 r-x-- 0000000000000000 0fd:00000
libanonymous.so.2.0.22
00002b9e304e3000    2044 ----- 0000000000004000 0fd:00000
libanonymous.so.2.0.22
00002b9e306e2000       4 rw--- 0000000000003000 0fd:00000
libanonymous.so.2.0.22
00002b9e306e3000      16 r-x-- 0000000000000000 0fd:00000
libcrammd5.so.2.0.22
00002b9e306e7000    2048 ----- 0000000000004000 0fd:00000
libcrammd5.so.2.0.22
00002b9e308e7000       4 rw--- 0000000000004000 0fd:00000
libcrammd5.so.2.0.22
00002b9e308e8000      16 r-x-- 0000000000000000 0fd:00000
libldapdb.so.2.0.22
00002b9e308ec000    2044 ----- 0000000000004000 0fd:00000
libldapdb.so.2.0.22
00002b9e30aeb000       4 rw--- 0000000000003000 0fd:00000
libldapdb.so.2.0.22
00002b9e30aec000      44 r-x-- 0000000000000000 0fd:00000
libdigestmd5.so.2.0.22
00002b9e30af7000    2048 ----- 000000000000b000 0fd:00000
libdigestmd5.so.2.0.22
00002b9e30cf7000       4 rw--- 000000000000b000 0fd:00000
libdigestmd5.so.2.0.22
00002b9e330b2000    6928 r--s- 0000000000000000 0fd:0001a annotations.db
00002b9e33776000       4 rw--- 00002b9e33776000 000:00000   [ anon ]
00002b9e3378c000      40 r-x-- 0000000000000000 0fd:00000
libnss_files-2.5.so
00002b9e33796000    2044 ----- 000000000000a000 0fd:00000
libnss_files-2.5.so
00002b9e33995000       4 r---- 0000000000009000 0fd:00000
libnss_files-2.5.so
00002b9e33996000       4 rw--- 000000000000a000 0fd:00000
libnss_files-2.5.so
00002b9e33997000     168 r--s- 0000000000000000 0fd:0001a cyrus.index
00002b9e339c1000   36648 r--s- 0000000000000000 0fd:0001a mailboxes.db
00002b9e35d8f000    3960 r--s- 0000000000000000 0fd:0001a cyrus.cache
00007fff98aaf000      84 rw--- 00007ffffffe9000 000:00000   [ stack ]
00007fff98bfc000      16 r-x-- 00007fff98bfc000 000:00000   [ anon ]
ffffffffff600000    8192 ----- 0000000000000000 000:00000   [ anon ]
mapped: 160836K    writeable/private: 1456K    shared: 81344K


I am interested in finding out when the server will start to swap


Regards
Zinato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20110407/eae9f6fc/attachment-0001.html 


More information about the Info-cyrus mailing list