Author Topic: ashServ.exe priority (Task manager)  (Read 4834 times)

0 Members and 1 Guest are viewing this topic.

Offline Tarq57

  • Avast Evangelist
  • Massive Poster
  • ***
  • Posts: 3694
  • If at first you don’t succeed; call it version 1.0
ashServ.exe priority (Task manager)
« on: February 09, 2007, 11:34:56 AM »
Can anyone tell me what this should be by default?
WindowsXP SP2, Avast home 4.7.942.
Mine is set to high (Task manager, locate process, right click, set priority.)
Most others are set to normal.
I seem to recall changing something there long time back, trying to restore defaults.
Anyone know of any sites where common tasks' default priorities are listed?
Thank you.
Windows 10,Windows Firewall,Firefox w/Adblock.

Offline alanrf

  • Avast Evangelist
  • Massive Poster
  • ***
  • Posts: 3870
  • Just an avast user
Re: ashServ.exe priority (Task manager)
« Reply #1 on: February 09, 2007, 12:42:24 PM »
ashServ.exe defaults to High priority (WinXP).

tribble

  • Guest
Re: ashServ.exe priority (Task manager)
« Reply #2 on: February 08, 2008, 03:35:45 PM »
The default HIGH priority is a problem. How can I force ashServ to start at a NORMAL priority?

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89286
  • No support PMs thanks
Re: ashServ.exe priority (Task manager)
« Reply #3 on: February 08, 2008, 04:49:23 PM »
Why exactly is it a problem ?

With avast on high priority it can intercept calls to open a file, scan, it and hand back to the calling program, etc. this should happen quickly, were it on a lower priority then it is likelt that it would take longer as it vies with other Normal priority applications.

As far as I'm aware there is no way to set it to a lower priority.
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.5.6116 (build 24.5.9153.762) UI 1.0.808/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security

tribble

  • Guest
Re: ashServ.exe priority (Task manager)
« Reply #4 on: February 08, 2008, 07:28:15 PM »
First, let me outline a typical use case: a user opens a file in a foreground application. Avast will intercept calls to open a file regardless of its priority (or should, if it's configured the hooks properly). If a user opens a file, the program (or thread) will block until the scan is complete and the file open call returns, and as such will not be consuming any CPU. Therefore, the foreground user program opening the file is not competing for CPU with Avast and there is no need to raise Avast's priority to insure that the scan occurs. The user will wait the same amount of time if she opens a file with an application in either case, regardless of Avast's priority.

However, if there are many programs running on your computer (as there are mine,) then there are often background tasks opening files and doing other things that Avast intercepts and scans. In this case, the user is not the one opening the file, and is involved in doing something else in the foreground with a normal priority user application. When the background task opens a file, Avast's high priority preempts the user's normal priority program, and her computing experience is interrupted.

This happens to me a lot, and it bugs me. A lot.  ;D

So, your assertion that the scan should happen quickly depends, in reality, on why the scan is occuring. IMHO, it's absurd to interrupt the user because a background task requested a file open, or because Avast decided to check for a database update, or any one of the other background types of things it does. I also notice little freezes and interruptions just before Avast pops up its little "a virus database update is available!" messages. Grrr. (As an aside, it bugs me that I can't make those go away without clicking on them, and they hide other things I have stashed in that corner. Grr.)

As I've tried to explain above, if the user is the one opening the file, odds are that there is no competition for CPU anyway. It's possible that there may be background tasks consuming a lot of CPU. If this is a concern to the developers, they can check to see if the CPU is > N% busy with normal priority work and if the file open is being called by a foreground application If so, they can change the scan thread priority temporarily at that time. My bet is that will hardly ever happen. Well-behaved background processes should set their process priorities below normal.

I find a lot of anti-virus software writers set their process priorities to high because they fail to think through this sort of use case/scenario and mistakenly assume that if they don't set their process priority to high, their work will not finish as quickly. If there is no CPU competition, process priority is irrelevant. McAffee bugs the crap out of me at work for the same reason. If your mouse drifts across a large zipfile, or god forbid, a 7-zip or bzip2 file that isn't recognized, explorer accesses the file to show you the popup info tooltip and your machine is useless until the on-access scan times out (45 seconds in my environment, and no, users can't change the time or the behavior.)

I can change the process priority manually with ProcessExplorer (not Task Manager, which is crippled in this respect), but I shouldn't have to. Further, during startup when Windows is thrashing the disk launching services and Avast is blocking the user from doing anything as a result, you can't launch ProcessExplorer (or anything else, really) until it all settles down. I even have some hope that reducing the process priority will allow me to start using the machine (launching apps, etc.) faster than things currently operate during startup.

Hope that clarifies things!

Best,
tribble