Bokhan Artem wrote:
> Performance of lmtpd rocks now).

Great :-) I'm not satisfied yet,  but we're getting there.

> This part of strace looks odd too, I'm talking about increasing reads.
> This is a receiving of one 10k message.

Ok, Looks like gmime's parser kicking in. The way we're using gmime's
parser at the moment needs improvement. We're using a tempfile to store
and re-read the message. The reason for using a file-stream is being
able to handle large messages. A memory bases solution would probably be
better for smaller messages.

> 
> read(17, "From: <[email protected]>\r\nTo: <test@"..., 4096) = 4096
> read(17, "XXXXXXXXXXXXXXXXXXXXXXXXXXX\r\n1XX"..., 4096) = 4096
> read(17, "XXXXXXXXXXX\r\n2XXXXXXXXXXXXXXXXXX"..., 4096) = 1938
> read(17, 0xbff098ac, 4096)              = -1 EAGAIN (Resource
> temporarily unavailable)
> time(NULL)                              = 1235504123
> stat64("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=2504, ...}) = 0
> open("/tmp/tmpfmOyh95", O_RDWR|O_CREAT|O_EXCL, 0600) = 18
> unlink("/tmp/tmpfmOyh95")               = 0
> fcntl64(18, F_GETFL)                    = 0x2 (flags O_RDWR)
> fstat64(18, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
> mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xb76ef000
> _llseek(18, 0, [0], SEEK_CUR)           = 0
> _llseek(18, 0, [0], SEEK_SET)           = 0
> write(18, "From: <[email protected]>\n", 21) = 21
> _llseek(18, 0, [0], SEEK_SET)           = 0
> read(18, "From: <[email protected]>\n", 21)  = 21
> write(18, "To: <[email protected]>\n", 20)  = 20
> _llseek(18, 0, [0], SEEK_SET)           = 0
> read(18, "From: <[email protected]>\nTo: <t...@t"..., 41) = 41
> write(18, "Date: Wed, 25 Feb 2009 01:35:23 "..., 45) = 45
> _llseek(18, 0, [0], SEEK_SET)           = 0
> read(18, "From: <[email protected]>\nTo: <t...@t"..., 86) = 86
> write(18, "Message-Id: <1163.0004.0...@art>"..., 33) = 33
> _llseek(18, 0, [0], SEEK_SET)           = 0
> read(18, "From: <[email protected]>\nTo: <t...@t"..., 119) = 119
> write(18, "\n", 1)                      = 1
> _llseek(18, 0, [0], SEEK_SET)           = 0
> read(18, "From: <[email protected]>\nTo: <t...@t"..., 120) = 120
> write(18, "1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"..., 79) = 79
> _llseek(18, 0, [0], SEEK_SET)           = 0
> read(18, "From: <[email protected]>\nTo: <t...@t"..., 199) = 199
> write(18, "2XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"..., 79) = 79


-- 
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to