🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #37733

Re: diablo dqueue problem , extra

#37733
From: Brad Knowles
Date: Mon, 31 May 1999 00:00
154 lines
8708 bytes
In article <37527B8C.A723DE09@noc.online.be>, Jan <news@noc.online.be> wrote:

> this is the result of the strace :
> 
> select(61, [4 5 25 27 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
> 48 51 52 54], NULL, NULL, {5, 0}^@) = 1 (in [31], left {5, 0})
> gettimeofday({928159290, 336976}, NULL) = 0
> read(31, "SOUT\tD.00ec0b08/B.0926\t198130,"..., 8148) = 228
> write(6, "D.00ec0b08/B.0926 <dPu43.11119$9"..., 59) = 59
> write(7, "D.00ec0b08/B.0926 <dPu43.11119$9"..., 59) = 59
> write(21, "D.00ec0b08/B.0926 <dPu43.11119$9"..., 59) = 59
> write(8, "D.00ec0b08/B.0926 <dPu43.11119$9"..., 59) = 59
> write(9, "D.00ec0b08/B.0926 <dPu43.11119$9"..., 59) = 59
> write(10, "D.00ec0b08/B.0926 <dPu43.11119$9"..., 59) = 59
> write(11, "D.00ec0b08/B.0926 <dPu43.11119$9"..., 59) = 59
> write(12, "D.00ec0b08/B.0926 <dPu43.11119$9"..., 59) = 59
> write(13, "D.00ec0b08/B.0926 <dPu43.11119$9"..., 59) = 59
> write(14, "D.00ec0b08/B.0926 <dPu43.11119$9"..., 59) = 59
> write(15, "D.00ec0b08/B.0926 <dPu43.11119$9"..., 59) = 59
> write(17, "D.00ec0b08/B.0926 <dPu43.11119$9"..., 59) = 59
> write(20, "D.00ec0b08/B.0926 <dPu43.11119$9"..., 59) = 59
> read(31, 0x200006de028, 8148)           = -1 EAGAIN (Resource temporarily
> unavailable)
> wait4(-1, NULL, WNOHANG, NULL)          = 0

    I've been looking at our system, and it turns out that we have a
number of dnewslink processes that have been hanging around way too long
(31, to be exact).  It took some work, but I managed to get a copy of
strace running on that machine, and the output I got was not particularly
informative:

> read(6, "", 8180)                       = 0
> stat("/news/dqueue/site01", {st_mode=S_IFREG|0644, st_size=73520, ...}) = 0
> nanosleep(0xbfffec98, 0xbfffec98, 0x6, 0, 0x400cd000) = 0

    These three lines repeat ad infinitum.  Checking up on this file, I find:

> % ls -la /news/dqueue/site01
> -rw-r--r--   1 news     news        73520 Apr 27 15:59 /news/dqueue/site01

    For another hung dnewslink process, I got the following from strace:

> read(6, "", 8180)                       = 0
> stat("/news/dqueue/site02", {st_mode=S_IFREG|0644, st_size=74461, ...}) = 0
> nanosleep(0xbfffec88, 0xbfffec88, 0x6, 0, 0x400cd000) = 0

    Of course, these three lines also repeat ad infinitum.  Checking this
file, I find:

> % ls -la /news/dqueue/site02
> -rw-r--r--   1 news     news        74461 Apr 27 15:59 /news/dqueue/site02

    Sigh....  I've got a lot of mess I need to clean up....


    Finding another dnewslink process that was hung (in state SW, not S),
the output from strace was even more "entertaining":

> read(7, 0x80826c1, 4026)                = -1 ETIMEDOUT (Connection timed out)
> alarm(0)                                = 0
> brk(0)                                  = 0x808b000
> brk(0x808e000)                          = 0x808e000
> time([928162545])                       = 928162545
> open("/etc/localtime", O_RDONLY)        = 8
> fstat(8, {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
> mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
> 0x400cd000
> read(8, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 1067
> close(8)                                = 0
> munmap(0x400cd000, 4096)                = 0
> getpid()                                = 22237
> writev(2, [{"newslink[22237]: news.site01.com"..., 110}, {"\n", 1}], 2) = 111
> sigaction(SIGPIPE, {0x805fc80, [], 0}, {SIG_IGN}) = 0
> send(5, "<61>May 31 16:55:45 newslink[222"..., 131, 0) = 131
> sigaction(SIGPIPE, {SIG_IGN}, NULL)     = 0
> mmap(0, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
> 0x400cd000
> read(6, "D.00eb77ec/B.1f76 <3UK9hS$yCn@bb"..., 8180) = 8180
> time(NULL)                              = 928162545
> fstat(6, {st_mode=S_IFREG|0644, st_size=74018, ...}) = 0
> open("/news/dqueue/site01-small.S02258.tmp", O_WRONLY|O_CREAT|O_TRUNC,
> 0666) = 8
> fstat(8, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
> mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
> 0x400dd000
> write(8, "D.00eb77ec/B.7353 <7go21c$74$1@d"..., 4096) = 4096
> read(6, "5,1088\nD.00eb77ec/B.23e8 <cance"..., 4105) = 4105
> write(8, "c.jp> 311291,1097\nD.00eb77ec/B."..., 4096) = 4096
> read(6, "n5050.z2.ftn> 266926,1911\nD.00e"..., 4150) = 4150
> write(8, "098\nD.00eb77ec/B.23e8 <cancel.7"..., 4096) = 4096
> read(6, "$1@soapbox.cs.bham.ac.uk> 185270"..., 4119) = 4119
> write(8, ".n5050.z2.ftn> 326679,1857\nD.00"..., 4096) = 4096
> write(8, "ox.cs.bham.ac.uk> 185270,662\nD."..., 4096) = 4096
> read(6, ".203e <cancel.dPUX2.1710$G3.619@"..., 4098) = 4098
> write(8, "80\nD.00eb77ec/B.203e <cancel.dP"..., 4096) = 4096
> read(6, "77ec/B.3099 <925654035@p165.f441"..., 4158) = 4158
> write(8, "06000,3367\nD.00eb77ec/B.3099 <9"..., 4096) = 4096
> read(6, "84\nD.00eb77ec/B.2726 <925468997"..., 4151) = 4151
> write(8, "35.z2.ftn> 97131,1883\nD.00eb77e"..., 4096) = 4096
> read(6, ",2007\nD.00eb77ec/B.1b4e <Pine.G"..., 4092) = 4092
> write(8, ",1989\nD.00eb77ec/B.252e <7gp6cs"..., 4096) = 4096
> read(6, "/B.1657 <cancel.7gp574$a0o$42@ne"..., 4094) = 4094
> write(8, "c/B.7bd3 <_1VX2.51$cV4.17@news1."..., 4096) = 4096
> read(6, "n$a0o$241@news.gate.net> 421544,"..., 4142) = 4142
> write(8, "88@news.gate.net> 419367,1076\nD"..., 4096) = 4096
> read(6, "<cancel.7gp5bn$a0o$590@news.gate"..., 4143) = 4143
> write(8, ".gate.net> 96721,1011\nD.00eb77e"..., 4096) = 4096
> read(6, "46@news.gate.net> 169797,1139\nD"..., 4087) = 4087
> write(8, "ancel.7gp5e1$a0o$862@news.gate.n"..., 4096) = 4096
> read(6, "411\nD.00eb77ec/B.17fb <1drbz55."..., 4123) = 4123
> write(8, "ol.com> 431913,780\nD.00eb77ec/B"..., 4096) = 4096
> read(6, "hu.edu.tw> 174117,936\nD.00eb77e"..., 4139) = 4139
> write(8, ".edu.tw> 478835,1144\nD.00eb77ec"..., 4096) = 4096
> read(6, "9 <19990505062835.11833.00001021"..., 4124) = 4124
> write(8, "9\nD.00eb77ec/B.1657 <3UK9Vl$k9A"..., 4096) = 4096
> read(6, "ds.ac.uk> 505449,1206\nD.00eb77e"..., 4115) = 4115
> write(8, "77ec/B.17fb <ou3e1b3oor.fsf@akab"..., 4096) = 4096
> read(6, "6a5 <7gp62a$5kh$1@nnrp1.dejanews"..., 4087) = 3998
> write(8, "fb <7gp6in$134$3@lure.pipex.net>"..., 4096) = 4096
> read(6, "", 8180)                       = 0
> write(8, "17fb <VA.000003db.1933f627@yareb"..., 231) = 231
> close(8)                                = 0
> munmap(0x400dd000, 4096)                = 0
> fstat(6, {st_mode=S_IFREG|0644, st_size=74018, ...}) = 0
> rmdir("/news/dqueue/site01-small.S02258.tmp") = -1 ENOTDIR (Not a directory)
> unlink("/news/dqueue/site01-small.S02258.tmp") = 0
> time(NULL)                              = 928162545
> time([928162545])                       = 928162545
> getpid()                                = 22237
> writev(2, [{"newslink[22237]: news.site01.com"..., 162}, {"\n", 1}], 2) = 163
> sigaction(SIGPIPE, {0x805fc80, [], 0}, {SIG_IGN}) = 0
> send(5, "<61>May 31 16:55:45 newslink[222"..., 183, 0) = 183
> sigaction(SIGPIPE, {SIG_IGN}, NULL)     = 0
> time(NULL)                              = 928162545
> write(7, "quit\r\n", 6)                 = -1 EPIPE (Broken pipe)
> --- SIGPIPE (Broken pipe) ---
> alarm(600)                              = 0
> read(7, "", 4026)                       = 0
> alarm(0)                                = 600
> close(7)                                = 0
> close(6)                                = 0
> _exit(0)                                = ?


    Anybody else seen anything interesting with hung dnewslink processes?

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Are you looking for a news feed from a site in the Freenix Top 130?
If so, contact me via private e-mail for details.

Technical Details
Message-ID: <brad-3105991704160001@brad.techos.skynet.be>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <3751AC0E.448FFDC6@online.be> <brad-3105990117090001@dialup583.brussels2.skynet.be> <37527B8C.A723DE09@noc.online.be>

Show Full Headers
Complete Article Headers
Message-ID: <brad-3105991704160001@brad.techos.skynet.be>
Subject: Re: diablo dqueue problem , extra
Date: Mon, 31 May 1999 00:00:00 +0000
From: brad@shub-internet.org (Brad Knowles)
References: <3751AC0E.448FFDC6@online.be> <brad-3105990117090001@dialup583.brussels2.skynet.be> <37527B8C.A723DE09@noc.online.be>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 484094633
X-Complaints-To: abuse@skynet.be
X-Trace: news0.skynet.be 928163055 31962 195.238.1.121 (31 May 1999 15:04:15 GMT)
Organization: Shub-Internet
X-URL: http://www.shub-internet.org/
NNTP-Posting-Date: 31 May 1999 15:04:15 GMT
Newsgroups: news.software.nntp