Author Topic: Avast free daily fragmentation  (Read 6532 times)

0 Members and 1 Guest are viewing this topic.

crow

  • Guest
Avast free daily fragmentation
« on: May 03, 2012, 08:03:05 PM »
Hi
I have found out that avast free, gets fragmented[see attached log] every day as per the following description:Fragmentation by size 52%, by count:1%, fragmented files:9 fragmented directories: 3
Avast is defragmented every day. I`ve checked with another machine I have,and I get about the same diagnostic.  Any reason for this high fragmentation?
Thanks
« Last Edit: May 03, 2012, 09:05:49 PM by crow »

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11849
    • AVAST Software
Re: Avast free daily fragmentation
« Reply #1 on: May 03, 2012, 09:44:47 PM »
Well, every day new virus definitions are downloaded... so that might be the case. Or, it might be some logs that are appended with new information (e.g. about the new downloaded updates).
Since the list of files in your report shows only files with 1 fragment (i.e. defragmented), hard to say.

Jack 1000

  • Guest
Re: Avast free daily fragmentation
« Reply #2 on: May 03, 2012, 11:05:51 PM »
Interesting that this was brought up about fragmentation.  A little Avast history on my Windows XP system:

When I had Avast 6, and ran Windows Disk Defragmentor in Safe Mode, there would be like one or two files that would remain fragmented.  "ie, some files could not be defraged. See report for details."

Than there was an update to Avast 6, and I could defrag perfectly every time.

Since the update to version 7, I am back to where I used to be where there are a couple files that don't defragment.

Jack

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67194
Re: Avast free daily fragmentation
« Reply #3 on: May 04, 2012, 12:28:00 AM »
Use boot time defragmentation for files in use.
PuranDefrag has this feature.
It's not an error of avast! This is how Windows work.
The best things in life are free.

Dch48

  • Guest
Re: Avast free daily fragmentation
« Reply #4 on: May 04, 2012, 12:58:20 AM »
I've been wondering lately if Puran Defrag is still in active development. There hasn't been an update in ages (not that it needs one but still). I sent them an email and got no response.

crow

  • Guest
Re: Avast free daily fragmentation
« Reply #5 on: May 04, 2012, 05:45:49 AM »
Use boot time defragmentation for files in use.
PuranDefrag has this feature.
It's not an error of avast! This is how Windows work.
Thanks for your reply Tech, that does not explain this morning check by WINCONTIG this time: one time after avast manual update and second time after wincontig`s Avast defragmentation, if it would not be able to defragment because as you said, files in use case, wincontig would not have shown "not fragmented' window after fragmentation recheck , please see the attached wincontig`s logs. Thanks again.

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67194
Re: Avast free daily fragmentation
« Reply #6 on: May 04, 2012, 03:28:25 PM »
Well, if it is not a trouble, go ahead and defragment avast each time.
Of course, seems overkilling. Defragmentation is not a panacea.
The best things in life are free.

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89012
  • No support PMs thanks
Re: Avast free daily fragmentation
« Reply #7 on: May 04, 2012, 04:17:32 PM »
This level of fragmentation is a bit of a non-entity, the max file fragments in your image is 6 and that really isn't big by any stretch of the imagination.

This only looks like a big deal because you are only looking at the avast folder and these files would change daily so fragmentation is always going to be there.

Defragging just my firewall program folder and avast doest even feature in the next 10, nor does it appear the next 10 after selectively defragging those specific folders.

So you shouldn't really take these things in isolation, defrag today and you are likely to see the same fragmentation tomorrow as that is the nature of volatile data. This in no way impacts on my system runs just fine, if I defragged them, tomorrow it is likely to be the same and overall my c:\ drive has 3% fragmentation on 225MB, this is minuscule.

Looking at it in context of hard disk fragmentation and you will see there are bigger fish to fry, avast! doesn't have any file feature in the top ten fragmented files. My firewall takes eight of the top ten (first 6 and last 2) and my mailwasher anti-spam takes one and thunderbird the other one.
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

Offline MikeBCda

  • Avast Evangelist
  • Super Poster
  • ***
  • Posts: 2247
Re: Avast free daily fragmentation
« Reply #8 on: May 04, 2012, 08:00:21 PM »
I'll generally temporarily disable avast's self-protection before defragging, to ensure all avast files are included.  Probably no longer necessary, since I now defrag with Puran's boot-time thing, but I'd gotten into the habit while still using Win's defrag and of course old habits are hard to break.  Probably no harm done, and with the re-design of the avast UI it's more convenient to re-enable self-protection now (plus, of course, there's now the visible reminder which was a long overdue addition).
Intel Atom D2700, 2 gig RAM, Win 7 x64 SP1 & IE-11, Firefox 51.0
(default). 320 gig HD, 15Mb DSL, Win firewall, Avast 12.3.2280 free, SpywareBlaster, MBAM Prem., Crypto-Prevent

Jack 1000

  • Guest
Re: Avast free daily fragmentation
« Reply #9 on: May 04, 2012, 08:15:14 PM »
I'll generally temporarily disable avast's self-protection before defragging, to ensure all avast files are included.  Probably no longer necessary, since I now defrag with Puran's boot-time thing, but I'd gotten into the habit while still using Win's defrag and of course old habits are hard to break.  Probably no harm done, and with the re-design of the avast UI it's more convenient to re-enable self-protection now (plus, of course, there's now the visible reminder which was a long overdue addition).

I defrag as an Amin in Safe Mode.  Prevents stuff from possibly kicking in during the process.

Jack

crow

  • Guest
Re: Avast free daily fragmentation
« Reply #10 on: May 04, 2012, 08:27:25 PM »
I posted this question as I thought may be something is not working as it should and bring it to the attention of Avast team, but I understand now that it is not something irregular, so I`m of the case then.
Thanks for the replies.

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89012
  • No support PMs thanks
Re: Avast free daily fragmentation
« Reply #11 on: May 04, 2012, 10:43:04 PM »
Yes, nothing irregular; avast has no control of how the files are placed on disk, that is down to the operating system. It may well dictate the folder location, but that in itself is an artificial location, it isn't physical as a folder could be a grouping of files spread all over a drive partition.

When a file is created or modified it is written to disk and frequently it will be fragmented at the time of creation as the OS doesn't look for a free space on the hard disk big enough for the whole file. When modified it is possible that the size of the modification may exceed the size of any free space directly beside the existing file, so it will be written to a different cluster.

The amount of fragmentation also depends on the cluster size 4KB is a usual default though it can be as small as 512bytes or as large as 32KB. The bigger the cluster size tends to be the less fragmentation (usually in smaller files) but that then leads to more wasted space, e.g. a file that is only 1KB being placed in a cluster that is 32KB = 31KB wasted space. So the sweet spot is around the default 4KB.
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

crow

  • Guest
Re: Avast free daily fragmentation
« Reply #12 on: May 04, 2012, 10:52:18 PM »
Yes, nothing irregular; avast has no control of how the files are placed on disk, that is down to the operating system. It may well dictate the folder location, but that in itself is an artificial location, it isn't physical as a folder could be a grouping of files spread all over a drive partition.

When a file is created or modified it is written to disk and frequently it will be fragmented at the time of creation as the OS doesn't look for a free space on the hard disk big enough for the whole file. When modified it is possible that the size of the modification may exceed the size of any free space directly beside the existing file, so it will be written to a different cluster.

The amount of fragmentation also depends on the cluster size 4KB is a usual default though it can be as small as 512bytes or as large as 32KB. The bigger the cluster size tends to be the less fragmentation (usually in smaller files) but that then leads to more wasted space, e.g. a file that is only 1KB being placed in a cluster that is 32KB = 31KB wasted space. So the sweet spot is around the default 4KB.
Thank you for the explanation DavidR 8)

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89012
  • No support PMs thanks
Re: Avast free daily fragmentation
« Reply #13 on: May 04, 2012, 11:07:05 PM »
You're welcome.
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