🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #230649

Re: [slrn][leafnode] slrn slow reconnection to leafnode server?

#230649
From: Troy Piggins
Date: Wed, 25 Feb 2009 23:21
92 lines
7024 bytes
* John E. Davis wrote :
> On Thu, 26 Feb 2009 06:48:15 +1000, Troy Piggins <usenet-0902@piggo.com>
> wrote:
>> I don't understand why there is an issue either, but there is a
>> noticeable difference.   I too have large /etc/hosts files and
>> most other apps are instantaneous.  Pinging the hostname is
>> instantaneous, so it's not a DNS thing.
>
> Try running strace on slrn and leafnode to see what system call is
> hanging, e.g., 
>
>    strace -p <pid>

Thanks for the suggestion, John.  Here's the output of strace
with leafnode hostname as news.piggo.com and it's IP is
192.168.0.1.  I got the delay trying to read NSR.  Can you make
sense of this, because I can't?  (Looks like there are some
ANSI/escape sequences in there.  Sorry about that.

#v+
Process 27054 attached - interrupt to quit
select(5, [4], NULL, NULL, {4, 860000}) = 1 (in [4], left {2, 432000})
read(4, "\r", 1)                        = 1
rt_sigprocmask(SIG_BLOCK, [], [], 8)    = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
write(1, "\33[49;2Helecting news.software.re"..., 93) = 93
write(3, "GROUP news.software.readers\r\n", 29) = 29
select(4, [3], NULL, NULL, {120, 0})    = 1 (in [3], left {120, 0})
read(3, "", 8192)                       = 0
close(3)                                = 0
write(1, "\33[49;3Hrver news.piggo.com dropp"..., 63) = 63
write(1, "\rConnecting to host news.piggo.c"..., 88) = 88
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigaction(SIGINT, {0x807c790, [], SA_INTERRUPT}, {0xb7fa5c40, [], SA_INTERRUPT}, 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=27054, groups=00000000}, [12]) = 0
time(NULL)                              = 1235603613
sendto(3, "\24\0\0\0\26\0\1\3\235\320\245I\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\235\320\245I\256i\0\0\2\10\200\376\1\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 168
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0\235\320\245I\256i\0\0\n\200\200\376\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\235\320\245I\256i\0\0\0\0\0\0\1\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
close(3)                                = 0
stat64("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=172, ...}) = 0
open("/etc/hosts", O_RDONLY|0x80000 /* O_??? */) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=391, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7cc2000
read(3, "#127.0.0.1\tlocalhost  news.piggo"..., 4096) = 391
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7cc2000, 4096)                = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(119), sin_addr=inet_addr("192.168.0.1")}, 16) = 0
rt_sigaction(SIGINT, {0xb7fa5c40, [], SA_INTERRUPT}, {0x807c790, [], SA_INTERRUPT}, 8) = 0
select(4, [3], NULL, NULL, {120, 0})    = 1 (in [3], left {114, 976000})
read(3, "200 Leafnode NNTP daemon, versio"..., 8192) = 85
write(3, "MODE READER\r\n", 13)         = 13
select(4, [3], NULL, NULL, {120, 0})    = 1 (in [3], left {119, 916000})
read(3, "200 Leafnode 2.0.0.alpha20081229"..., 8192) = 67
write(1, "\33[49;8Hed to host.  Posting ok. "..., 87) = 87
write(3, "GROUP rec.photo.digital\r\n", 25) = 25
select(4, [3], NULL, NULL, {120, 0})    = 1 (in [3], left {119, 988000})
read(3, "211 5261 244 6429 rec.photo.digi"..., 8192) = 52
write(3, "GROUP news.software.readers\r\n", 29) = 29
select(4, [3], NULL, NULL, {120, 0})    = 1 (in [3], left {119, 996000})
read(3, "211 1565 2 2089 news.software.re"..., 8192) = 54
brk(0x9653000)                          = 0x9653000
write(3, "XOVER 2089-2089\r\n", 17)     = 17
select(4, [3], NULL, NULL, {120, 0})    = 1 (in [3], left {119, 996000})
read(3, "224 Overview information for pos"..., 8192) = 50
select(4, [3], NULL, NULL, {120, 0})    = 1 (in [3], left {119, 960000})
read(3, "2089\tRe: [slrn][leafnode] slrn s"..., 8192) = 468
write(1, "\rnews.software.readers: headers "..., 46) = 46
write(1, "\rScoring articles ...           "..., 88) = 88
write(1, "\33[49;17H: 100%, Killed: 0, High:"..., 42) = 42
time(NULL)                              = 1235603619
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=413, ...}) = 0
write(1, "\rThreading by references ...    "..., 88) = 88
write(1, "\rLinking \"lost relatives\" ...", 29) = 29
write(1, "\33[49;9Harticles with identical s"..., 43) = 43
select(5, [4], NULL, NULL, {0, 0})      = 0 (Timeout)
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=413, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=413, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=413, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=413, ...}) = 0
write(1, "\33[2;2H\33[1m\33[33m\33[41m1! -  5000 2"..., 678) = 678
select(5, [4], NULL, NULL, {10, 0} <unfinished ...>
Process 27054 detached
#v-

-- 
Troy Piggins
Technical Details
Message-ID: <20090226091440@usenet.piggo.com>
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!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.motzarella.org!motzarella.org!news.motzarella.org!not-for-mail
References: <20090225122106@usenet.piggo.com> <9voe76x6i2.ln2@magick.net> <1mte76xhq2.ln2@magick.net> <slrngq9uom.mhs.houghi@pasta.houghi> <vqff76xhq2.ln2@magick.net> <slrngqacms.s58.houghi@pasta.houghi> <20090226063957@usenet.piggo.com> <slrngqbhas.tv8.jed@aluche.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <20090226091440@usenet.piggo.com>
Subject: Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
Date: Thu, 26 Feb 2009 09:21:42 +1000
From: Troy Piggins <usenet-0902@piggo.com>
References: <20090225122106@usenet.piggo.com> <9voe76x6i2.ln2@magick.net> <1mte76xhq2.ln2@magick.net> <slrngq9uom.mhs.houghi@pasta.houghi> <vqff76xhq2.ln2@magick.net> <slrngqacms.s58.houghi@pasta.houghi> <20090226063957@usenet.piggo.com> <slrngqbhas.tv8.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!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.motzarella.org!motzarella.org!news.motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: A noiseless patient Spider
Lines: 92
Reply-To: usenet-0902@piggo.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org
 U2FsdGVkX1/7RTWVcc5t/FLqiuu+CDaB+MAbQicEMxWuJsBTpLfqtU6H7bBMJHf50BSawXR3f/xtFcqRrXxSpffgxgD0GaSrr1ww4E0XzsjGRn12No80Kxsd1uw9MU4vMCADYhJ8HB3w7RclhZDMOw==
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Wed, 25 Feb 2009 23:20:49 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX1916VtejMnqtHHO2owrV6VKAvl5qYivKz+eAeI7SN7DzQ==
X-NNTP-Proxy: Leafnode-2
 (http://www-dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/)
Cancel-Lock: sha1:gb0U9fR6vOvV0WSrNSmbhVKpyiQ=
User-Agent: slrn/pre1.0.0-2/rt (Linux)