🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by D. Stussy Thu, 28 Oct 2010 19:13
INN Suggestion: Parameter to nice "expireover"
#83585
Author: D. Stussy
Date: Thu, 28 Oct 2010 19:13
13 lines
1948 bytes
I have noted that my "expireover" process seems to be running for the
majority of the day (as my overview is 31GB in filespace size).  However,
it runs as normal priority as "news.daily" is called with normal priority
from cron.  I don't want nor need to "nice" all of the daily maintenance
stuff - just expireover.

Could we add a parameter, "-n" (lowercase, especially since there's already
an "-N") followed by a value (typically 0-19 or 0-99 in range, depending on
the OS) that will call the "nice()" routine to lower the process priority?
Then, I could pass "expireoverparams" to news.daily to accomplish this goal
without having to hack that script.  Thanks.

Re: INN Suggestion: Parameter to nice "expireover"
#83588
Author: Julien ÉLIE
Date: Thu, 28 Oct 2010 20:50
34 lines
2971 bytes
Hi Dieter,

> I have noted that my "expireover" process seems to be running for the
> majority of the day (as my overview is 31GB in filespace size).  However,
> it runs as normal priority as "news.daily" is called with normal priority
> from cron.  I don't want nor need to "nice" all of the daily maintenance
> stuff - just expireover.
>
> Could we add a parameter, "-n" (lowercase, especially since there's already
> an "-N") followed by a value (typically 0-19 or 0-99 in range, depending on
> the OS) that will call the "nice()" routine to lower the process priority?
> Then, I could pass "expireoverparams" to news.daily to accomplish this goal
> without having to hack that script.

Would "nice" be useful for expireover?

I remember we had recently discussed the fact for makehistory.  And it appeared
that it was not a good idea.
We ended up with:

  -L load-average

    Temporarily pause activities if the system load average exceeds the specified
    level load-average.  This allows makehistory to run on a system being used
    for other purposes without monopolizing system resources and thus making the
    response time for other applications unacceptably slow.  Using nice(1) does
    not help much for that because the problem comes from disk I/O usage,
    and ionice(1) is not always available or efficient.

-- 
Julien ÉLIE

« Quand je raconterai mon odyssée, personne ne me croira ! » (Astérix) 
Re: INN Suggestion: Parameter to nice "expireover"
#83600
Author: D. Stussy
Date: Mon, 01 Nov 2010 01:04
64 lines
4077 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:iacnn5$ml3$1@news.trigofacile.com...
> > I have noted that my "expireover" process seems to be running for the
> > majority of the day (as my overview is 31GB in filespace size).
However,
> > it runs as normal priority as "news.daily" is called with normal
priority
> > from cron.  I don't want nor need to "nice" all of the daily
maintenance
> > stuff - just expireover.
> >
> > Could we add a parameter, "-n" (lowercase, especially since there's
already
> > an "-N") followed by a value (typically 0-19 or 0-99 in range,
depending on
> > the OS) that will call the "nice()" routine to lower the process
priority?
> > Then, I could pass "expireoverparams" to news.daily to accomplish this
goal
> > without having to hack that script.
>
> Would "nice" be useful for expireover?
>
> I remember we had recently discussed the fact for makehistory.  And it
appeared
> that it was not a good idea.
> We ended up with:
>
>   -L load-average
>
>     Temporarily pause activities if the system load average exceeds the
specified
>     level load-average.  This allows makehistory to run on a system being
used
>     for other purposes without monopolizing system resources and thus
making the
>     response time for other applications unacceptably slow.  Using
nice(1) does
>     not help much for that because the problem comes from disk I/O usage,
>     and ionice(1) is not always available or efficient.

I thought of "nice" over load average for one good reason:  When two or
more I/O bound processes become ready (i.e. runnable) and are of unequal
priority, the higher priority process (or one of them) is generally
selected first to run.  Only when the low priority process is sufficiently
aged in the ready state will it be selected, and only to prevent
"starvation."  I assume that both the priority value and the age in the
ready state are both inputs to the run-process selection algorithm (when
the number of ready processes exceeds the number of CPU cores available).

A load average limit will also effectively back off when other processes
are CPU bound, but doesn't do anything to adjust process scheduling.
However, the process ("expireover") still gets a CPU slice - but decides to
give it up, as opposed to the "nice" approach, where it doesn't get the
slice to begin with.

Makehistory is always a manual process and usually not called from cron.
Expireover is a background process regularly [and indirectly] called from
cron.  The result may be similar, but the criteria for each isn't the same.

As there is plenty of room for both, perhaps we should implement both, and
let admins decide if either should be used....

Re: INN Suggestion: Parameter to nice "expireover"
#83602
Author: Bruce Esquibel
Date: Mon, 01 Nov 2010 14:35
19 lines
1876 bytes
D. Stussy <spam+newsgroups@bde-arc.ampr.org> wrote:

> As there is plenty of room for both, perhaps we should implement both, and
> let admins decide if either should be used....


My opinion but you should try to figure out why it's taking that long to run
and fix that problem instead.

I don't think "nice" and "renice" has done anything useful since the 386sx
days.

Those two from what I remember control scheduling for the processor, you are
talking about things that use a lot of i/o, which I can't see how it's
helping using them, one way or another. You aren't going to get around slow
drives or a crappy controller using them.

-bruce
bje@ripco.com
Re: INN Suggestion: Parameter to nice "expireover"
#83614
Author: D. Stussy
Date: Wed, 03 Nov 2010 19:30
34 lines
2630 bytes
"Bruce Esquibel" <bje@ripco.com> wrote in message
news:iamj84$cqd$1@remote5bge0.ripco.com...
> D. Stussy <spam+newsgroups@bde-arc.ampr.org> wrote:
> > As there is plenty of room for both, perhaps we should implement both,
and
> > let admins decide if either should be used....
>
> My opinion but you should try to figure out why it's taking that long to
run
> and fix that problem instead.

It takes that long because I have a huge overview - because I also have a
huge news spool.

> I don't think "nice" and "renice" has done anything useful since the
386sx
> days.
>
> Those two from what I remember control scheduling for the processor, you
are
> talking about things that use a lot of i/o, which I can't see how it's
> helping using them, one way or another. You aren't going to get around
slow
> drives or a crappy controller using them.

Faster hardware is the Micro$oft excuse for inefficient programming.

The problem isn't necessarily in speeding up the expireover process.  The
problem is to force it into the background so that other (higher priority)
processes which need to respond timely are not delayed.  I asked for "nice"
ability so I can make expireover be lesser in priority without needing to
do so with the rest of the daily maintenance cycle.

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