[Mailman-Users] Excessive CPU usage [Looping read/close/mmap] (.db , .pck) (qfiles/out)

Richard Barrett r.barrett at openinfo.co.uk
Thu Jun 19 09:33:53 CEST 2003


At 07:36 19/06/2003, foobar wrote:
>Hi,
>
>Some strace:
>
>-- Opening that db --
>
>open("/opt/mailman-2.1.2/qfiles/out/1055856935.2792439+c164823523573087c71ed0088b9beb1dcc0c9698.db",
>O_RDONLY|O_LARGEFILE) = 9
>fstat64(9, {st_mode=S_IFREG|0660, st_size=2054, ...}) = 0
>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
>= 0x40227000
>read(9, "{s\4\0\0\0langs\2\0\0\0ens\10\0\0\0listnames\10"..., 4096) = 2054
>close(9)                                = 0
>munmap(0x40227000, 4096)                = 0
>unlink("/opt/mailman-2.1.2/qfiles/out/1055856935.2792439+c164823523573087c71ed0088b9beb1dcc0c9698.db")
>= 0
>open("/opt/mailman-2.1.2/qfiles/out/1055856935.2792439+c164823523573087c71ed0088b9beb1dcc0c9698.pck",
>O_RDONLY|O_LARGEFILE) = 9
>fstat64(9, {st_mode=S_IFREG|0660, st_size=7441, ...}) = 0
>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
>= 0x40227000
>read(9, "(cMailman.Message\nMessage\nq\1oq\2}"..., 4096) = 4096
>read(9, "tor\" CONTENT=3D\"MS Exchange Serv"..., 4096) = 3345
>unlink("/opt/mailman-2.1.2/qfiles/out/1055856935.2792439+c164823523573087c71ed0088b9beb1dcc0c9698.pck")
>= 0
>close(9)                                = 0
>munmap(0x40227000, 4096)                = 0
>
>--- Locale (Why do we need locale here?) ---
>
>stat64("/opt/mailman-2.1.2/messages/en_US.ISO8859-1/LC_MESSAGES/mailman.mo",
>0xbfffe9e0) = -1 ENOENT (No such file or directory)
>stat64("/opt/mailman-2.1.2/messages/en_US/LC_MESSAGES/mailman.mo",
>0xbfffe9e0) = -1 ENOENT (No such file or directory)
>stat64("/opt/mailman-2.1.2/messages/en.ISO8859-1/LC_MESSAGES/mailman.mo",
>0xbfffe9e0) = -1 ENOENT (No such file or directory)
>stat64("/opt/mailman-2.1.2/messages/en/LC_MESSAGES/mailman.mo",
>0xbfffe9e0) = -1 ENOENT (No such file or directory)
>gettimeofday({1056003211, 26430}, NULL) = 0
>gettimeofday({1056003211, 26915}, NULL) = 0
>umask(07)                               = 0
>open("/opt/mailman-2.1.2/qfiles/out/1055856935.2792439+1a902a0f2890e7389ed4a8dbe1ec989202db8b15.pck",
>O_WRONLY|O_CRET|O_TRUNC|O_LARGEFILE, 0666) = 9
>umask(0)                                = 07
>fstat64(9, {st_mode=S_IFREG|0660, st_size=0, ...}) = 0
>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
>= 0x40227000
>write(9, "(cMailman.Message\nMessage\nq\1oq\2}"..., 4096) = 4096
>write(9, "59-1\">\n<META NAME=3D\"Generator\" "..., 3345) = 3345
>close(9)                                = 0
>munmap(0x40227000, 4096)                = 0
>umask(07)                               = 0
>open("/opt/mailman-2.1.2/qfiles/out/1055856935.2792439+1a902a0f2890e7389ed4a8dbe1ec989202db8b15.db.tmp",
>O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 9
>umask(0)                                = 07
>fstat64(9, {st_mode=S_IFREG|0660, st_size=0, ...}) = 0
>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
>= 0x40227000
>write(9, "{s\4\0\0\0langs\2\0\0\0ens\10\0\0\0listnames\10"..., 2054) =
>2054
>close(9)                                = 0
>munmap(0x40227000, 4096)                = 0
>rename("/opt/mailman-2.1.2/qfiles/out/1055856935.2792439+1a902a0f2890e7389ed4a8dbe1ec989202db8b15.db.tmp",
>"/opt/mailman-2.1.2/qfiles/out/1055856935.2792439+1a902a0f2890e7389ed4a8dbe1ec989202db8b15.db")
>= 0
>
>open("/opt/mailman-2.1.2/qfiles/out",
>O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 9
>fstat64(9, {st_mode=S_IFDIR|S_ISGID|0770, st_size=4096, ...}) = 0
>fcntl64(9, F_SETFD, FD_CLOEXEC)         = 0
>getdents64(0x9, 0x83f27c8, 0x1000, 0x1) = 224
>getdents64(0x9, 0x83f27c8, 0x1000, 0x838e718) = 0
>close(9)                                = 0
>
>open("/opt/mailman-2.1.2/qfiles/out/1055856935.2792439+1a902a0f2890e7389ed4a8dbe1ec989202db8b15.db",
>O_RDONLY|O_LARGEFILE) = 9
>fstat64(9, {st_mode=S_IFREG|0660, st_size=2054, ...}) = 0
>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
>= 0x40227000
>read(9, "{s\4\0\0\0langs\2\0\0\0ens\10\0\0\0listnames\10"..., 4096) = 2054
>close(9)                                = 0
>munmap(0x40227000, 4096)                = 0
>unlink("/opt/mailman-2.1.2/qfiles/out/1055856935.2792439+1a902a0f2890e7389ed4a8dbe1ec989202db8b15.db")
>= 0
>open("/opt/mailman-2.1.2/qfiles/out/1055856935.2792439+1a902a0f2890e7389ed4a8dbe1ec989202db8b15.pck",
>O_RDONLY|O_LARGEFILE) = 9
>fstat64(9, {st_mode=S_IFREG|0660, st_size=7441, ...}) = 0
>mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
>= 0x40227000
>read(9, "(cMailman.Message\nMessage\nq\1oq\2}"..., 4096) = 4096
>
>Could you tell what is wrong, no messages are going currently out or in,
>MTA is working properly and bounces were handled correctly.
>
>   PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
>xxxxx mailman   25   0  6188 4848  2820 R    94,5  1,8  1192m python
>
>What _could_ cause this kind of looping?
>
>Mailman (see directory) version is 2.1.2
>
>Could it be error 450 (I reject every delivery to non-existent domain):
>
>XXX XX XX:XX:XX 2003 (XXYYZZ) delivery to ff at ff failed with
>code 450: <ff at ff>: Recipient address rejected: Domain not
>found

Surely 450 indicates a transient failure which effectively invites the 
sender to try again.

Maybe, if you return a 550 indicating permanent failure, Mailman will stop 
trying so hard.

>If yes, is there any workaround for this?
>
>Best regards,
>Veli Pirttila  |  ++Titus
>
>------------------------------------------------------
>Mailman-Users mailing list
>Mailman-Users at python.org
>http://mail.python.org/mailman/listinfo/mailman-users
>Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
>Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
>
>This message was sent to: r.barrett at openinfo.co.uk
>Unsubscribe or change your options at
>http://mail.python.org/mailman/options/mailman-users/r.barrett%40openinfo.co.uk

------------------------------------------------------------------------------
Richard Barrett                                      http://www.openinfo.co.uk





More information about the Mailman-Users mailing list