🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
12 messages
12 total messages Started by Roy S. Rapoport Wed, 06 Jan 1999 00:00
Swapping Problems with INN 2.1
#34432
Author: Roy S. Rapoport
Date: Wed, 06 Jan 1999 00:00
25 lines
1707 bytes
I've got a Sparc 20 running as my internal news server, getting a
full feed.  The machine has about 65Gb of diskspace, 512Mb of RAM.
Solaris 2.6, INN 2.1.  I'm using CNFS for all my article storage.

I've found that lately, my news.daily runs are taking a long time (typically
longer than a day.  I think it's obvious there's a problem when a
daily process takes longer than a day :)  ).  I've nailed this down to
huge swapping during the actual expire process, which is sowing down
the whole proess.

Realizing how vague this question is, is there anything I can do about
this? As I see it, there are three options:
A) Run news.daily every 2-3 days rather than every night.  Not sure if
   this is even possible and whether it'll break things.  I mean,
   there's a reason it's called news._daily_, right?
B) Tweak my config somehow to useless memory during the expire.
C) Upgrade the machine (unfortunately, the SS20 can only accomodate
   512Mb of RAM), which is going to be a significant investment (even
   something as lowly  as a U10 will cost us around $7K-$8K.

What can I do?

roy

Re: Swapping Problems with INN 2.1
#34424
Author: Alex French
Date: Wed, 06 Jan 1999 00:00
20 lines
1280 bytes
In article <7703kh$d3t$1@shell3.ba.best.com>, rsr@best.com (Roy S.
Rapoport) wrote:

> I've got a Sparc 20 running as my internal news server, getting a
> full feed.  The machine has about 65Gb of diskspace, 512Mb of RAM.
> Solaris 2.6, INN 2.1.  I'm using CNFS for all my article storage.
> 
> I've found that lately, my news.daily runs are taking a long time (typically


Try enabling tagged hash (you'll have to rebuild the indexes).

Alex.

-- 

Bill Gates is now worth 30 billion dollars.  
Apparently a good haircut costs 31 billion dollars.

Re: Swapping Problems with INN 2.1
#34425
Author: Brad Knowles
Date: Wed, 06 Jan 1999 00:00
26 lines
1891 bytes
In article <7706el$9b5$1@shell3.ba.best.com>, rsr@best.com (Roy S.
Rapoport) wrote:

>                                        (and heck, while I'm at it: Is
> there a major source of documentation I'm missing? Hunting through 85
> manpages is a bit difficult, and there doesn't seem to be an INN faq
> relevant to 2.x, like there was for the 1.x series)...

    Good point -- anyone know when the next edition of _Managing Usenet_
by Spencer and Lawrence (published by O'Reilly & Assoc.) is going to come
out?

    Anybody know if it will address INN 2.x, as well as hopefully covering
Diablo, some of the more standard anti-spam software (e.g., cleanfeed,
spamhippo, NoCeM, etc...), perhaps some of the less well-known anti-spam
software (e.g., News Gizmo, Fluffy's "canlock" code, etc...) and maybe
even addressing commercial products like HighWind Breeze/Typhoon/Cyclone
and DNEWS?

-- 
Brad Knowles <brad@shub-internet.org>  <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
        If you wouldn't take out a one-page ad in the Wall Street
        Journal to say something, then don't say it by email.

Re: Swapping Problems with INN 2.1
#34427
Author: Mark Mentovai
Date: Wed, 06 Jan 1999 00:00
25 lines
1626 bytes
Roy Rapoport wrote in news.software.nntp:
>I've found that lately, my news.daily runs are taking a long time (typically
>longer than a day.  I think it's obvious there's a problem when a
>daily process takes longer than a day :)  ).  I've nailed this down to
>huge swapping during the actual expire process, which is sowing down
>the whole proess.
>
>What can I do?

I throttle the server during expiration.  To accomplish this, I
uncommented the MESSAGE="..." line in news.daily and added -n to
EXPIREFLAGS.  That keeps the memory usage of innd way down, so that expire
can churn away without trouble.  I figure that it's better to receive no
articles for about 20 minutes rather than receiving 10% of our feeds for
four hours each day.  Plus, it's nice to wake up in the morning and see
that the server is done with its overnight tasks...

-Mox

--
Mark Mentovai
mark@moxienet.com
http://www.moxienet.com/

Re: Swapping Problems with INN 2.1
#34440
Author: Roy S. Rapoport
Date: Wed, 06 Jan 1999 00:00
14 lines
1287 bytes
Alex French <alex@medianet.ie> wrote:
>> I've found that lately, my news.daily runs are taking a long time (typically
>Try enabling tagged hash (you'll have to rebuild the indexes).

Err, which indexes? The history file? The active file? The overview
areas? And while I know about makeactive/makehistory, I don't know
about how to rebuild any other indexes (and heck, while I'm at it: Is
there a major source of documentation I'm missing? Hunting through 85
manpages is a bit difficult, and there doesn't seem to be an INN faq
relevant to 2.x, like there was for the 1.x series)...

-roy

Re: Swapping Problems with INN 2.1
#34458
Author: Aidan Cully
Date: Thu, 07 Jan 1999 00:00
28 lines
1942 bytes
In news.software.nntp, rsr@best.com (Roy S. Rapoport) wrote:
> Alex French <alex@medianet.ie> wrote:
> >> I've found that lately, my news.daily runs are taking a long time
> >Try enabling tagged hash (you'll have to rebuild the indexes).
> 
> Err, which indexes? The history file? The active file? The overview
> areas? And while I know about makeactive/makehistory, I don't know
> about how to rebuild any other indexes (and heck, while I'm at it: Is
> there a major source of documentation I'm missing? Hunting through 85
> manpages is a bit difficult, and there doesn't seem to be an INN faq
> relevant to 2.x, like there was for the 1.x series)...

The history.dir and history.pag files.  The tagged hash is a different
format for the DBZ files, and takes up much less space.  The install
docs reccommend not using the non-tagged hash unless you've got more
than 256MB of RAM, but it really depends on how large you want your
history text to grow, and I wouldn't enable it with less than 384MB.

You'll have to re-run configure with --enable-tagged-hash, reinstall
all your binaries, and run makehistory again.  See the man page.

--aidan
-- 
Aidan Cully       "Umm..  Could you call back?  My house is on fire."
Panix Staff          --Tom Waits
aidan@panix.com

Re: Swapping Problems with INN 2.1
#34464
Author: Kjetil Torgrim Homme
Date: Thu, 07 Jan 1999 00:00
30 lines
2079 bytes
[Roy S. Rapoport]

>   I've got a Sparc 20 running as my internal news server, getting a
>   full feed.  The machine has about 65Gb of diskspace, 512Mb of RAM.
>   Solaris 2.6, INN 2.1.  I'm using CNFS for all my article storage.
>   
>   I've found that lately, my news.daily runs are taking a long time
>   (typically longer than a day.  I think it's obvious there's a
>   problem when a daily process takes longer than a day :) ).  I've
>   nailed this down to huge swapping during the actual expire
>   process, which is sowing down the whole proess.

Are you sure?  expire has pretty good locality, I think, so it doesn't
have to swap that much even when the process is huge.  YMMV.

My server[1] would spend 30 or more hours on daily.  It had no other
ill effects than not accepting new articles a lot of the time.  You'll
have to have a bit more disk space to accomodate the two day slack,
though.  The problem in my case was I/O-capacity on the overview
filesystem.  I moved it to a striped filesystem, and now daily runs in
approx. 5 hours.  Use iostat -x 5 to see if any of the disks can't
keep up -- the wait column should preferably say 0.0.


Kjetil T.

[1] A SPARCserver 10 with 192 MB RAM.  My history is rather small, 360
    MB.  I haven't seen the need to enable tagged-hash.

Re: Swapping Problems with INN 2.1
#34467
Author: Kjetil Torgrim Homme
Date: Thu, 07 Jan 1999 00:00
23 lines
1440 bytes
[Jean-Francois Stenuit]

>   Be aware that on default solaris installation, /tmp is mounted as
>   a tmpfs.  This means it uses RAM when available and swap partition
>   when not. If your expire uses /tmp a lot, this may be the cause of
>   your problem.

Very good point.

>   In that case, the solution is to mount /tmp on a disk partition
>   using ufs (just like any other partition on your system).

I prefer telling INN to use a different directory for tmp.  In
inn.conf:

pathtmp:                /local/lib/news/tmp

A matter of taste, I think.


Kjetil T.

Re: Swapping Problems with INN 2.1
#34470
Author: Jean-Francois Stenuit
Date: Thu, 07 Jan 1999 00:00
35 lines
2466 bytes
On 7 Jan 1999, Kjetil Torgrim Homme wrote:

> [Roy S. Rapoport]
> 
> >   I've got a Sparc 20 running as my internal news server, getting a
> >   full feed.  The machine has about 65Gb of diskspace, 512Mb of RAM.
> >   Solaris 2.6, INN 2.1.  I'm using CNFS for all my article storage.
> >   
> >   I've found that lately, my news.daily runs are taking a long time
> >   (typically longer than a day.  I think it's obvious there's a
> >   problem when a daily process takes longer than a day :) ).  I've
> >   nailed this down to huge swapping during the actual expire
> >   process, which is sowing down the whole proess.

Be aware that on default solaris installation, /tmp is mounted as a tmpfs.
This means it uses RAM when available and swap partition when not. If your
expire uses /tmp a lot, this may be the cause of your problem.

In that case, the solution is to mount /tmp on a disk partition using ufs
(just like any other partition on your system).

Just my 0.02 E (what the hell is the ASCII code for the Euro sign ;-)

--
 Opinions expressed above are mine, they have not to be taken as a
 skynet official position.
 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
/Jean-Francois "Jef" Stenuit | BELGACOM-Skynet NV/SA | Solaris 2.x,  \
\Network operations manager  | 124, Rue Col. Bourg   | Linux, NT,    /
/Phone (32)(2) 706-1311      | B-1140 Brussels       | Cisco         \
\Fax   (32)(2) 726-9823      | Belgium               | expert ...    /
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


Re: Swapping Problems with INN 2.1
#34486
Author: Roy S. Rapoport
Date: Thu, 07 Jan 1999 00:00
24 lines
1677 bytes
Kjetil Torgrim Homme  <kjetilho@haey.ifi.uio.no> wrote:
>Are you sure?  expire has pretty good locality, I think, so it doesn't
>have to swap that much even when the process is huge.  YMMV.

MMDV (My Mileage Definitely Varies :) ).  According to top, expire is
the biggest process and it looks like it's spending most of it's time
sleeping waiting for the IO to become available.  Tracking down IO
(since my swap and overviews are on the same disk, iostat -p is rather
useful), the only major IO any of my disks is doing is to the swap
partition.

>though.  The problem in my case was I/O-capacity on the overview
>filesystem.  I moved it to a striped filesystem, and now daily runs in
>approx. 5 hours.  Use iostat -x 5 to see if any of the disks can't
>keep up -- the wait column should preferably say 0.0.

Occasionally one of the disks goes to 0.3, but in general, all the
wait columns are at 0.0.  Swapping's a bitch.

Have I mentioned ~news/db/history is 472Mb yet?

-roy

Re: Swapping Problems with INN 2.1
#34492
Author: Roy S. Rapoport
Date: Thu, 07 Jan 1999 00:00
18 lines
1307 bytes
Mark Mentovai <mark@moxienet.com> wrote:
>>huge swapping during the actual expire process, which is sowing down
>>the whole proess.
>>
>>What can I do?
>
>I throttle the server during expiration.  To accomplish this, I
>uncommented the MESSAGE="..." line in news.daily and added -n to
>EXPIREFLAGS.  That keeps the memory usage of innd way down, so that expire
>can churn away without trouble.  I figure that it's better to receive no

Wish that really made a difference in this case.  According to top.
expire is 530Mb in size (again, my RAM is 512).  INN is only about
2Mb, so it's pretty negligible. 

-roy

Re: Swapping Problems with INN 2.1
#34586
Author: Marc Van Hoof
Date: Mon, 11 Jan 1999 00:00
57 lines
3167 bytes
not sure if this belongs in the same thread, but i'm desperate enough to
try anything.
my news.daily is giving me this cack:

expire begin Mon Jan 11 03:05:56 GMT 1999: (-v1 -c -e
-z/usr/local/news/log/expire.rm
  -u/usr/local/news/log/expire.index.rm
-Z/usr/local/news/log/expire.lowmark)
      Can't malloc 38895384 bytes, Cannot allocate memoryexpire end Mon Jan
11 03:05:58 GMT 1999
          all done Mon Jan 11 03:05:58 GMT 1999
  lowmarkrenumber begin Mon Jan 11 03:05:58 GMT 1999:
(/usr/local/news/log/expire.lowmark)
  lowmarkrenumber end Mon Jan 11 03:05:59 GMT 1999
          expireindex start Mon Jan 11 03:05:59 GMT 1999
          expireindex end Mon Jan 11 03:05:59 GMT 1999

I'm worried about the "Can't malloc <blah> bytes" error message.

can anyone offer me some advice/help ?

thanks in advance,
marc.



Aidan Cully wrote:

> In news.software.nntp, rsr@best.com (Roy S. Rapoport) wrote:
> > Alex French <alex@medianet.ie> wrote:
> > >> I've found that lately, my news.daily runs are taking a long time
> > >Try enabling tagged hash (you'll have to rebuild the indexes).
> >
> > Err, which indexes? The history file? The active file? The overview
> > areas? And while I know about makeactive/makehistory, I don't know
> > about how to rebuild any other indexes (and heck, while I'm at it: Is
> > there a major source of documentation I'm missing? Hunting through 85
> > manpages is a bit difficult, and there doesn't seem to be an INN faq
> > relevant to 2.x, like there was for the 1.x series)...
>
> The history.dir and history.pag files.  The tagged hash is a different
> format for the DBZ files, and takes up much less space.  The install
> docs reccommend not using the non-tagged hash unless you've got more
> than 256MB of RAM, but it really depends on how large you want your
> history text to grow, and I wouldn't enable it with less than 384MB.
>
> You'll have to re-run configure with --enable-tagged-hash, reinstall
> all your binaries, and run makehistory again.  See the man page.
>
> --aidan
> --
> Aidan Cully       "Umm..  Could you call back?  My house is on fire."
> Panix Staff          --Tom Waits
> aidan@panix.com


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