Array-Size

staneker at gris.uni-tuebingen.de staneker at gris.uni-tuebingen.de
Tue Apr 4 06:22:14 PDT 2006


Hi,

:-/ I tried to transfer more than 8MB from the client to the
server, but I got immediately a timeout error. strace shows
the following output:

....
mmap2(NULL, 33558528, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40266000
mmap2(NULL, 33558528, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x42267000
mremap(0x42267000, 33558528, 67112960, MREMAP_MAYMOVE) = 0x42267000
writev(3, [{"l\1\0\1\f\0\0\2\2\0\0\0\222\0\0\0\1\1o\0\31\0\0\0/com/"..., 168}, {"{\0\0\0\0\0\0\2{\0\0\0\310\1\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
33554444}], 2) = 112896
poll([{fd=3, events=POLLOUT, revents=POLLOUT|POLLERR|POLLHUP}], 1, 0) = 1
close(3)                                = 0
gettimeofday({1144156335, 853448}, NULL) = 0
gettimeofday({1144156335, 853879}, NULL) = 0
write(2, "Error No reply within specified "..., 37Error No reply within specified time) = 37
munmap(0x40017000, 4096)                = 0
exit_group(1)                           = ?


If I use "only" 7MB all works fine and I get the following
strace output:

...
mmap2(NULL, 29364224, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40266000
mmap2(NULL, 29364224, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x41e67000
mremap(0x41e67000, 29364224, 58724352, MREMAP_MAYMOVE) = 0x41e67000
writev(3, [{"l\1\0\1\f\0\300\1\2\0\0\0\222\0\0\0\1\1o\0\31\0\0\0/co"..., 168}, {"{\0\0\0\0\0\300\1{\0\0\0\310\1\0
\0\0\0\0\0\0\0\0\0\0\0"..., 29360140}], 2) = 112896
poll([{fd=3, events=POLLOUT, revents=POLLOUT}], 1, 0) = 1
write(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 29247412) = 112896
poll([{fd=3, events=POLLIN|POLLOUT, revents=POLLOUT}], 1, -1) = 1
...
*snip* a lot of write/polls...
...
write(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 394420) = 112896
poll([{fd=3, events=POLLIN|POLLOUT, revents=POLLOUT}], 1, -1) = 1
write(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 281524) = 112896
poll([{fd=3, events=POLLIN|POLLOUT, revents=POLLOUT}], 1, -1) = 1
write(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 168628) = 96768
poll([{fd=3, events=POLLIN|POLLOUT, revents=POLLOUT}], 1, -1) = 1
write(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 71860) = 71860
gettimeofday({1144156427, 449005}, NULL) = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 25000) = 1
read(3, "l\2\1\1\0\0\0\0\t\0\0\0&\0\0\0\6\1s\0\5\0\0\0:1.48\0\0"..., 2048) = 56
read(3, 0x8079740, 2048)                = -1 EAGAIN (Resource temporarily unavailable)
munmap(0x41e67000, 58724352)            = 0
writev(3, [{"l\1\0\1 \0\0\0\3\0\0\0\177\0\0\0\1\1o\0\25\0\0\0/org/f"..., 144}, {"\33\0\0\0com.xyz.communication\0", 32}], 2) = 176
gettimeofday({1144156428, 417403}, NULL) = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 25000) = 1
read(3, "l\2\1\1\4\0\0\0\3\0\0\0=\0\0\0\6\1s\0\5\0\0\0:1.48\0\0"..., 2048) = 84
read(3, 0x8079740, 2048)                = -1 EAGAIN (Resource temporarily unavailable)
munmap(0x40017000, 4096)                = 0
exit_group(0)                           = ?


Regards, Dirk


More information about the dbus mailing list