[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: clamd niceness (outgoing mail: "From isn't in return path")



On Mon, Jul 23, 2007 at 08:53:13PM -0700, Andrew Sackville-West wrote:
> On Mon, Jul 23, 2007 at 06:56:18PM -0500, Owen Heisler wrote:
> [issues with gmail and spam scoring]
> 
> I really can't help you with this, but for the record, they both came
> through my inbox just fine...

Okay, thanks.  Hopefully this is right, with 'envelope_from' & 'from' set
to my gmail address, and 'sender' set to the local address.

> as far as i can tell, there is no way to set the nice level other than
> modifying the init script (/etc/init.d/clamav-daemon) to set it when
> it gets called. This is supported by [0] which addresses this issue
> briefly.

I looked at the init script already, and couldn't figure out what
start_daemon was for (not a command I can run as root).  This time I
Googled it and added "-n 10" and everything is great!

> But I think you may be asking the wrong question, so
> let me ask this: why do you want to adjust its nice level? What is it
> doing that causes you to think this is the solution to your problem?
> even better: what is the actual problem? ;)

I just don't want clamd interfering with what I'm doing.  I notice it
sometimes, especially with the more graphics-intensive programs.

> the reason I ask is because, per [0], renice-ing clamd doesn't appear
> to work, probably because it is so cpu intensive already, and because
> frankly, you want it to be pretty high priority or your MTA will
> time out on it waiting for it to process. Probably the better way to
> control clamd's behavior is to modify how deep into archives it will
> go, what size stream it will scan or ignore, and various other bits of
> config that would probably have dramatic impact on how quickly it
> scans and how "nice" it generally is...
> 
> http://lists.debian.org/debian-user/2007/05/msg02084.html

That message seems to me to say 'renicing clamd doesn't work because it
doesn't lower the CPU usage'.  I didn't think it worked like that.

Before finding the solution, I tried renicing the clamd process manually
and it does seem to make a difference (I watched glxgears and top while
the mail was processed).

Thanks



Reply to: