Author Topic: "Saving package, this may take a while..." Question for Vlk, Igor.  (Read 7288 times)

0 Members and 1 Guest are viewing this topic.

Offline Vladimyr

  • Avast Evangelist
  • Super Poster
  • ***
  • Posts: 1639
  • Super(massive black hole) Poster
Hi.  :)

Someting Vlk said here:  http://forum.avast.com/index.php?topic=31426.msg261982#msg261982  specifically:
Unfortunately, this feature will not work under Vista until Avast 5. There's no easy way to fix this (in avast 4.x, the updater and all its GUI run in the context of the service, which is not allowed to draw anything under Vista).
got me thinking about how/whether the auto updating was likely to change as Avast! is further developed.

For some time I've been perplexed by the long apparent pauses between downloading increments during which the message:
"Saving package, this may take a while..." ('Avast_2-15.jpg')
is displayed when automatic updating on a older PC with Windows 9X that's not been used for a week or two. In these cases it's typically faster to download (2 minutes) and run (8 minutes) the latest VpsUpd.exe than to wait 20 to 40 minutes (see 'Avast_update.jpg') for the auto updater, which seems to spend at least 70% if its time "Saving package"(s).

Now,the intriguing bit. My assessment is that the amount of time taken, and the percentage of that time displaying "Saving package, this may take a while..." seems to be more dependent on RAM than CPU speed.
E.G. the example in 'Avast_update.jpg' (27 minutes) is for a 98SE machine with 200mhz processor and 90MB RAM, whereas another 95OSR2 machine with 200mhz processor but only 48MB RAM took about 45 minutes for the same update.

1. Why does it take such a relatively long time to save the small incremental packages?
2. Is this apparent RAM-related difference in speed consistent with the resource demands of the updater or are other factors likely to be causing the time difference?
3. I don't imagine that it would be a high priority  ;D but is the auto updater in the next version of Avast likely to be more or less cumbersome on such "ancient" hardware as this?

 


« Last Edit: November 15, 2007, 06:59:20 AM by Vladimyr »
There is a way that seems right to a man,
       but in the end it leads to death
.” - Proverbs 16:25

kubecj

  • Guest
Re: "Saving package, this may take a while..." Question for Vlk, Igor.
« Reply #1 on: November 15, 2007, 11:24:02 AM »
We will probably not change it for an ancient hardware.

The "saving" is quite straghtforward. It decompresses two buffers, creates the third, performs diff and then compresses the third buffer again. I can guess that one diff step of VPS may take about 40-50MB of ram. That's probably why it is crawling on your machine.

Since this was made with "better safe than sorry" approach, it does the mentioned operation for each diff step (which may sound stupid because it compresses/uncompresses the very same file again and again).

Also, the whole updating is optimized regarding to sizes of downloaded files.
« Last Edit: November 15, 2007, 11:30:27 AM by kubecj »

Offline Vladimyr

  • Avast Evangelist
  • Super Poster
  • ***
  • Posts: 1639
  • Super(massive black hole) Poster
Re: "Saving package, this may take a while..." Question for Vlk, Igor.
« Reply #2 on: November 16, 2007, 04:01:35 AM »
Thanks kubecj, your explanation makes sense.  :)

Actually I "misunderremembered" (sorry Mr President) when I said one PC had 90MB, it's 80MB.
Clearly, if I want to even consider using the Avast auto-updater without the long delays and "pain" of swap-file paging on the PC with 48MB RAM , I really should go for the "radical" upgrade, take out the original 2 x 8MB 72pin EDO RAM modules that came installed in the machine back in 1997, and replace them with the 2 x 32MB ones that have been sitting on my desk for the last 6 years!  :-[ (Wow! a whole 96MB. Just think how fast FF1.5 would load then!) ;D

I don't expect that any Avast changes will be focused on "ancient" hardware and/or OS. It's very good that Avast still works so well on these machines. Perhaps just a link to the 'VpsUpd.exe' download could be added to the "About" box. I wonder if many Avast users forget this option?
There is a way that seems right to a man,
       but in the end it leads to death
.” - Proverbs 16:25

kubecj

  • Guest
Re: "Saving package, this may take a while..." Question for Vlk, Igor.
« Reply #3 on: November 16, 2007, 09:57:35 AM »
You know, bytes cost, so the less number of users download 9megs instead of few diff kilos, the better.

Offline Vlk

  • Avast CEO
  • Serious Graphoman
  • *
  • Posts: 11658
  • Please don't send me IM's. Email only. Thx.
    • ALWIL Software
Re: "Saving package, this may take a while..." Question for Vlk, Igor.
« Reply #4 on: November 16, 2007, 10:10:15 AM »
As far as I know, the speed of the "saving package" step (or slowness thereof) has always been caused by the digital signature processing.

That is, after each file is downloaded, the updater verifies its digital signature. And this is a CPU intensive thing.
If at first you don't succeed, then skydiving's not for you.

Offline Vladimyr

  • Avast Evangelist
  • Super Poster
  • ***
  • Posts: 1639
  • Super(massive black hole) Poster
Re: "Saving package, this may take a while..." Question for Vlk, Igor.
« Reply #5 on: November 22, 2007, 02:58:50 AM »
Thanks guys!   :)

You know, bytes cost, so the less number of users download 9megs instead of few diff kilos, the better.
...a valid point.
There is a way that seems right to a man,
       but in the end it leads to death
.” - Proverbs 16:25

RJARRRPCGP

  • Guest
Re: "Saving package, this may take a while..." Question for Vlk, Igor.
« Reply #6 on: November 28, 2007, 01:43:34 AM »
It may be related to your ethernet card or modem.

Offline Vladimyr

  • Avast Evangelist
  • Super Poster
  • ***
  • Posts: 1639
  • Super(massive black hole) Poster
Re: "Saving package, this may take a while..." Question for Vlk, Igor.
« Reply #7 on: November 28, 2007, 02:28:48 AM »
It may be related to your ethernet card or modem.
In what way?
There is a way that seems right to a man,
       but in the end it leads to death
.” - Proverbs 16:25

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89015
  • No support PMs thanks
Re: "Saving package, this may take a while..." Question for Vlk, Igor.
« Reply #8 on: November 28, 2007, 02:40:31 AM »
It may be related to your ethernet card or modem.

I think kubecj and Vlk explained the most likely scenario for this in their posts, a ethernet card or modem are unlikely to be the bottleneck in this case, especially when we are talking about small incremental updates.
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.3.6108 (build 24.3.8975.762) UI 1.0.801/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security