Avast WEBforum

Consumer Products => Avast Mac Security => Topic started by: sejtam on May 29, 2012, 10:27:04 AM

Title: nice avast
Post by: sejtam on May 29, 2012, 10:27:04 AM
When scanning the filessystem, avast uses up much CPU and makes the rest of teh system sluggish.
Could something be done to (optionally) a) bind avast to one CPU and nice(2) it down so that it does not
affect interactivity so much?
Title: Re: nice avast
Post by: Jan Gahura on May 29, 2012, 10:35:29 AM
Hi,

What do you mean by the interactivity? The GUI interactivity shouldn't be affected by the scanning process.

We see more users complaining about "sluggishness" of a machine while using avast! in some circumstances. We'd like to collect as much info as possible to solve these issues.

Jan
Title: Re: nice avast
Post by: zilog on May 31, 2012, 11:26:19 AM
When scanning the filessystem, avast uses up much CPU and makes the rest of teh system sluggish.
Could something be done to (optionally) a) bind avast to one CPU and nice(2) it down so that it does not
affect interactivity so much?

Hallo,
we can try adding a customisable priority level to the central scanning process. When this priority is lower (= numerically higher) than other applications, you:

- won't notice any sluggish performance degradation when doing "unrelated" background on-demand scans
- on-access scanning stays unaffected (there's some amount of machine time, necessary to complete a scan, but this action is blocking, and thus able to "steal" machine time from the stopped calling application)

You can test this mode manually with the current version:
- become root (terminal, sudo bash)
- renice the com.avast.MacAvast.MAD's PID (renice that_cpu_eating_pid +20)
- please report whether this is whay you want, or not

Binding a process to a particular CPU core would be a partial solution (maybe good for Windows, but we're on POSIX:).

Regards,
pc