Article View: news.software.readers
Article #247767Re: [SLRN] pre1.0.0-26 Slow with albasani
From: John E. Davis
Date: Thu, 15 Dec 2011 03:49
Date: Thu, 15 Dec 2011 03:49
100 lines
6392 bytes
6392 bytes
On Wed, 14 Dec 2011 16:29:49 +0100, Dario Niedermann <dnied@tiscali.it>
wrote:
> Yes, that's what I usually do, actually. But the thing is, those servers
> aren't slow to respond when queried via telnet. So I wonder if slrn is
> sometimes missing or ignoring the servers' replies.
I don't think so. I believe that the issue lies elsewhere. To test
this, I used the readonly option for the server at albasani (see #14
at <http://www.albasani.net/wiki/FAQ_%28English%29>). I attached to
the slrn process using `strace -p <pid>` and waited for an hour before
pressing 'g' to refresh the group list. Here is the resulting strace
output with my #comments:
#v+
[...]
# User input loop
select(5, [4], NULL, NULL, {10, 0}) = 0 (Timeout)
# 'g' pressed after an hour of no activity
select(5, [4], NULL, NULL, {10, 0}) = 1 (in [4], left {8, 802155})
read(4, "g", 1) = 1
# Write a message to the slrn status line
rt_sigprocmask(SIG_BLOCK, [], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
write(1, "\33[36;1H\33[39m\33[49mChecking news ."..., 37) = 37
# open the .time file to get approprite time to use
open("/home/john/.jnewsrc-albasani.time", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0600, st_size=27, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd1d6a4a000
read(5, "NEWGROUPS 111215 022427 GMT", 8192) = 27
read(5, "", 8192) = 0
close(5) = 0
munmap(0x7fd1d6a4a000, 8192) = 0
# Write to the status line and the send the NEWGROUPS command to the
# server.
write(1, "\33[36;10Hfor new groups ...", 26) = 26
write(3, "NEWGROUPS 111215 022427 GMT\r\n", 29) = 29
select(4, [3], NULL, NULL, {120, 0}) = 1 (in [3], left {119, 999996})
# Read the server response, got nothing
read(3, "", 8192) = 0
close(3) = 0
# Tell user server dropped the connection, and then reconnect
write(1, "\rServer news.albasani.net droppe"..., 62) = 62
write(1, "\rConnecting to host news.albasan"..., 44) = 44
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigaction(SIGINT, {0x4374b2, [], SA_RESTORER|SA_INTERRUPT, 0x7fd1d61751e0}, {0x7fd1d64f5550, [], SA_RESTORER|SA_INTERRUPT, 0x7fd1d61751e0}, 8) = 0
socket(PF_NETLINK, SOCK_RAW, 0) = 3
bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(3, {sa_family=AF_NETLINK, pid=8990, groups=00000000}, [12]) = 0
sendto(3, "\24\0\0\0\26\0\1\3=g\351N\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0=g\351N\36#\0\0\2\10\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 108
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0=g\351N\36#\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 128
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0=g\351N\36#\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
close(3) = 0
# Omitted libc stuff
[...]
connect(3, {sa_family=AF_INET, sin_port=htons(119), sin_addr=inet_addr("178.63.61.145")}, 16) = 0
rt_sigaction(SIGINT, {0x7fd1d64f5550, [], SA_RESTORER|SA_INTERRUPT, 0x7fd1d61751e0}, {0x4374b2, [], SA_RESTORER|SA_INTERRUPT, 0x7fd1d61751e0}, 8) = 0
select(4, [3], NULL, NULL, {120, 0}) = 1 (in [3], left {119, 881636})
read(3, "200 news.albasani.net InterNetNe"..., 8192) = 99
write(3, "MODE READER\r\n", 13) = 13
select(4, [3], NULL, NULL, {120, 0}) = 1 (in [3], left {119, 884845})
read(3, "200 news.albasani.net InterNetNe"..., 8192) = 99
# Authenticate
write(1, "\rAuthenticating readonly ...\33[K", 31) = 31
write(3, "AUTHINFO USER readonly\r\n", 24) = 24
select(4, [3], NULL, NULL, {120, 0}) = 1 (in [3], left {119, 885012})
read(3, "381 Enter password\r\n", 8192) = 20
write(3, "AUTHINFO PASS readonly\r\n", 24) = 24
select(4, [3], NULL, NULL, {120, 0}) = 1 (in [3], left {119, 726585})
read(3, "281 Authentication succeeded\r\n", 8192) = 30
write(1, "\rConnected to host. Posting ok.", 32) = 32
write(3, "GROUP news.software.readers\r\n", 29) = 29
select(4, [3], NULL, NULL, {120, 0}) = 1 (in [3], left {119, 884909})
read(3, "211 8409 225215 257323 news.soft"..., 8192) = 46
# Reissue NEWGROUPS command
write(3, "NEWGROUPS 111215 022427 GMT\r\n", 29) = 29
select(4, [3], NULL, NULL, {120, 0}) = 1 (in [3], left {119, 884928})
read(3, "231 New newsgroups follow\r\n.\r\n", 8192) = 30
[...]
# User input loop
select(5, [4], NULL, NULL, {10, 0}) = 0 (Timeout)
[...]
#v-
I see nothing wrong--- everything worked as it should have. If you
see something different, please let me know.
Thanks,
--John
Technical Details
Message-ID:
<slrnjeiril.b7b.jed@aluche.mit.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mailReferences:
<slrnjd24io.dt6.dnied@dnied-at-tiscali.it> <slrnjeh7cq.r00.dnied@dnied-at-tiscali.it> <slrnjehe2q.klj.jed@aluche.mit.edu> <slrnjehgb6.lv.dnied@dnied-at-tiscali.it>Show Full Headers
Complete Article Headers
Message-ID: <slrnjeiril.b7b.jed@aluche.mit.edu> Subject: Re: [SLRN] pre1.0.0-26 Slow with albasani Date: Thu, 15 Dec 2011 03:49:41 +0000 From: "John E. Davis" <jed@jedsoft.org> References: <slrnjd24io.dt6.dnied@dnied-at-tiscali.it> <slrnjeh7cq.r00.dnied@dnied-at-tiscali.it> <slrnjehe2q.klj.jed@aluche.mit.edu> <slrnjehgb6.lv.dnied@dnied-at-tiscali.it> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Newsgroups: news.software.readers Organization: A noiseless patient Spider Lines: 100 Reply-To: davis@space.mit.edu Injection-Date: Thu, 15 Dec 2011 03:49:41 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="gZbVmHBbU4x8lTThtkSvpw"; logging-data="609"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Hin2gQtyOxFuFpJgysW8i" User-Agent: slrn/pre1.0.0-28 (Linux) Cancel-Lock: sha1:8vGgFozj8wp0FDMawGF3NABQmYU= X-Original-Bytes: 6089