<<< Date Index >>>     <<< Thread Index >>>

Re: Freeze when receiving messages (maildir)



I move this to the mutt-dev list...

On 2004-09-13 17:47:36 +0200, Vincent Lefevre wrote:
> When I receive new messages in the current folder (maildir format),
> Mutt always freezes for several seconds. Folders aren't very big
> (several hundred of messages). And while downloading many messages
> with getmail, I can't use Mutt since it always freezes. Am I the
> only one having such a problem?

A "strace -tt -o strace.out mutt -f tst" gave:

[...]
00:22:08.761470 select(1, [0], NULL, NULL, {600, 0}) = 1 (in [0], left {587, 
512000})
00:22:21.247919 gettimeofday({1096755741, 248024}, NULL) = 0
00:22:21.248113 read(0, "\33", 1)       = 1
00:22:21.248278 gettimeofday({1096755741, 248330}, NULL) = 0
00:22:21.248398 select(1, [0], NULL, NULL, {10, 0}) = 1 (in [0], left {10, 0})
00:22:21.248681 gettimeofday({1096755741, 248732}, NULL) = 0
00:22:21.248831 read(0, "O", 1)         = 1
00:22:21.248971 gettimeofday({1096755741, 249022}, NULL) = 0
00:22:21.249086 select(1, [0], NULL, NULL, {10, 0}) = 1 (in [0], left {10, 0})
00:22:21.249365 gettimeofday({1096755741, 249416}, NULL) = 0
00:22:21.249479 read(0, "A", 1)         = 1
00:22:21.249623 rt_sigaction(SIGINT, {0x1005dea4, [], SA_RESTART}, NULL, 8) = 0
00:22:21.249835 write(1, "\33[?25h", 6) = 6
00:22:21.250407 stat("tst/new", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
00:22:21.250625 stat("tst/cur", {st_mode=S_IFDIR|0700, st_size=8192, ...}) = 0
00:22:21.250824 open("tst/cur", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
00:22:21.250963 fstat64(3, {st_mode=S_IFDIR|0700, st_size=8192, ...}) = 0
00:22:21.251154 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
00:22:21.251282 getdents64(3, /* 85 entries */, 4096) = 4064
00:22:21.254284 getdents64(3, /* 29 entries */, 4096) = 1392
00:22:21.255414 getdents64(3, /* 71 entries */, 4096) = 3488
00:22:21.258042 getdents64(3, /* 0 entries */, 4096) = 0
00:22:21.258176 close(3)                = 0
00:22:21.258842 brk(0)                  = 0x1028c000
00:22:21.258967 brk(0x102ad000)         = 0x102ad000
00:22:22.615959 brk(0)                  = 0x102ad000
00:22:22.616176 brk(0x102ce000)         = 0x102ce000
00:22:23.213006 open("tst/cur/1096755739.2973_6049.ay:2,FS", O_RDONLY) = 3

The freeze was between 00:22:21.25 and 00:22:23.21 (so, 2 seconds
here). The mailbox had 182 messages (183 after the message has been
added during the test), 1.0 megabyte.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA