Author Topic: Slow System Shutdown  (Read 4715 times)

0 Members and 1 Guest are viewing this topic.

Offline Mr. Consumer

  • Full Member
  • ***
  • Posts: 134
Slow System Shutdown
« on: May 16, 2022, 12:23:28 PM »
On my system and a couple of others, Avast has the most impact on system shutdown speed. It takes the longest for the PC to shutdown with Avast than any other AV products.
I have "Verbose or Highly Detailed Status Messages" enabled on Windows, which tries to shows what services are being shutdown during the shutdown process.
There are a couple of ways to enable it. You can try this:
"reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "VerboseStatus" /t REG_DWORD /d "1" /f"
For other AV products that I have tried, it doesn't show any AV related services being shutting, but for Avast Free it shows two like the images below. Avast spends the most time on the second one, "aswbIDSAgent".
If I remember correctly, a firewall related service is also shown if the Firewall is installed.
Avast should try to improve this.

Windows 11 Pro latest, Avast Free latest, No other security software is installed.
« Last Edit: May 16, 2022, 12:25:35 PM by Mr. Consumer »

Offline Asyn

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 76032
    • >>>  Avast Forum - Deutschsprachiger Bereich  <<<
Re: Slow System Shutdown
« Reply #1 on: May 16, 2022, 12:27:49 PM »
Hi, if you're willing to help, see: https://forum.avast.com/index.php?topic=237567.0
W8.1 [x64] - Avast Free AV 23.3.8047.BC [UI.757] - Firefox ESR 102.9 [NS/uBO/PB] - Thunderbird 102.9.1
Avast-Tools: Secure Browser 109.0 - Cleanup 23.1 - SecureLine 5.18 - DriverUpdater 23.1 - CCleaner 6.01
Avast Wissenswertes (Downloads, Anleitungen & Infos): https://forum.avast.com/index.php?topic=60523.0

Offline Mr. Consumer

  • Full Member
  • ***
  • Posts: 134
Re: Slow System Shutdown
« Reply #2 on: May 16, 2022, 12:36:43 PM »
Hi, if you're willing to help, see: https://forum.avast.com/index.php?topic=237567.0
This won't help, unfortunately. This is an internal Avast related thing that's true for all system and pretty sure it's already known to the Avast dev team. Though, I don't know if they have enabled this verbose status logging to check if the services are being shown there. The devs can try to improve this and performance log from users like me won't be necessary/won't help, I think.

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89343
  • No support PMs thanks
Re: Slow System Shutdown
« Reply #3 on: May 16, 2022, 01:10:26 PM »
Hi, if you're willing to help, see: https://forum.avast.com/index.php?topic=237567.0
This won't help, unfortunately. This is an internal Avast related thing that's true for all system and pretty sure it's already known to the Avast dev team. Though, I don't know if they have enabled this verbose status logging to check if the services are being shown there. The devs can try to improve this and performance log from users like me won't be necessary/won't help, I think.

I know one thing for sure, if you aren't prepared to help, how are they to get the information (relating to your system) that you think they must have.

The topic link given by Asyn, isn't just enabling verbose mode logging (not a default option), but also you need to replicate the issue again and then send the information.

Quote from: extract from link given
- download the configuration file from http://public.avast.com/~nix/users/wpr/avast-profile.wprp to some local folder (this step is not necessary on newest installation of Avast Antivirus)
- launch the elevated command line (cmd.exe as Administrator)
- go to the folder with downloaded file avast-profile.wprp
- start recording via command wpr.exe -start avast-profile.wprp (or with newest Avast Antivirus: wpr.exe -start "c:\ProgramData\Avast Software\Avast\profile.wprp")

- reproduce the performance issue (e.g. if this is happening at the very same time, please "just" wait about a minute or two)
- stop recording via command wpr -stop avast-log.etl
- ZIP the log file avast-log.etl and share it via some cloud storage (google-drive, dropbox, one-drive) or avast FTP sever
- provide a link to the zipped log file via avast forum

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

Offline Mr. Consumer

  • Full Member
  • ***
  • Posts: 134
Re: Slow System Shutdown
« Reply #4 on: May 16, 2022, 02:54:26 PM »
Hi, if you're willing to help, see: https://forum.avast.com/index.php?topic=237567.0
This won't help, unfortunately. This is an internal Avast related thing that's true for all system and pretty sure it's already known to the Avast dev team. Though, I don't know if they have enabled this verbose status logging to check if the services are being shown there. The devs can try to improve this and performance log from users like me won't be necessary/won't help, I think.

I know one thing for sure, if you aren't prepared to help, how are they to get the information (relating to your system) that you think they must have.

The topic link given by Asyn, isn't just enabling verbose mode logging (not a default option), but also you need to replicate the issue again and then send the information.

Quote from: extract from link given
- download the configuration file from http://public.avast.com/~nix/users/wpr/avast-profile.wprp to some local folder (this step is not necessary on newest installation of Avast Antivirus)
- launch the elevated command line (cmd.exe as Administrator)
- go to the folder with downloaded file avast-profile.wprp
- start recording via command wpr.exe -start avast-profile.wprp (or with newest Avast Antivirus: wpr.exe -start "c:\ProgramData\Avast Software\Avast\profile.wprp")

- reproduce the performance issue (e.g. if this is happening at the very same time, please "just" wait about a minute or two)
- stop recording via command wpr -stop avast-log.etl
- ZIP the log file avast-log.etl and share it via some cloud storage (google-drive, dropbox, one-drive) or avast FTP sever
- provide a link to the zipped log file via avast forum

What I meant is, my system's performance log should not be necessary because this slow shutdown issue is not exclusive to my system. It's true for any system where Avast is installed. Enabling Verbose logging doesn't add any delay. It's meant to show what services are being shutting down during the shutdown process. Avast has always been slow at this, so I enabled verbose logging to check if it can detect anything related to Avast and turns out it can.
So yeah, Avast devs should try to speed up the process of shutting down Avast services to make system shutdown faster for everyone. And that's what I asked. Things like this might not be a priority of the development team but I hope they do something about it.
« Last Edit: May 16, 2022, 03:07:29 PM by Mr. Consumer »

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89343
  • No support PMs thanks
Re: Slow System Shutdown
« Reply #5 on: May 16, 2022, 03:59:15 PM »
The data is on your system, without collecting it and posting it as requested how are they to know and how are they to speed things up.

I don't see any undue delay on a system shutdown or restart.  That said with a laptop I don't do frequent shutdowns/restarts.

It's your system and you want help, Asyn has given you the information required to help the developers.  You choose.
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

Offline Mr. Consumer

  • Full Member
  • ***
  • Posts: 134
Re: Slow System Shutdown
« Reply #6 on: May 16, 2022, 04:17:43 PM »
Any dev working on things related to this would know what I'm talking about.
But anyway, this slowdown is related to system shutdown speed. So how am I gonna reproduce this and create a performance log? If I start performance recording and try to shutdown my system, the logging process would also be killed, I believe. So it doesn't seem like there's a way to record performance in this scenario.

Offline bob3160

  • Avast Überevangelist
  • Probably Bot
  • *****
  • Posts: 48655
  • 64 Years of Happiness
    • bob3160 Protecting Yourself, Your Computer and, Your Identity
Re: Slow System Shutdown
« Reply #7 on: May 16, 2022, 04:44:14 PM »
Any dev working on things related to this would know what I'm talking about.
But anyway, this slowdown is related to system shutdown speed. So how am I gonna reproduce this and create a performance log? If I start performance recording and try to shutdown my system, the logging process would also be killed, I believe. So it doesn't seem like there's a way to record performance in this scenario.
Sounds like you're not as willing to help as you're willing to complain.
The type of system you have also has a bearing on how quickly your system starts and stops.
My old windows ten computer still struggles to start and takes a while to shut down. (I need patience)
The newer computers with more ram, faster processors and SSD drives don't have that problem.

Free Security Seminar: https://bit.ly/bobg2023  -  Important: http://www.organdonor.gov/ -- My Web Site: http://bob3160.strikingly.com/ - Win 11 Pro v24H2 64bit, 32 Gig Ram, 1TB SSD, Avast Free 24.4.6112, How to Successfully Install Avast http://goo.gl/VLXdeRepair & Clean Install https://goo.gl/t7aJGq -- My Online Activity https://bit.ly/BobGInternet

Offline Mr. Consumer

  • Full Member
  • ***
  • Posts: 134
Re: Slow System Shutdown
« Reply #8 on: May 16, 2022, 05:07:26 PM »
Any dev working on things related to this would know what I'm talking about.
But anyway, this slowdown is related to system shutdown speed. So how am I gonna reproduce this and create a performance log? If I start performance recording and try to shutdown my system, the logging process would also be killed, I believe. So it doesn't seem like there's a way to record performance in this scenario.
Sounds like you're not as willing to help as you're willing to complain.
The type of system you have also has a bearing on how quickly your system starts and stops.
My old windows ten computer still struggles to start and takes a while to shut down. (I need patience)
The newer computers with more ram, faster processors and SSD drives don't have that problem.
Check the last paragraph of my last reply. Looks like I can't help even if I want to. The performance recording feature will be killed if I shutdown my system. If there's any alternative method then tell me. If there's isn't any then forward this thread to the developers if possible.

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89343
  • No support PMs thanks
Re: Slow System Shutdown
« Reply #9 on: May 16, 2022, 07:04:52 PM »
If you don't try it you will never know!
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

Offline Mr. Consumer

  • Full Member
  • ***
  • Posts: 134
Re: Slow System Shutdown
« Reply #10 on: May 16, 2022, 09:39:46 PM »
If you don't try it you will never know!
I just tried it and like I said, it won't work. After starting the logging process if I shutdown/restart the system, then "avast-log.etl" file is not created. It's only created if I manually enter the stop code described in the link shared by Asyn. But since that's not possible while the system is being shutdown, there's no way to record a performance log.
So, only the developers can try to improve the stopping speed of Avast processes after system shutdown/restart is initiated. Currently, based on my own and some other people's testing, with Avast it takes the longest time for the system to shutdown compared to other popular AV products. An improvement in this area would be appreciated.

Offline ivanhulkmcabrido

  • Newbie
  • *
  • Posts: 1
Re: Slow System Shutdown
« Reply #11 on: May 22, 2023, 11:09:10 AM »
Avast is still making the shutdown longer for my PC.

Offline Mr. Consumer

  • Full Member
  • ***
  • Posts: 134
Re: Slow System Shutdown
« Reply #12 on: May 22, 2023, 05:58:59 PM »
Avast is still making the shutdown longer for my PC.
I see that my thread is just over 1 year old now. Yeah, it's still the same. The slowest among top products at this.

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89343
  • No support PMs thanks
Re: Slow System Shutdown
« Reply #13 on: May 22, 2023, 07:22:18 PM »
Avast is still making the shutdown longer for my PC.
I see that my thread is just over 1 year old now. Yeah, it's still the same. The slowest among top products at this.

If that were the case then this forum would be on fire with it and I'm not seeing that.

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

Offline Mr. Consumer

  • Full Member
  • ***
  • Posts: 134
Re: Slow System Shutdown
« Reply #14 on: May 22, 2023, 09:44:24 PM »
Avast is still making the shutdown longer for my PC.
I see that my thread is just over 1 year old now. Yeah, it's still the same. The slowest among top products at this.

If that were the case then this forum would be on fire with it and I'm not seeing that.
It's not that with other products it's 5 seconds but with Avast it's 30 seconds.
For comparison, with Microsoft Defender, my PC on average shutdown in 3 seconds. With a few other products like Norton or Kaspersky or ESET they add like 1 or 2 seconds more to that. So 5 seconds at max on my system on average but with Avast it often goes to 10 seconds. In some odd cases even more.
So not everyone will notice that. I think I saw you saying you have been using Avast for a long time, like more than 15 years. So you're used to the time it takes for Avast, the same will be true for other long time Avast users. I as a user who has real world experience with multiple top AV products out there can notice these differences. I'm sure Avast devs are aware of it, but they can't just fix it overnight, otherwise they would because Avast in general tries their best to fix issues quickly. My post was just a reminder that this issue exist, and hopefully they'll be able to improve it.