Re: [exim] nice / lowering exim priority

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Zbigniew Szalbot
Datum:  
To: Exim Mailing List
Betreff: Re: [exim] nice / lowering exim priority
Hi there,

2008/3/6, 韓家標 W B Hacker <wbh@???>:
> Zbigniew Szalbot wrote:
> > Hello,
> >
> > I am curious if there is a way to lower exim's priority while it is
> > being run.
>
>
> Depends on the OS, but generally 'yes'.


FreeBSD 6.3-RELEASE-p1

>
>
> I had a situation where having been blocked by Yahoo I
> > ended up with some 8K emails in queue. This would be all right but my
> > machine so far is humble Pentium III 866 with 512 MB RAM. So while
> > watching the CPU, I noticed that all day long it was being used at
> > 100% (no idle time). I have dealt with the queue problem temporarily
> > but I wonder whether in situations like this there is a way to lower
> > exim thread's priority to leave some cycles for other tasks?


> It is easier to 'nice' the daemon when you start it. So long as there
> are adequate resources, it will run just as fast.


> As to whether you apply 'nice' to a binary, a UID, or a PID, where, and
> when on *your* OS:
>
> 'man nice'


You compelled me to look again and I now think that this should do it:

nice -n 15 exim -bd -q15m

Thank you Bill!


--
Zbigniew Szalbot