Why redownloading e...
 
Notifications
Clear all

We appreciate the contributions many of you have been able to make towards repairing the storm damage and keeping a roof over our heads. With your help we’ve been able to complete much of the critical work. There is still work to be done to secure the house and your continued support will be a huge help.

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

Why redownloading entire driver file

6 Posts
3 Users
0 Reactions
451 Views
(@chyro)
Active Member Registered
Joined: 1 month ago
Posts: 3
Topic starter   [#1011]

Hi Folks,

Glenn, thanks for a wonderful free product that is so convenient to use and makes finding and installing drivers so much easier...

However I do have one gripe:-

Can anyone tell me why everytime there are new drivers files to download I have to redownload about 40 GB worth of them. It seems like I have to redownload the entire driver collection each time, which taxes my badwidth and takes time on my slow connection. With the wonder of modern computing, isn't it possible to just incrementally download the new drivers rather than everything again ?

Is there any way around this or a fix ?

Thanks in advance



   
Quote
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 2117
 

Posted by: @chyro
↑

Hi Folks,

Glenn, thanks for a wonderful free product that is so convenient to use and makes finding and installing drivers so much easier...

However I do have one gripe:-

Can anyone tell me why everytime there are new drivers files to download I have to redownload about 40 GB worth of them. It seems like I have to redownload the entire driver collection each time, which taxes my badwidth and takes time on my slow connection. With the wonder of modern computing, isn't it possible to just incrementally download the new drivers rather than everything again ?

Is there any way around this or a fix ?

Thanks in advance

I'm open to ideas on how to improve this. For the record the weekly updated driver packs seem to average about 5GB. If you don't update weekly then that could get bigger.

 



   
ReplyQuote
(@chyro)
Active Member Registered
Joined: 1 month ago
Posts: 3
Topic starter  

Hi Glenn,

Thanks for your quick reply. I'm not sure I know enough about the internal workings of SDIO to give you a suggestion on how to implement the improvement. So are you saying that the five gigabytes every week are entirely newly released drivers ? in which case the entire driver folder would be incrementing by 5GB every week and currently be much bigger than it is.

I just looked at my driver's folder and it's currently at about 80 gigabytes. I've now set it updating and it's downloading 10 gigabytes and most of the 7z files appear to be the same name just with a different number at the end, so it feels like it's downloading a lot of drivers that it has downloaded in the past.

Will it be more efficient to have absolutely no duplication of what is downloaded and only download the very latest, new drivers that you don't have on your system already ? I understand this maybe require a change in the file / folder structure and or delivery method.

Would I be wrong in saying that every 7z file contains the driver's specific for that hardware category (E.g. Media-Realtek) and with each update new drivers for that category are packed into the file and compressed with the old ones, and that entire new file has to be downloaded afresh by users ?

Regards, Phil


This post was modified 1 month ago by Chyro

   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 2117
 

Posted by: @chyro
↑

So are you saying that the five gigabytes every week are entirely newly released drivers ?

No, a mixture of new (to SDIO) drivers and updates to existing drivers.

Posted by: @chyro
↑

Will it be more efficient to have absolutely no duplication of what is downloaded and only download the very latest

Possibly, that would involve a whole new approach, essentially building a new system involving thousands of zip files.

Posted by: @chyro
↑

Would I be wrong in saying that every 7z file contains the driver's specific for that hardware category (E.g. Media-Realtek) and with each update new drivers for that category are packed into the file and compressed with the old ones, and that entire new file has to be downloaded afresh by users ?

That's the general plan I'm working towards.

This subject comes up on a regular basis and it seems to boil down to granularity of the driver packs. There would be (I think) less duplication of downloads if the individual zip files were smaller but that would obviously mean many more zip files.  I recently introduced a cap of around 1GB (the exact size is determined by the contents). So far everything fits into that so I could conceivably reduce that some more.

 

 

 



   
ReplyQuote
(@chyro)
Active Member Registered
Joined: 1 month ago
Posts: 3
Topic starter  

I see. Would it be possible to bundle the thousands of zip files into cab files for example, just to reduce complexity whilst improving granularity.

I think individual driver files could still be manipuated within each cab file category using AI ?

Yes I have had a look at the drivers folder and most of the 7z files are smaller than 1 GB, but some are still larger.

I understand you are probably contrained by the size of the contents of each, and dealing with 122 categorized driver zip files is easier than thousands of individual driver zip files... unless you could somehow automate the update and driver replacement replacement process, who knows, maybe a Grok bot(s) with it's own virtual PC could help you ?

I don't know, I am sure you get lots of wellwishing people like me giving advice, and not much else, but if I can help in any way, please let me know... I don't mind lending a hand where I can.

When I look inside one of the 7z files most don't appear to contain too many individual drivers, though I have attached a screenshot of one that does. Could the update process be broken down into these steps:-

1) Curate new drivers

2) Parse through existing drivers to find if the driver is new or an update.

3) If it's new, create a new zip file for it

4) If it's a newer version of an existing driver, replace the existing old driver version

5) Once all the latest drivers are incoporated into their own z7 files, compile them into categorised cab files, e.g. 'Intel-Display' or similar. I am guessing some categaories will be much larger than others, so maybe there could be several e.g. Intel-Display-1, Intel-Display-2, Intel-Display-3 etc

6) Seed

I am sure there is much more to this process than meets the eye and I am dumbing it down, so forgive me on that account.



   
ReplyQuote
(@mirror176)
Active Member Registered
Joined: 7 years ago
Posts: 13
 

  I haven't followed things in a while so I don't know if the exact way samlab creates driver packs has changed, but it used to be something like:

  • Archives were created with inf and some other files put into an archive first because 7zip can throw away excluded data instead of writing it to disk and end decompression once the last of the data is read. If those files were mixed throughout the archive then it would have to decompress each block of the archive (forget size but probable a couple hundred megs) to get that data (aborting a block can occur once a block no longer contains another requested file for extraction). This matters for very rapidly indexing the archives as many of the files that are first compressed into an archive have to be read to create the index so only one block should be extracted per archive and it will be a small block in total as that data is pretty small. Grouping like files together generally improves their compression ratio and separating them from different files minimizes any detriment the compressor suffers from trying to match both content types. I think 7zip treats the two separate compression steps like two separate archives and there is a chance that grouping it all together as one may give better compression but I haven't experimented with it in a while; the first files are very small overall so I wouldn't expect a big change either way..
  • Maximum compression block size was restricted which permits decompression to jump to the nearest block that has the next file(s) and once no remaining files exist in a block it skips to the next one. This is how installing a driver found in a .7z file extracts just the driver significantly faster than 7zip extracts the whole archive. I think it is called a solid archive when the block size is unrestricted and if we compress each archive as solid then it will make every one smaller at the cost of most every driver will extract for install slower.
  • Some compression settings are restricted to permit decompressing with less required RAM. If you run out of RAM during decompression it becomes 'very' slow which I think used to be an issue that Windows XP and 2000 users in particular would run into when it had been increased at one point. Increasing those settings does result in a smaller archive after archives are beyond a certain size but I don't think it had an impact for small archives. I don't know if only XP/2k compatible drivers are compressed at the lower settings or if all still are since its expected that as people have a newer OS they have more RAM too.
  • Everything can fit in one archive file. Doing so takes the least amount of space but means that anyone installing a driver would always have to download all drivers first. Splitting them into categories helps keep them organized and makes it so you don't download an audio driver to get your networking driver installed and similar. In a category like video drivers, major players with large drivers got their own archive and that further got subdivided to some distinctly different driver types (server, DCH, ...). Driver packages had been further subdivided by OS which helps keep old drivers that no longer receive updates in an archive that rarely gets recompressed (and makes those like you happy to have a bit less to download).

  I haven't used and followed much driver stuff in the past few years by I remember samlab had some archives that rarely get modified. They would periodically get recompressed; not sure if it was start of the year, twice a year, or when a new 7zip version comes out (sometimes modifies compression performance) but periodically it seemed archives were rebuilt without any driver changes. If no changes then distributing the new file was a waste of bandwidth to everyone involved unless compression was altered by different compression settings or a different compressor version. For archives where there is actively changing drivers, updates to those is expected. Since some archives like older XP drivers were separated it means a new GPU driver goes to a GPU archive other than the XP archive (lack of manufacturer supporting XP) which means XP archive data isn't updated and a new download of it is not needed.

  As distribution is normally completed through a torrent, an updated file of a new name (every file has a date based name change of YYMM and a final number appended that increments each time the archive is released that month. Torrents handle all of the files in a collection as if they are all joined together as an archive. This large file is subdivided into a series of smaller blocks and to download a file the torrent software has to download all blocks that contain it; this is why downloading just snappy or just the indexes downloads much more data than what was requested is it also downloads parts of other adjacent files to get the full blocks containing the targeted files. When a file changes name I assume torrent code has no sense of identifying that the contents are the same and the old one should be renamed and when a renamed file contains even just appended content the torrent doesn't know it should use the old file as a basis to autopopulate the new file. Since it treats all files as an archive and among that it divides the torrent into blocks it knows if one of its own blocks is already a match or not. In a best case scenario of a .7z updating the end of the archive file only and assuming only the last file were modified in the torrent it would be possible to preemptively rename the .7z to the new name and the torrent code would see all but the last block to few blocks are already correct and use it just like resuming a partial download. Unfortunately updating the other files in the torrent means that what block this last file starts in and where in the block it starts would all be moved so at least one more block is needed. I don't know how the torrent handles matching a file that is a different size; best case scenario is it would resize it and rewrite any mismatched blocks but it would not surprise me if it deletes it and starts again on size change. Torrents as far as I'm aware were not designed for incremental transfers. Though not updating filenames would likely make torrenting append-only archives doable, it would be much harder to know what you came from and are going to when deciding what to update. 

  7zip has the ability to add files to an archive. I'm not sure if deleting and updating files can be done without recompression of either the full archive or blocks within it. I know on .zip files that they contain data about the archive's contents at the end of the file  If it is treated as an addition only without modification and deleting and if the archive metadata were always on the end then the majority of the file would not be modified on an update. Adding new .inf files and such to a new block at the end but separate from the rest of the new drivers would be worse for compression and extract performance but still better performance than if they were mixed in with all the other files. I'd have to test but I don't think 7zip supported modifying and deleting files without rewriting at least the blocks where they are contained if not the whole archive. Even for just the 'add' case, it would require a change in workflow since I thought every samlab archive release is recompressed from scratch.

  The feature you want is a differential/incremental/versioned backup that writes the new data to a new file, or (more difficult to implement well in this case) appends to the current archive which some archivers do offer. After an initial copy of the archive is created, incremental archive changes are notes that are stored after that say what is new, what is a replacement for the existing, and what is removed but no changes are made to that previous archive data. Each update becomes a new archive (in the easy case) and is dependent on all previous archives. Downloading each incremental update would be smaller than redownloading the whole archive but you would have to keep the original and every incremental to use the last incremental file.

  An example implementation using the idea of where incremental points in time could be taken could be based off of current release numbering as a guide for refresh points. Make a file like DP_Sound_Others_26.7z at the start of the year; this contains all drivers up to this point and will be the full download; new and old users would be getting the full thing in one run. DP_Sound_Others_2609.7z could be a final full copy of all changes from the start of the year to the end of September (could instead use a quarterly or biannual archive for this; more incrementals to keep until the next one comes out which replaces the following incrementals). DP_Sound_Others_26103.7z would be the third release in October; it would depend on 26102 and 26101 and depend on 2609 and therefore depend on 26 to be a complete set. Though I said 26 is full, it could be made to depend on 25 which depends on 24 which ...

  It sounds good in theory to distribute like that but catches we have to deal with are manual made incrementals in a system like 7zip that doesn't have such a concept means that to update a file we have to extract it 2+ times because we need to extract it from 26, then from 269, then 26101, 26102, and finally 26103 for any and every occurrence of the file. Any deleted file would require we manually note somewhere in the following archive that we should delete the file; more efficient to find such a list at the start and exclude it from the extractions. An archiver with incremental and versioning would do all of this for you and without you thinking about it. When a file is modified/deleted later, we still carry the old file within the original + incrementals so archive space is larger. Because incrementals are individually compressed, they lose any ability to benefit from patterns in previouly existing data so the set got larger; some compressors support building and using a custom external dictionary which allows the compressor to compress based on patterns that are less obvious for the current set of data. Sorting files in a certain order before compression can group like types of data which benefits compression but since they go into separate archives they are not able to be grouped as adjacent in the datastream so compression is decreased.

7zip was chosen likely because it is free and has a higher compression ratio without too much negative impact to decompression speed. Some archivers offer multithreaded compression/decompression but RAM consumption goes up + compression goes down slightly; I assume that multithreading is still forced off to minimize running out of RAM on decompression for lower RAM systems and to keep the already big downloads just a little bit smaller.

For alternatives coming to mind:

  • Many separate Zip files to hold each driver separately or grouping different versions of a driver into the same file: Sounds good and would make updates much more straightforward for what we download. Total data needed to store all drivers will be 'much' more than it is now. As bad as 50GB-70GB sounds, try extracting the archives; not sure of the total now but when closer to 40GB I think is when I last tested it I had over 300 or 400 GB needed to store all extracted data. Zip will shrink that some, but as a practice run take one of the .7z files (for best example but not too slow of a project, go for a midsized one at a few hundred megs) and extract it and then take each driver folder inside of it and individually zip them (.7z works too for a more direct comparison; snappy used to handle both .zip and .7z driver packages last I looked). Speed of indexing will be awful if you don't put .inf and friends into such archives first but we can fix that 'some' later. Main point is look at the size of the archives; you will have to initially download at least tens of gigs if not hundreds of gigs of data for initial download.
    • A more extreme example of where I saw such a practice was on some icons distributed for KDE. The download was about 300MB for all of the .svgz; svg is a text format for vector graphics and the added 'z' means the data is zipped. Every icon was a separately zipped stream of data and those were archived together and compressed into the whole huge download. I think I tried extracting them to .svg and compressing all of those together which dropped it down to 10 or 20 MB total. Using that for icon install would then lead to each icon on disk being larger or the install step would need to recompress each to a .svgz which makes install/update a 'much' slower step. An alternative would be using a process like precomp which figures out how a zip datastream is originally compressed and stores the decompressed version + details to recompress it to an identical file; simpler to implement and slower to both compress and decompress but output will be identical while gaining the ability to properly archive all of the files. I don't think I got to 10-20MB using precomp and think I did it with .zip and not .7z, .xz, or similar but it was too many years ago to say for sure.
  • Zstd has become popular as it was engineered as a modern compressor that beats zip compression ratio, compresses faster than zip, and decompresses much faster than zip, but it does require more RAM than Zip; 7zip compresses better but is slower to both compress and much slower to decompress with even higher RAM consumption. 7zip has a few different compression models and one is specialized for some Windows executable data which gives further compression gains over what a generic compressor otherwise can do. Faster decompression step would be nice but the archives will likely be noticeably larger which makes transfer and storage of the drivers even worse.
  • Zpaq supports incremental backups, deduplication (7zip immitates this by having a large enough amount of RAM and hoping 2 copies fit in that viewing window at once to see it as a big repeat pattern; if a copy doesn't fit the same window/block then it compresses completely separately), can use custom compression routines and precompression steps so can optionally shrink .exe, .jpg, .bmp, etc. smaller than a general compressor. I think I experimented with this only a little bit and it would likely cause archives to grow relative to the current .7z unless good tweaking to and would extract slower than .zstd. Deduplication would help a bit but something like precomp to extract compressed datastreams of some of the drivers install data is likely necessary for proper benefits.
  • There are a lot of others compressors out there so we could always keep looking. FreeARC I think was one that people used to repackage installers with since it allowed for using a number of different compression algorithms and more tools that brought it closer to a deduplication capability and I think it offered some filetype specific stuff but haven't looked or followed in a while.
  • Fully extracted driver set: all updates can be tracked by any means and 'incremental' data is unnecessary but deleted information would need a way to be expressed to not need to delete+redownload periodically. Total download would be huge. Storage space would be huge; can partially reduce it with compression settings of NTFS, go further with a command available to differently compress data on NTFS that is much more efficient with exectuables but slow and won't gain much when the exectuables are self extracting archives.
    • Software like git normally steps up to monitor files for tracking additions/deletions/modifications/renames. It is great to be able to receive a state of the file tree and to update it in the future in an incremental type of way as it tracks all changes and can send just the changes. It is designed with a focus on text files such as program source code and keeps small notes of how to change a file and compresses those notes using Zip type of compression; you either need the whole history of the archive also downloaded or there can be limitations of how updating and such can work but then you also have the whole history in case something is removed or changed and you need the old data. It becomes much less effective when storing binary data since a simple change to an executable or library may scramble up the file a lot more so a small compressible diff becomes a poorly compressible full copy. In addition to the usable files, all of the change history adds up to git keeping a copy of data necessary to make all versions of all files. I assume that git's own internal representation of the drivers would become 'very' large. Trying to create more useful diffs and overall compression of git's representation of the data would likely need precomp or other processors as another step to decompress more things into raw data that compresses better. Could be a fun experiment but I wouldn't expect a good outcome from trying git for all the drivers.
    • Competitively a more advanced filesystem can offer better compression at higher write and read speed. I mainly don't use Windows so ZFS comes to mind which is also available on Windows but not sure of its current development state. Offers zstd as a compression algorithm but each file will be individually compressed so compression is much worse than an archive can offer. Supports incremental transfers; if willing to receive ZFS datasets (its like a whole filesystem itself) from strangers then incremental states are easily shared but have the same downfall of needing all incrementals from a start to a finish even if its easy for the packager to choose the start/finish at any time. Supports deduplication but likely should 'not' be used due to its overhead unless activated as a similar but unrelated block-cloning step; proper block cloning would need to be executed on duplicates after data is received. Not sure of features of ReFS or whatever Microsoft's newer copy-on-write filesystem has to know how it would compete but any system without support for the filesystem either cannot use the data or has another thing to install to do so.

For Chyro's sample run of steps:

  • zipping each driver and putting all the zip files into a cab file is just archiving a bunch of compressed archives.
    • Cab has a limit on directory count which I'm not sure if we would have to work around to use Cab specifically but there are other less limiting archive formats to consider.
    • Cab compression of zip files would be of little benefit as compressed files usually compress again poorly; need a step like precomp integrated into the workflow for any meaningful compression.
    • .7z files can be used to create+extract a compressed or uncompressed archive of zip files so we could go to Cab but what does Cab have over .7z as a reason to switch to it?
    • Reading .inf files and friends from each zip from within the .cab will may require reading a lot to all of the total contents in .cab + may require partial or full reads of each zip depending how it is all compressed. Alternatively you would be looking at adding them into their own zip or copying them into their own zip to either put inside the Cab if partial reading is efficient or would want outside the Cab if not.
  • #4 - not all new drivers are a replacement for the older driver. Bugs in the new version, incompatibilities that break support until/unless fixed, and hardware having support dropped from the newer driver are reasons to keep more than just the new version. Many driver packs currently contain multiple versions of a driver and removing all but the newest would be such a big downgrade that people need to keep the old driver packs in addition to the new ones. Some pruning is useful but all or nothing are two "wrong"choices.
  • #5 - now we are back where we started but with much worse indexing performance, likely worse extracting speed, and an extra layer to unwrap while using an extra program to do so. Many drivers use .cab files or are self extracting executables which you want to zip (minor gain + less gain when done per driver) and then put it inside a .cab? Not sure if snappy any issues with it but 7zip supports multipart archives which can be split automatically at size boundaries. In any case, implementing #4 requires archives be recreated for #5 if you don't describe something different and that puts us back to where we started with an update leads to a new file needing download; #3 could reduce the chance that a new one is needed but the big ones are likely getting updates so unless Intel-Display-1 (or something) becomes your separation for #3 you don't have much gained.

Actual solutions that would make you not download so much data:

  • Manufacturers stop bloating their installs
    • A need for >100MB sound drivers has not been explained anywhere that I am aware of.
    • Nvidia graphics installers contain ads during normal non-snappy install brings up the question of how much of the install is bloat.
    • If games need custom graphics driver tweaks then either the game, the graphics driver, and/or the graphics API have issues that should be addressed; the non-custom aspect should be removed.
    • Some drivers support a variety of hardware that all works differently; a more clear separation of hardware support from the generic parts of the driver would wake distribution and updates better for all users if separate drivers optimized per device will not be offered.
    • Some larger content is things like a touchpad driver that has a video as an animation showing off gestures. There are more efficient ways to create such an animation, more efficient media codecs, and for that purpose the resolution could be lowered. I've wondered if files like that could be substituted in the drivers for smaller ones without causing install failure but never tested what can and cannot be edited.
    • Beyond the bloat, I wonder if manufacturers know about tools like FileOptimizer or the many tools it runs files through; it helps to do lossless and lossy shrinking of a lot of different types of files and its likely that running it across contents in drivers would lead to a smaller distribution and completed install size.
  • Stop paying those who package drivers
    • I don't speak non-English languages so I have to depend on Google translate and similar but seem to recall that Samlab updates have been delayed until he receives a certain amount of money. There have been ways to pay to get an update sooner privately from him (forget if that went toward a public release quota) and alternatively pay to reach the release quota sooner. There was a point before Grenn when badpointer(?), the original snappy driver installer author, experimented with accepting donations through a link presented in Snappy. He didn't get enough money from it to make focusing on driver updates efforts worthwhile and ended it. At the time part went to him and part to Samlab and he stopped it without communicating to Samlab about it; it didn't mean much to badpointer but Samlab was much more dependent on what it was bringing in. I'd assume that with Glenn trying to handle bundling a few drivers separately from what Samlab already offers and with spending time developing Snappy that income for the effort is appreciated and makes motivation and ability to spend more time on it possible. I don't like ads but having the program explain who does what between Glenn and Samlab and helping users be able to give money to each individually or both together for them to split in an explained way would be appropriate and it would be a clear chance to explain to users when funding has a direct impact toward releasing more updates sooner and other development effort. If the popup becomes workflow obstructive and nagging then users will be pushed away and if it heads toward adware or malware then people will leave faster and downtalk the program. For Samlab, a "funding not reached, optional Samlab 26103 driver release schedule skipped/delayed" type of message on 'check for updates' result would be a good way to let people know they 'could' have had it and that future updates could be treated similarly though good to let people know if there is a schedule for ones to expect will always be released or not. I don't know if Samlab has a strong need for the money or not like back with badpointer and don't know if offers are still up for 'more money=faster releases' nor do I know if that had any limitations. Anyway not paying is likely the most effective way to minimize update downloads, but its for the worst reason.

Having recently come back and tried to fire up snappy I saw there are a lot of DP_*_SDIO??_*.7z files. Initially I thought these were to try to include drivers samlab did not have or would not distribute. Now that ?? matches as 01, 02, 03 on some files where all appear to be listed as what to currently download I thought maybe a manual attempt at incremental was going on. I haven't looked into them too closely yet but was finding that they contain duplicates of drivers existing in other Samlab packages. Some look like they use a poor matching so installing what they list would put AMD drivers on my Intel system for root PCI drivers; untested but sounds like a candidate of what samlab would have distributed as zbad which is normally available only as a separate download and not included in the main torrents and ISOs due to the higher risk of installing them as a mismatch. Anyone able to explain the *_SDIO* files or point me to a link that does? Nothing useful presented through the program and skimming the changelog wasn't helpful yet. I forget the total but I think it was 10 gigs so knowing what is going on with them would be nice.

Anyway, its complicated what is already in use and the fastest updates are going to make things a lot bigger. Its all a compromise that has been thought about before and brought us to the state we have now instead of a non-archived torrent of all drivers or a single .7z of all drivers. My copies are old and I don't remember where to acquire the batch files that are used to rebuild driver packages but can dig them up if Glenn doesn't have them or know about them, Samlab doesn't visit here and share, and if badpointer continues to be on with his life of other things. Just attempting some play yourself to figure out if something is better or worse than we have now for download differences likely is impacted little even without it. If you want to A-B test it, it would be best to rebuild the archives both with and without your changes so you can guarantee you are not comparing differences of compression flags and version.



   
ReplyQuote
➤ Glenn's Page