On Tuesday 15 May 2007, Stephen Gran wrote:
> This one time, at band camp, David Baron said:
> > On Tuesday 15 May 2007, Stephen Gran wrote:
> > > [EMAIL PROTECTED]:~$ ps -elF | egrep '(ADDR|clam)'
> > > F S UID        PID  PPID  C PRI  NI ADDR SZ WCHAN    RSS PSR STIME TTY
> > >     TIME CMD 1 S clamav    2657     1  0  78   0 -  1818 pause   1672  
> > > 0 May09 ?        00:00:00 /usr/bin/freshclam -d --quiet 1 S clamav  
> > > 13825 1  0  89   0 - 19769 inet_c 57108   0 May13 ?        00:10:05
> > > /usr/sbin/clamd [EMAIL PROTECTED]:~$ sudo renice 10 13825
> > > [EMAIL PROTECTED]:~$ ps -elF | egrep '(ADDR|clam)'
> > > F S UID        PID  PPID  C PRI  NI ADDR SZ WCHAN    RSS PSR STIME TTY
> > >     TIME CMD 1 S clamav    2657     1  0  78   0 -  1818 pause   1672  
> > > 0 May09 ?        00:00:00 /usr/bin/freshclam -d --quiet 1 S clamav  
> > > 13825 1  0  89  10 - 19769 inet_c 57108   0 May13 ?        00:10:05
> > > /usr/sbin/clamd
> > >
> > > It seems to work fine here.  Perhaps the system monitor doesn't handle
> > > threaded apps in a clever way?
> >
> > I was also able to renice and the renice number shows up in top as it
> > shows up in your test. How do I tell if it is "for real"?
>
> What do you mean?  Why do you think ps would lie?
>
> > How would it be best to set it up, in /etc/init.d/clamav-daemon?
> >
> > Ultimately, there should be a parameter in /etc/default/clamav-daemon
> > that is read into /etc/init.d/clamav-daemon.
>
> Currently, no other daemon that I am aware supports being nice'd from
> the init script.  The init scripts for clamav are already fairly
> baroque, and adding more functionality to them for a fairly corner case
> request doesn't seem like the best thing to do, sorry.

Spamassassin certainly does support nice. Maybe it is not the best thing to do 
and I can, apparently, renice.
>
> Just out of curiosity, why do you need to nice clamd?
A long virus scan, i.e. from weekly or daily cron job on a windows volume, 
does bog down the system a bit. I launch clamdscan with nice but this does 
not accomplish anything. Renicing clamd did not seem to make a difference but 
that is quite subjective.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to