Avast WEBforum

Business Products => Archive (Legacy) => Avast Business => Avast Distributed Network Manager => Topic started by: AMG on June 21, 2006, 05:29:23 PM

Title: How do I configure aswServ.exe (on managed clients) to use "Normal" priority?
Post by: AMG on June 21, 2006, 05:29:23 PM
How do I configure aswServ.exe (on managed clients) to use "Normal" process priority?  It defaults to "High" and this is causing interference with our users...they're systems frequently stall for a few seconds while aswServ.exe is busy with high CPU utilization...
Title: Re: How do I configure aswServ.exe (on managed clients) to use "Normal" priority?
Post by: igor on June 21, 2006, 05:32:06 PM
I don't think it's possible.
Title: Re: How do I configure aswServ.exe (on managed clients) to use "Normal" priority
Post by: AMG on June 21, 2006, 05:33:31 PM
Anyone from Alwil care to make an official statement on this...?
Title: Re: How do I configure aswServ.exe (on managed clients) to use "Normal" priority?
Post by: Vlk on June 21, 2006, 05:54:00 PM
What Igor said can be considered official.
The thing is, making the process priority lower is not a cure to CPU spikes. Even a process with low priority can easily take 100% CPU and all other programs will starve.

Windows is not a realtime OS, process priorities work just like hints.

It would be better to focus on what's causing the spikes. Is it the auto-update?
Title: Re: How do I configure aswServ.exe (on managed clients) to use "Normal" priority
Post by: AMG on June 21, 2006, 06:02:46 PM
The disabling of the auto update push/pull configuration has eliminated the most dramatic intereference (1-2 minutes of aswServ.exe taking complete control of systems).

I presume it's just routine heavily file system I/O that's causing this now...tends to happen when working with visual studio projects.

As developers I'm sure you can appreciate that having visual studio freeze on you for a few seconds (on very fast machines)...and causing itunes to stop playing music...can be a major interference.  The developers go to task manager and see "aswServ.exe" hogging the CPU...and with it's process priority being high...it overrules everything else.

Is it technically not possible for me to modify the process priority, or, is it just a case of you folks not wanting to support doing it?  Sorry if I seem like a pain on this, but, I need to make avast work for us without the interference it's causing now...
Title: Re: How do I configure aswServ.exe (on managed clients) to use "Normal" priority?
Post by: Vlk on June 21, 2006, 06:20:46 PM
1. In the current version, there's no way to tell avast to NOT make the process priority High. We can make this configurable in the next version, but it can't be done atm.

2. I'm still a bit surprised that you're seeing so dramatic symptoms (iTunes stopping for a while etc). What is the sensitivity of the Standard Shield provider? Also, isn't there a file on your systems that is being accessed (namely, written) periodically? This may cause big overheads as avast would be trying to rescan it after each and every change (this sometimes happens e.g. with some log files; we try to filter those out from scanning, but sometimes, it's not possible).

What is the "Scanned count" value of the Standard Shield provider on your typical machine? Does it grow fast?

Thanks
Vlk
Title: Re: How do I configure aswServ.exe (on managed clients) to use "Normal" priority
Post by: AMG on June 21, 2006, 06:57:43 PM
1. In the current version, there's no way to tell avast to NOT make the process priority High. We can make this configurable in the next version, but it can't be done atm.

2. I'm still a bit surprised that you're seeing so dramatic symptoms (iTunes stopping for a while etc). What is the sensitivity of the Standard Shield provider? Also, isn't there a file on your systems that is being accessed (namely, written) periodically? This may cause big overheads as avast would be trying to rescan it after each and every change (this sometimes happens e.g. with some log files; we try to filter those out from scanning, but sometimes, it's not possible).

What is the "Scanned count" value of the Standard Shield provider on your typical machine? Does it grow fast?

Thanks
Vlk

1. Having that as a feature in a future version would be terriffic!

2. The standard shield has been configured with the "normal" option.  I have default exculsions configured with the addition of the "hiberfil.sys".  Otherwise, it's a stock config.  Yep, we have many files that are open and get modified rather frequently...as part of working with visual studio.  I hate to exclude such files, but, that may be the way to go.  As an experiment, I'll give it a try and post my results.
Title: Re: How do I configure aswServ.exe (on managed clients) to use "Normal" priority
Post by: AMG on June 21, 2006, 07:01:00 PM
I went to add a drive-letter exclusion for the drives containing projects...and I found I had already configured this in an attempt to isolate the behavior.

If you can add a process priority method to a future version (or if there's a semi-hack way I can do it now), that would be awesome.

Thanks for all your help!
Title: Re: How do I configure aswServ.exe (on managed clients) to use "Normal" priority?
Post by: Vlk on June 21, 2006, 07:05:47 PM
Unfortunately, I don't think there's a way to do it in the current version (neither regular nor hack). But there'll be an INI option for this in the next build.
Title: Re: How do I configure aswServ.exe (on managed clients) to use "Normal" priority
Post by: AMG on June 21, 2006, 07:13:59 PM
That's awesome and I couldn't ask for anything more.

A very sincere thank you!!!   :D :D :D
Title: Re: How do I configure aswServ.exe (on managed clients) to use "Normal" priority
Post by: AMG on June 27, 2006, 01:12:25 AM
A bit of follow-up information to help with the cause...I can't fathom I'll be the only one that runs into this...but if I am...I'd still appreciate the feature of being able to set the priority from an INI file, registry setting, check box in the ADNM, etc..as you'll read below, it makes a dramatic difference.

First, if you're experiencing this issue there is a simple workaround...which unfortunately doesn't hold between system restart.  Use the freeware program from Sysinternals called "Process Explorer" to reduce the priority of the "aswServ.exe" process to "Normal".  As I suspected, this completely eliminates the problem we were experiencing.  When any process on an NT-based system has to do a lot of work...and it has a higher priority than everything else...it will take control of the machine...I'm really surprised no else has run into this...

Second, this situation is most profound when either of the following is happening:

- Large file (>20MB) being transferred (regardless of transport method [i.e. USB, Firewire, WLAN, Ethernet, etc.)
- Avast managed client is updating the VPS defs., or the program itself

I look forward to having the process priority being an option in the next version of the managed client.  Until then, I have at least found a workaround we can live with temporarily...  ;)
Title: Re: How do I configure aswServ.exe (on managed clients) to use "Normal" priority?
Post by: Vlk on June 29, 2006, 10:54:04 AM
Hi AMG,

the new version (4.7.566) is out, and it brings the following two enhancements (related to the subject of this post):


Thanks
Vlk
Title: Re: How do I configure aswServ.exe (on managed clients) to use "Normal" priority?
Post by: Lisandro on June 29, 2006, 01:56:41 PM
the updater is now executed with lower priority; that should prevent the problems with non-preemptible background updating process
I can imagine that this is true to Home/Pro versions too...  8)

as promised, you can now tell aswServ.exe to not elevate its priority. This is done by using the following INI setting

[AAVM]
ProcessPriorityBoost=0
Can this be used to Home/Pro avast4.ini file too?
Which are the Priority parameters, I mean, what means 0 or 1 here?
Thanks.
Title: Re: How do I configure aswServ.exe (on managed clients) to use "Normal" priority
Post by: AMG on June 29, 2006, 03:32:55 PM
Hi AMG,

the new version (4.7.566) is out, and it brings the following two enhancements (related to the subject of this post):

  • the updater is now executed with lower priority; that should prevent the problems with non-preemptible background updating process
  • as promised, you can now tell aswServ.exe to not elevate its priority. This is done by using the following INI setting

    [AAVM]
    ProcessPriorityBoost=0


    You can also centrally force this setting to the managed clients by using the ADNM console -- just copy the above two lines to the "Custom INI Settings" box in the properties of a computer group.

Thanks
Vlk

I say this with the utmost sincerity...the rapidity and quality of implementation of this request are extremely impressive.  Our company will continue to use your products as long as I'm still making decisions!  ;)
Title: Re: How do I configure aswServ.exe (on managed clients) to use "Normal" priority?
Post by: Vlk on June 29, 2006, 05:05:18 PM
Thanks for the positive feedback (now, I'm blushing...  :))

BTW any chance of creating an avast case study in your company? We're currently in the process of preparing some... ;)


Thanks
Vlk
Title: Re: How do I configure aswServ.exe (on managed clients) to use "Normal" priority
Post by: AMG on June 29, 2006, 05:39:40 PM
Of course, I'd be happy too.  :)  Feel free to contact me directly via e-mail (I'll make sure the e-mail in my forum profile is current) to discuss further.
Title: Re: How do I configure aswServ.exe (on managed clients) to use "Normal" priority?
Post by: Vlk on June 29, 2006, 05:55:58 PM
Please drop me an email. To start, I'd like to know how large is the network you manage, and in which area does your business operate.

Thanks
Vlk