Article View: news.software.nntp
Article #83600Re: INN Suggestion: Parameter to nice "expireover"
From: D. Stussy
Date: Mon, 01 Nov 2010 01:04
Date: Mon, 01 Nov 2010 01:04
64 lines
4077 bytes
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....
Technical Details
Message-ID:
<ial3mi$btm$1@snarked.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news.glorb.com!news.snarked.org!pool-71-106-210-230.lsanca.dsl-w.verizon.net!not-for-mailReferences:
<iaci1h$sl$1@snarked.org> <iacnn5$ml3$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <ial3mi$btm$1@snarked.org> Subject: Re: INN Suggestion: Parameter to nice "expireover" Date: Sun, 31 Oct 2010 18:04:19 -0700 From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org> References: <iaci1h$sl$1@snarked.org> <iacnn5$ml3$1@news.trigofacile.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news.glorb.com!news.snarked.org!pool-71-106-210-230.lsanca.dsl-w.verizon.net!not-for-mail Newsgroups: news.software.nntp Lines: 64 Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org> Injection-Date: Mon, 1 Nov 2010 01:04:18 +0000 (UTC) Injection-Info: snarked.org; posting-host="pool-71-106-210-230.lsanca.dsl-w.verizon.net:71.106.210.230"; logging-data="12214"; mail-complaints-to="newsmaster+complaints@snarked.org" X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 X-Original-Bytes: 3828