Author Topic: nice avast  (Read 2781 times)

0 Members and 1 Guest are viewing this topic.

sejtam

  • Guest
nice avast
« 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?

Offline Jan Gahura

  • Avast team
  • Full Member
  • *
  • Posts: 162
    • ALWIL Software
Re: nice avast
« Reply #1 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

Offline zilog

  • Avast team
  • Advanced Poster
  • *
  • Posts: 957
  • or #f0; daa; add a,#a0; adc a,#40
Re: nice avast
« Reply #2 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
« Last Edit: May 31, 2012, 11:29:21 AM by zilog »
May's Law: Software efficiency halves every 18 months, compensating Moore's Law. (David May, INMOS)