🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
29 messages
29 total messages Started by Jan Sun, 30 May 1999 00:00
diablo dqueue problem , extra
#37716
Author: Jan
Date: Sun, 30 May 1999 00:00
86 lines
2518 bytes
hello,

i followed the tips i've recieved to my dqueue problem with diablo ( see
below  )

i've changed all my feeds to realtime with a max connection out of 1.
now the error occurs even more frequent :(

Now the complete weird part, when i do an ' ls -ls ' on my dqueue
directory i get things like :

ls -ls

ls: peer1 : No such file or directory
ls: peer2 : No such file or directory

total 2618
  91 -rw-r--r--   1 news     news        91914 May 30 23:14
peer1.S000044
  91 -rw-r--r--   1 news     news       170485 May 30 23:14
peer2.S000250
     .....................
  ( the rest apears normally  )

peer 1 & 2 do not appear on the listing but
when i do 'touch  peer1' i  get ' file already exists'
( syncing doesn't help )

can anyone help me on this, all tips are welcom.


thx in advance

Jan



Original Posting :




i'm running a diablo 1.23 feederbox on an alpha 400Mhz with 192 MB ram (

Linux 2.2.7 )
it has a software raid0 ( 2 disks of 9 Gig )
We have about 20 peers and about everyday there is a "hanging" dqueue
link somewhere.

hanging  ( peer 3 )

    0 -rw-r--r--   1 news     news            0 May 27 21:50
peer1
112 -rw-r--r--   1 news     news       113093 May 27 21:49
peer1.S00066
   0 -rw-r--r--   1 news     news            0 May 27 21:50
peer2
   7 -rw-r--r--   1 news     news         6285 May 27 21:50
peer2.S00065
 114 -rw-r--r--   1 news     news       114756 May 27 20:49
peer3.S00048
..................

doing a manual dspoolout doestn't help at al, pausing the server neither

the only thing helping is pausing the server, kill the hangind dnewlink
to peer3
renaming  the peer in all config files & dicmd go " "

The disks are brand new, new metadevice ......

/dev/sdb1 on /news type ext2 (rw)
/dev/md0 on /news/spool type ext2 (rw)


is my history file corrupted ?
anyone ?

thx alot

-Jan




Re: diablo dqueue problem , extra
#37715
Author: Simon Lyall
Date: Sun, 30 May 1999 00:00
16 lines
1105 bytes
Jan <jan@online.be> wrote:
> i've changed all my feeds to realtime with a max connection out of 1.
> now the error occurs even more frequent :(

All mine are: 

1     realtime nobatch n0

Which seems to help, it's definately a bug somewhere however.

-- 
Simon Lyall.              |   Newsmaster   | Work: simon.lyall@ihug.co.nz
Network Admin             |                | Home: simon@darkmere.gen.nz
The Internet Group, Auck. |  Asst Doorman  | Web:   Currently Offline

Re: diablo dqueue problem , extra
#37719
Author: Cor Bosman
Date: Sun, 30 May 1999 00:00
30 lines
1634 bytes
Jan <jan@online.be> writes:

>Linux 2.2.7 )
>it has a software raid0 ( 2 disks of 9 Gig )
>We have about 20 peers and about everyday there is a "hanging" dqueue
>link somewhere.

>hanging  ( peer 3 )

>    0 -rw-r--r--   1 news     news            0 May 27 21:50
>peer1
>112 -rw-r--r--   1 news     news       113093 May 27 21:49
>peer1.S00066
>   0 -rw-r--r--   1 news     news            0 May 27 21:50
>peer2
>   7 -rw-r--r--   1 news     news         6285 May 27 21:50
>peer2.S00065
> 114 -rw-r--r--   1 news     news       114756 May 27 20:49
>peer3.S00048
>..................

Not sure if this is the same thing, but it looks like something we're seeing.
Regularly we see dnewslink processes stuck. Sometimes we dont notice for
a few days, until the peer with the stuck processes starts to lag behind.
We've been seeing this ever since we started using diablo, which is over
a year ago. 

Cor

Re: diablo dqueue problem , extra
#37722
Author: Jan
Date: Mon, 31 May 1999 00:00
76 lines
3414 bytes
hi,

after a remount of the filesystem in sync mode,
got my first hanging process.

ls -ls
ls: peer10 : No such file or directory

.......
133 -rw-r--r--   1 news     news       134517 May 31 13:50 peer10.S00042
.......

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

Regards

-Jan









Brad Knowles wrote:

> In article <3751AC0E.448FFDC6@online.be>, Jan <jan@online.be> wrote:
>
> > peer 1 & 2 do not appear on the listing but
> > when i do 'touch  peer1' i  get ' file already exists'
> > ( syncing doesn't help )
>
>     What about mounting the filesystem as synchronous (or using chattr +S
> on the dqueue directory), then rebooting?  Given the description, I'd
> strongly suspect a problem with the default ext2fs asynchronous mode of
> mounting filesystems, and doing real asynchronous directory updates is one
> of the fastest ways I know of to seriously screw up a sendmail mqueue or a
> typical news spool (although Diablo's timehash-style of storing articles
> should greatly reduce the problem for news).
>
>     I'd be real curious to hear more details about the problem, and in
> particular how you're coming to the conclusion that you have "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.


Re: diablo dqueue problem , extra
#37726
Author: Brad Knowles
Date: Mon, 31 May 1999 00:00
44 lines
2859 bytes
In article <FCKuK8.MqL@spcuna.spc.edu>, Terry Kennedy
<terry@spcunb.spc.edu> wrote:

>   On BSD/OS 3.1, I have problems with wedging dnewslinks. The problem symp-
> tom is that I'll have way-old dnewslink processes (> 8 hours) hanging around,
> either in ps state I or IW,

    Interesting that you should mention this.

    Now that I look at things more closely, the "oldest" dnewslink process
I've got has only 37 seconds of CPU time, but I have a number of processes
with start times of "Apr 27".  The main Diablo daemon has a start time of
"Apr 26", so it would seem that these older processes have been around
pretty much since Diablo was restarted.

    However, of these older processes, none is particularly large in size,
in fact they all seem pretty small at only 24KB RSS.  I'm wondering if
maybe these aren't the realtime dnewslink processes, and all the rest are
simply processing previous batches?

>                             and they will be using a large amount of memory
> (a normal dnewslink on BSD/OS is about 300-500K, while these go up to 2M), 
> much of which is mbufs (a "netstat -m" on a busy system shows between 200-
> 400 mbufs in use, while if there are hanging newslinks around this will creep
> up to 8000 or so, at which point the system complains about "no rx buffer
> available" on the Ethernet interface).

    Unfortunately, I have not yet found a way to get this kind of
information from Linux.  I can get some inkling of how much memory is
being taken up by a particular process with ps, but I can't be sure how
many mbufs are in use.


    I wish I could find truss.  I could at least see what system calls
these processes are making, and get some idea of what's going on.

-- 
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.

Re: diablo dqueue problem , extra
#37727
Author: Cor Bosman
Date: Mon, 31 May 1999 00:00
26 lines
2047 bytes
Terry Kennedy <terry@spcunb.spc.edu> writes:

>  On BSD/OS 3.1, I have problems with wedging dnewslinks. The problem symp-
>tom is that I'll have way-old dnewslink processes (> 8 hours) hanging around,
>either in ps state I or IW, and they will be using a large amount of memory
>(a normal dnewslink on BSD/OS is about 300-500K, while these go up to 2M), 
>much of which is mbufs (a "netstat -m" on a busy system shows between 200-
>400 mbufs in use, while if there are hanging newslinks around this will creep
>up to 8000 or so, at which point the system complains about "no rx buffer
>available" on the Ethernet interface).

>  Manually killing (-9) them seems to work fine, but of course I'd prefer
>that this didn't happen in the first place.

>  The other problem that this causes is that dnewslinks are spawned based on
>the starting batch sequence number and a maximum number of batches to process.
>If a new dnewslink starts up, finds the starting batch is locked and none of
>the next N batches exist, it will exit without processing any of the batches
>at sequence numbers N+1.

Exactly what we're seeing on BSD/OS 4.0.1. We've done a ktrace once, but
I forgot the result. I'll do it again when i see a hung dnewslink.

Cor

Re: diablo dqueue problem , extra
#37729
Author: Jan
Date: Mon, 31 May 1999 00:00
38 lines
2046 bytes
ok thanks for the tip
i have remounted the /news filesystem synchronous

i'll let you know what happens next


-Jan


Brad Knowles wrote:

> In article <3751AC0E.448FFDC6@online.be>, Jan <jan@online.be> wrote:
>
> > peer 1 & 2 do not appear on the listing but
> > when i do 'touch  peer1' i  get ' file already exists'
> > ( syncing doesn't help )
>
>     What about mounting the filesystem as synchronous (or using chattr +S
> on the dqueue directory), then rebooting?  Given the description, I'd
> strongly suspect a problem with the default ext2fs asynchronous mode of
> mounting filesystems, and doing real asynchronous directory updates is one
> of the fastest ways I know of to seriously screw up a sendmail mqueue or a
> typical news spool (although Diablo's timehash-style of storing articles
> should greatly reduce the problem for news).
>
>     I'd be real curious to hear more details about the problem, and in
> particular how you're coming to the conclusion that you have "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.


Re: diablo dqueue problem , extra
#37733
Author: 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.

Re: diablo dqueue problem , extra
#37734
Author: Brad Knowles
Date: Mon, 31 May 1999 00:00
27 lines
1900 bytes
In article <3751AC0E.448FFDC6@online.be>, Jan <jan@online.be> wrote:

> peer 1 & 2 do not appear on the listing but
> when i do 'touch  peer1' i  get ' file already exists'
> ( syncing doesn't help )

    What about mounting the filesystem as synchronous (or using chattr +S
on the dqueue directory), then rebooting?  Given the description, I'd
strongly suspect a problem with the default ext2fs asynchronous mode of
mounting filesystems, and doing real asynchronous directory updates is one
of the fastest ways I know of to seriously screw up a sendmail mqueue or a
typical news spool (although Diablo's timehash-style of storing articles
should greatly reduce the problem for news).


    I'd be real curious to hear more details about the problem, and in
particular how you're coming to the conclusion that you have "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.

Re: diablo dqueue problem , extra
#37735
Author: Brad Knowles
Date: Mon, 31 May 1999 00:00
29 lines
1698 bytes
In article <7isbvu$lik$1@newsource.ihug.co.nz>, Simon Lyall
<simon.lyall@ihug.co.nz> wrote:

> All mine are: 
> 
> 1     realtime nobatch n0
> 
> Which seems to help, it's definately a bug somewhere however.

    We don't find this necessary at all.  We usually break things up into
a "small" queue (anything less than 16KB) and a "big" queue (anything over
16KB), and run them separately as:

         6       n2 realtime

    For some hosts, we add "nostream", but only if they require it.


    Can you give us some more details on the exact nature of the problem,
because I don't think we're seeing it?

-- 
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.

Re: diablo dqueue problem , extra
#37736
Author: Jan
Date: Mon, 31 May 1999 00:00
47 lines
1978 bytes
hi,

i've leaved the processes untouched and waited

on the next spool out this appeared :

.......
  59 -rw-r--r--   1 news     news        58506 May 31 14:08 peer10
  59 -rw-r--r--   1 news     news        58506 May 31 14:08 peer10
.........

one spoolout later :

....
32 -rw-r--r--   1 news     news        111900  May 31 14:16 peer10
.....

peer 10 was about double the size

next spoolout :

all back to normal, but a strace of the process was the same ( i've straced
the diablo process )



-Jan




>
>     What about mounting the filesystem as synchronous (or using chattr +S
> on the dqueue directory), then rebooting?  Given the description, I'd
> strongly suspect a problem with the default ext2fs asynchronous mode of
> mounting filesystems, and doing real asynchronous directory updates is one
> of the fastest ways I know of to seriously screw up a sendmail mqueue or a
> typical news spool (although Diablo's timehash-style of storing articles
> should greatly reduce the problem for news).
>
>     I'd be real curious to hear more details about the problem, and in
> particular how you're coming to the conclusion that you have "hung"
> dnewslink processes.
>


Re: diablo dqueue problem , extra
#37738
Author: Kjetil Torgrim Homme
Date: Mon, 31 May 1999 00:00
13 lines
1169 bytes
[Brad Knowles]

>       I wish I could find truss.  I could at least see what system
>   calls these processes are making, and get some idea of what's
>   going on.

You mean strace?  :-) And use lsof to find out which files are
connected to the file descriptors.


Kjetil T.

Re: diablo dqueue problem , extra
#37739
Author: Brad Knowles
Date: Mon, 31 May 1999 00:00
28 lines
2113 bytes
In article <brad-3105991704160001@brad.techos.skynet.be>,
brad@shub-internet.org (Brad Knowles) wrote:

>     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:

    I got to looking at things even more closely, and it turns out that
virtually all these processes date from the time when I split the feeds
into separate "<site>-small" and "<site>-big" queues, so that we could
spend less time attempting to feed the larger articles which were more
likely to be transmitted slowly, and more time pushing more small articles
through.

    I killed off all those old processes and cleaned out everything in
/news/dqueue that was over a day old.  We'll see if this problem comes
back.

-- 
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.

Re: diablo dqueue problem , extra
#37740
Author: Terry Kennedy
Date: Mon, 31 May 1999 00:00
28 lines
2175 bytes
Brad Knowles <brad@shub-internet.org> writes:
>     I'd be real curious to hear more details about the problem, and in
> particular how you're coming to the conclusion that you have "hung"
> dnewslink processes.

  On BSD/OS 3.1, I have problems with wedging dnewslinks. The problem symp-
tom is that I'll have way-old dnewslink processes (> 8 hours) hanging around,
either in ps state I or IW, and they will be using a large amount of memory
(a normal dnewslink on BSD/OS is about 300-500K, while these go up to 2M), 
much of which is mbufs (a "netstat -m" on a busy system shows between 200-
400 mbufs in use, while if there are hanging newslinks around this will creep
up to 8000 or so, at which point the system complains about "no rx buffer
available" on the Ethernet interface).

  Manually killing (-9) them seems to work fine, but of course I'd prefer
that this didn't happen in the first place.

  The other problem that this causes is that dnewslinks are spawned based on
the starting batch sequence number and a maximum number of batches to process.
If a new dnewslink starts up, finds the starting batch is locked and none of
the next N batches exist, it will exit without processing any of the batches
at sequence numbers N+1.

	Terry Kennedy		  Operations Manager, Academic Computing
	terry@spcvxa.spc.edu	  St. Peter's College, Jersey City, NJ USA
        +1 201 915 9381 (voice)   +1 201 435-3662 (FAX)

Re: diablo dqueue problem , extra
#37741
Author: Brad Knowles
Date: Mon, 31 May 1999 00:00
18 lines
1595 bytes
In article <7isbf8$r4d$1@xs4.xs4all.nl>, cor@xs4.xs4all.nl (Cor Bosman) wrote:

> Not sure if this is the same thing, but it looks like something we're seeing.
> Regularly we see dnewslink processes stuck. Sometimes we dont notice for
> a few days, until the peer with the stuck processes starts to lag behind.

    Well, if you've got multiple channels open to each peer, then I would
anticipate that there shouldn't be any problems with lag.  Even if one
dnewslink process gets hung, the others should be fine -- right?

-- 
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.

Re: diablo dqueue problem , extra
#37747
Author: Bill Gunshannon
Date: Tue, 01 Jun 1999 00:00
36 lines
2616 bytes
In article <brad-3105991720100001@brad.techos.skynet.be>, brad@shub-internet.org (Brad Knowles) writes:
|> 
|>     I got to looking at things even more closely, and it turns out that
|> virtually all these processes date from the time when I split the feeds
|> into separate "<site>-small" and "<site>-big" queues, so that we could
|> spend less time attempting to feed the larger articles which were more
|> likely to be transmitted slowly, and more time pushing more small articles
|> through.
|> 
|>     I killed off all those old processes and cleaned out everything in
|> /news/dqueue that was over a day old.  We'll see if this problem comes
|> back.

Well, being the guy who suggested the big/small feed system I feel a need
to defend my idea.  ;-)

I have not seen this problem on my system.  The only time I saw any problem
was the no n+1 outbound spool file problem, but that was after recovering
from a system disk crash (hardware!) that resulted in the first spoolfile
being oversized enough to hold up all the others.  But once this one cleared,
my whole backlog cleared in just a few hours.  I have not seen the hanging
dnewsfeed problem at all.  I am running freeBSD 3.0 and DIABLO 1.23-REL.

Oh, and I might add that, at least here, the big/small spools seems to be a
major win.  I have just sent my first (in a long time) stats to Freenix.  We
will have to see if it makes any real difference at all.

bill

-- 
Bill Gunshannon          |  de-moc-ra-cy (di mok' ra see) n.  Three wolves
bill@cs.uofs.edu         |  and a sheep voting on what's for dinner.
University of Scranton   |
Scranton, Pennsylvania   |         #include <std.disclaimer.h>   

Re: diablo dqueue problem , extra
#37753
Author: Terry Kennedy
Date: Tue, 01 Jun 1999 00:00
11 lines
1371 bytes
Cor Bosman <cor@xs4.xs4all.nl> writes:
> No, im running BSD/OS 4.0.1. Same problems. I even instructed our helpdesk
> to keep an eye/ear out for complaints, cause it happens quite a lot.

  BSD/OS 3.1 here, same problem.

	Terry Kennedy		  Operations Manager, Academic Computing
	terry@spcvxa.spc.edu	  St. Peter's College, Jersey City, NJ USA
        +1 201 915 9381 (voice)   +1 201 435-3662 (FAX)

Re: diablo dqueue problem , extra
#37756
Author: Jan
Date: Tue, 01 Jun 1999 00:00
28 lines
1710 bytes
hi,

i had several "<site>-small" and "<site>-big"  queues configered
removing them, was not the solution to my problem.

what really helped, was mounting the dqueue partition with the sync option.

there are no more problems since ..... ( i hope it stays that way )

-Jan





Bill Gunshannon wrote:

> In article <brad-3105991720100001@brad.techos.skynet.be>, brad@shub-internet.org (Brad Knowles) writes:
> |>
> |>     I got to looking at things even more closely, and it turns out that
> |> virtually all these processes date from the time when I split the feeds
> |> into separate "<site>-small" and "<site>-big" queues, so that we could
> |> spend less time attempting to feed the larger articles which were more
> |> likely to be transmitted slowly, and more time pushing more small articles
> |> through.


Re: diablo dqueue problem , extra
#37757
Author: Bill Gunshannon
Date: Tue, 01 Jun 1999 00:00
58 lines
3972 bytes
In article <brad-0106991750150001@brad.techos.skynet.be>, brad@shub-internet.org (Brad Knowles) writes:
|> In article <7j0u1k$7f0$1@info.cs.uofs.edu>, bill@cs.uofs.edu (Bill
|> Gunshannon) wrote:
|> 
|> >                                                I have not seen the hanging
|> > dnewsfeed problem at all.  I am running freeBSD 3.0 and DIABLO 1.23-REL.
|> 
|>     I think this is probably the root of the issue -- to the best of my
|> recollection, every single person complaining about the "hanging dnewsfeed
|> problem" is running Linux, not FreeBSD.

I went back and checked as I thought it was someone running BSD/OS.  The fact
that it is Linux boxes doesn't surprise me at all.  I ran Linux (many, many
moons ago) for my news server but was unable to keep it up for even days.  And
after dying the filesystem was inariably trashed beyond recovery.  I also found
it impossible to keep up with any of my peers.  Upon learing about the existence
of FreeBSD I changed and have never looked back.  (Well, actually I have, but 
even the latest Linux I have, Redhat 5.2, doesn't compare.)  I know the Linux
advocates will hate hearing this, but it is based on the only benchmark that
counts.  I have used both of them on the same hardware and FreeBSD wins, hands
down.  And the price is about the same.  :-)

|> 
|> > Oh, and I might add that, at least here, the big/small spools seems to be a
|> > major win.  I have just sent my first (in a long time) stats to Freenix.  We
|> > will have to see if it makes any real difference at all.
|> 
|>     I'd be real interested to know how you currently stack up against your
|> various peers now versus then, how those peers are rated, etc....

Me too, one peer in particular.

|> 
|>     I've got some ideas on how one might be able to estimate future
|> ratings based on the previous months ratings and the ratio of how many
|> articles you're feeding them versus receiving from them, but I have yet to
|> put anything down on paper or in electrons as of yet....

Well, I am sure the hardware disk crash that killed my diablo box for
over 24 hours is going to hurt my stats, but hopefully not a lot.  Inflow
on my reader box was showing less than 30 minutes average-delay for articles
until then, which I think is good (and is giving me some ideas about other
ways to improve overall news propogation!)  Unfortunately I am now down to
about 2 hours.  An interesting point, the message I am responding to was also
sent to me via Email.  There is less that 5 minutes diference in arrival times!!

So Brad, you ready to peer with me??  I could use one or two European peers
and maybe another from the west coast. (Russ??)  :-)

bill

-- 
Bill Gunshannon          |  de-moc-ra-cy (di mok' ra see) n.  Three wolves
bill@cs.uofs.edu         |  and a sheep voting on what's for dinner.
University of Scranton   |
Scranton, Pennsylvania   |         #include <std.disclaimer.h>   

Re: diablo dqueue problem , extra
#37760
Author: Brad Knowles
Date: Tue, 01 Jun 1999 00:00
16 lines
1654 bytes
In article <3754045C.33D34421@noc.online.be>, Jan <news@noc.online.be> wrote:

> what really helped, was mounting the dqueue partition with the sync option.
> 
> there are no more problems since ..... ( i hope it stays that way )

    You may also want to try adding "noatime", since Diablo doesn't need
the last time some file was accessed, and this should significantly speed
up the process of reading files (since you no longer have to update the
inode structure every time you read a file).

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

Re: diablo dqueue problem , extra
#37762
Author: Brad Knowles
Date: Tue, 01 Jun 1999 00:00
42 lines
2840 bytes
In article <7j119i$9mr$1@info.cs.uofs.edu>, bill@cs.uofs.edu (Bill
Gunshannon) wrote:

> I went back and checked as I thought it was someone running BSD/OS.

    Of course, Cor just confirmed that you are right and that I was
mis-remembering things.  However, of the other sites I can vaguely recall
reporting the problem, I do believe at least one or two of them were
running Linux, and I think Cor might have been the odd one out with
BSD/OS.

>                                               Upon learing about the
> existence of FreeBSD I changed and have never looked back.  (Well,
> actually I have, but even the latest Linux I have, Redhat 5.2,
> doesn't compare.)

    I'm with you -- as soon as our replacement server comes in (which is
long overdue!), I'm switching to FreeBSD too.

    There's just nothing like running the same OS that is the standard
development environment for whatever particular application that you're
trying to run.  That's why it doesn't really make sense (to me, anyway ;-)
to try running Sybase on anything but Sun & HP.

> So Brad, you ready to peer with me??  I could use one or two European peers
> and maybe another from the west coast. (Russ??)  :-)

    Lemme get that replacement hardware in place.

    Which reminds me -- as long as I've been waiting for it, I should
probably change my .sig.  I won't be accepting any new peerings until it
comes in, so there's no sense in my continuing to actively campaign to get
new peerings until then.  ;-)

-- 
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.

Re: diablo dqueue problem , extra
#37763
Author: Brad Knowles
Date: Tue, 01 Jun 1999 00:00
30 lines
2316 bytes
In article <7j0u1k$7f0$1@info.cs.uofs.edu>, bill@cs.uofs.edu (Bill
Gunshannon) wrote:

>                                                I have not seen the hanging
> dnewsfeed problem at all.  I am running freeBSD 3.0 and DIABLO 1.23-REL.

    I think this is probably the root of the issue -- to the best of my
recollection, every single person complaining about the "hanging dnewsfeed
problem" is running Linux, not FreeBSD.

> Oh, and I might add that, at least here, the big/small spools seems to be a
> major win.  I have just sent my first (in a long time) stats to Freenix.  We
> will have to see if it makes any real difference at all.

    I'd be real interested to know how you currently stack up against your
various peers now versus then, how those peers are rated, etc....

    I've got some ideas on how one might be able to estimate future
ratings based on the previous months ratings and the ratio of how many
articles you're feeding them versus receiving from them, but I have yet to
put anything down on paper or in electrons as of yet....

-- 
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.

Re: diablo dqueue problem , extra
#37764
Author: Bill Gunshannon
Date: Tue, 01 Jun 1999 00:00
27 lines
2033 bytes
In article <3754045C.33D34421@noc.online.be>, Jan <news@noc.online.be> writes:
|>
|> 
|> Bill Gunshannon wrote:
|> 
|> > In article <brad-3105991720100001@brad.techos.skynet.be>, brad@shub-internet.org (Brad Knowles) writes:
|> > |>
|> > |>     I got to looking at things even more closely, and it turns out that
|> > |> virtually all these processes date from the time when I split the feeds
|> > |> into separate "<site>-small" and "<site>-big" queues, so that we could
|> > |> spend less time attempting to feed the larger articles which were more
|> > |> likely to be transmitted slowly, and more time pushing more small articles
|> > |> through.
|> 

Need to be careful with our attribution.  Although there is no real harm
here, Bill Gunshannon wrote none of the above!!

bill

-- 
Bill Gunshannon          |  de-moc-ra-cy (di mok' ra see) n.  Three wolves
bill@cs.uofs.edu         |  and a sheep voting on what's for dinner.
University of Scranton   |
Scranton, Pennsylvania   |         #include <std.disclaimer.h>   

Re: diablo dqueue problem , extra
#37766
Author: Cor Bosman
Date: Tue, 01 Jun 1999 00:00
18 lines
1609 bytes
brad@shub-internet.org (Brad Knowles) writes:

>In article <7j0u1k$7f0$1@info.cs.uofs.edu>, bill@cs.uofs.edu (Bill
>Gunshannon) wrote:

>>                                                I have not seen the hanging
>> dnewsfeed problem at all.  I am running freeBSD 3.0 and DIABLO 1.23-REL.

>    I think this is probably the root of the issue -- to the best of my
>recollection, every single person complaining about the "hanging dnewsfeed
>problem" is running Linux, not FreeBSD.

No, im running BSD/OS 4.0.1. Same problems. I even instructed our helpdesk
to keep an eye/ear out for complaints, cause it happens quite a lot.

Cor

Re: diablo dqueue problem , extra
#37769
Author: Kjetil Torgrim Homme
Date: Wed, 02 Jun 1999 00:00
23 lines
1902 bytes
[Bill Gunshannon]

>   Well, I am sure the hardware disk crash that killed my diablo box
>   for over 24 hours is going to hurt my stats, but hopefully not a
>   lot.  Inflow on my reader box was showing less than 30 minutes
>   average-delay for articles until then, which I think is good (and
>   is giving me some ideas about other ways to improve overall news
>   propogation!)  Unfortunately I am now down to about 2 hours.

Average delay is really not very interesting.  I did an analysis of
the last 1% of my history file:

Col   N     Mean       SD       Min       25%       50%       75%       Max
 1  47473  2.30e+03  2.21e+04 -8.64e+04  0.000     2.000     192.0     5.19e+05

Note that the average is 2300 seconds, but the median is 2 seconds!

There are bad clocks out there, and they skew the results enormously.


Kjetil T.

Re: diablo dqueue problem , extra
#37771
Author: Kjetil Torgrim Homme
Date: Wed, 02 Jun 1999 00:00
49 lines
2363 bytes
[Brad Knowles]

>       I'd be interested to know what tool you used to perform this
>   analysis.  In particular, this is precisely the sort of thing I'd
>   like to see incorporated into inflow....

It's very simple.  I first created a list of delays in seconds on my
reader box running INN:

=== delay.pl ===
#! /usr/bin/perl -w

$history = "/news/db/history";

use Getopt::Std;
use POSIX;

$opt_p = 1;	# default value is look at last 1% of history file

getopts('p:');

open (HIST, $history) || die "$history: $!\n";
$hist_size = (stat (HIST))[7];
$skip = int ($hist_size * (100 - $opt_p) / 100);
seek (HIST, $skip, SEEK_SET) || die "seek($skip): $!\n";
<HIST>;		# discard first line, it's probably chopped in the middle

$count = 0; $lines = 0;
while (<HIST>) {
    ++$lines;
    if (/(\d+)~[^~]+~(\d+)/) {
	print $1 - $2, "\n";
	++$count;
    }
}
print STDERR "$lines, $count\n";
=== ends ===

delay.pl > /tmp/D

Then I loaded this into BLSS (Berkeley Interactive Statistical System,
blss@stat.berkeley.edu) with the command "read /tmp/D", and asked for
all the statistics with "stat D".  BLSS is not free software, but
there are probably free tools which can do the same thing.


Kjetil T.

Re: diablo dqueue problem , extra
#37773
Author: Ben C. O. Grimm
Date: Wed, 02 Jun 1999 00:00
22 lines
1799 bytes
On Tue, 1 Jun 1999 18:57:39 GMT, Terry Kennedy
<terry@spcunb.spc.edu> wrote:

> Cor Bosman <cor@xs4.xs4all.nl> writes:
> > No, im running BSD/OS 4.0.1. Same problems. I even instructed our helpdesk
> > to keep an eye/ear out for complaints, cause it happens quite a lot.
 
>   BSD/OS 3.1 here, same problem.

FreeBSD 3.1, the problem being that in some cases the latest
realtime batch is being processed while there are still queued
batches to be delivered. Killing all dnewslink processes and
running a new dspoolout fixes that (and reduces system load as
well ..)

-- 
- Ben C. O. Grimm ----------------- Ben.Grimm@wirehub.net -
- Wirehub! Internet Engineering - http://www.wirehub.net/ -
- Wirehub! Backbone --- http://doema.wirehub.net/wirehub/ -
- Private Ponderings ------- http://libertas.wirehub.net/ -

Re: diablo dqueue problem , extra
#37780
Author: Brad Knowles
Date: Wed, 02 Jun 1999 00:00
19 lines
1780 bytes
In article <1r6757v7cb.fsf@haey.ifi.uio.no>, Kjetil Torgrim Homme
<kjetilho@haey.ifi.uio.no> wrote:

> Average delay is really not very interesting.  I did an analysis of
> the last 1% of my history file:
> 
> Col   N     Mean       SD       Min       25%       50%       75%       Max
>  1  47473  2.30e+03  2.21e+04 -8.64e+04  0.000     2.000     192.0    
5.19e+05

    I'd be interested to know what tool you used to perform this
analysis.  In particular, this is precisely the sort of thing I'd like to
see incorporated into inflow....

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

Re: diablo dqueue problem , extra
#37849
Author: Sico Bruins
Date: Sun, 06 Jun 1999 00:00
29 lines
1895 bytes
In article <7j10c4$ku7$1@xs4.xs4all.nl>, Cor Bosman <cor@xs4.xs4all.nl> wrote:

>brad@shub-internet.org (Brad Knowles) writes:
>
>>In article <7j0u1k$7f0$1@info.cs.uofs.edu>, bill@cs.uofs.edu (Bill
>>Gunshannon) wrote:
>
>>>                                                I have not seen the hanging
>>> dnewsfeed problem at all.  I am running freeBSD 3.0 and DIABLO 1.23-REL.
>
>>    I think this is probably the root of the issue -- to the best of my
>>recollection, every single person complaining about the "hanging dnewsfeed
>>problem" is running Linux, not FreeBSD.
>
>No, im running BSD/OS 4.0.1. Same problems. I even instructed our helpdesk
>to keep an eye/ear out for complaints, cause it happens quite a lot.

Let me add to this thread (however late) that I know someone running some
version of Solaris on an Ultra 450 with the same problem. He lurks here
too, but doesn't seem to want to post. ;-)

I haven't seen this problem myself (running Diablo-1.23 under Solaris),
but then again I don't have as many newspeers as Cor.

>Cor

CU, Sico.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads