Blame Me: I Worked on the Windows Progress Dialog!

  Рет қаралды 392,573

Dave's Garage

Dave's Garage

Күн бұрын

Пікірлер: 1 800
@dino6627
@dino6627 2 жыл бұрын
It is frustrating when it gets stuck at nearly completed and doesn't recalculate, but a real progress bar these days is a rarity and much better than the endless spinning circles.
@DavesGarage
@DavesGarage 2 жыл бұрын
True! I show the opposite in this video, where it surprises itself with an early completion!
@MrJC1
@MrJC1 2 жыл бұрын
yes why do we keep using spinning circles these days? it isn't good design. its streamlining for streamlinings sake.
@esenel92
@esenel92 2 жыл бұрын
@@MrJC1 But it's soooo much easier. ;) And of course many applications these days get data from the web, and might not even know how much data there is before it finishes, it just keeps reading the server's output as it's generating it. And of course there's a whole lot of lazyness these days with companies and/or developers. Everything has to be done in a hurry, so why even bother trying to get it right?
@DeanWilliams1987
@DeanWilliams1987 2 жыл бұрын
@@MrJC1 it shows that something is doing something and hasn't just froze, without it you could be thinking "has it crashed"
@DeanWilliams1987
@DeanWilliams1987 2 жыл бұрын
@@esenel92 agree this is exactly why a lot of things don't get progress because it's not possible to figure out. I wouldn't say it's lazy developers though...
@theftking
@theftking Жыл бұрын
I don't know what that fire thing is in the background, but it's awesome.
@gashnal
@gashnal 2 жыл бұрын
Sir, we used to call it "microsoft time" and was a bit of dry humor when clients would ask how long things would take. "Its Microsoft time, it could take 10 minutes, 4 days, or 30 seconds." I am glad your doing these. It shines light on things i experianced learning technology as a kid and why things are they way they was.
@tharagz08
@tharagz08 2 жыл бұрын
Oh boy, wait till you became an Azure or Exchange Online administrator. The saying "Microsoft Time" is alive and well
@adammanning5250
@adammanning5250 2 жыл бұрын
We called it Microsoft Minutes so it sounded like a deprecated Office program. Amazing video! Many admins can learn a thing or two from content like this! Reminded me of when I realized copy/paste is most of the simplified logic behind anything you do on a computer
@londonmeantime7123
@londonmeantime7123 2 жыл бұрын
In a parallel universe we did exactly the same😂😂😂
@GamingXperience
@GamingXperience 2 жыл бұрын
And at larger timescales its called valve time ... xD
@photoniccannon2117
@photoniccannon2117 2 жыл бұрын
@@adammanning5250 Yep I was taught “Microsoft minute” as well. Brings me back to my days as a aspiring programmer in childhood.
@insidetrip101
@insidetrip101 2 жыл бұрын
Maybe I'm weird, but I've actually never found it odd that the estimated time bounced around. It always made sense to me that the estimated time is precisely what it says--an estimate. Given that it's using the current transfer speed, its probably mainly using that to estimate the time, so if I see the transfer speed go down, I should see the estimated time go up--which is exactly what we see. So I never really understood how people can complain about this sort of thing, its always seemed so obvious to me.
@ernestnatiello
@ernestnatiello 2 жыл бұрын
The problem is that it's laughably useless, and may as well not exist.
@De-M-oN
@De-M-oN 2 жыл бұрын
@@ernestnatiello Its useful when the speed is relative constant. It can be constant on a large .rar file, or slower USB Sticks etc.
@EvilTim1911
@EvilTim1911 2 жыл бұрын
@@ernestnatiello In my experience it's been pretty useful. Even if there's a ±20% margin of error that's still an okay rough estimate for a lot of use cases, at least for me. I'd much rather have a large transfer say "45 minutes remaining" and be off by 10 minutes than not having an estimate at all
@PaLaS0
@PaLaS0 2 жыл бұрын
@@ernestnatiello everyone crying about it not existing on epic games launcher so
@XDSDDLord
@XDSDDLord 2 жыл бұрын
I'm in the same boat. In fact, I'm going to go one step further and say that it is so predictably bad; as a human, I was able to spot a pattern, which made it far more helpful. Generally speaking, I know what I'm copying, I know when I'm copying things with a lot of small files versus a lot of big files, and knowing that and what other io operations I am running, along with the capabilities of my hardware, I can use the first few bad estimations to see what the system thinks it will take for any given file type and then extrapolate a more accurate ETA. Over the years, I've become so confident I use this system to determine what AFK tasks I can do while it is copying without going so long the computer sits idle but not finishing quickly enough that I have to sit there and wait. This is important because I'll often copy large directories in batches of similar file types and sizes. After all, that is more efficient than the system switching between large and small files.
@kabochaVA
@kabochaVA 2 жыл бұрын
Thew same goes with development estimates... Project Manager: "How long will it take to develop an accurate Progress Dialog?" Developer: "About 3 days... oh no, 4 weeks... or maybe 3 months... I mean, 2 weeks... no, 13 years... or 3 weeks... ok done"
@pierrec1590
@pierrec1590 2 жыл бұрын
Do you want it to be accurate, quick or affordable? Can't have both.
@johnshaw6702
@johnshaw6702 2 жыл бұрын
That reminds me why I don't like making estimates on things I have not done before. If I've done something similar, the answer is how long I think it should take x 3. That is usually accurate for me, I can't be so sure when someone else is doing the work. For something new, you would first have to do some research. Of course now they want to know how long that will take too. Every estimate is ultimately just an educated guess. The bean counters want to save money in the short term, while seeming to ignore the long term cost of not doing it right in the first place.
@kencollins1186
@kencollins1186 2 жыл бұрын
@@pierrec1590 I presume you meant, "you can have two, but not all three."
@RiversJ
@RiversJ 2 жыл бұрын
Additionally if you want the first option, it won't be quick nor affordable usually
@pierrec1590
@pierrec1590 2 жыл бұрын
@@kencollins1186 In this context, I meant that you may (if lucky) get only one of the three, forfeiting two elements of the set. "Both" refers to the two that will have to be dispensed of. ;-)
@clementeguillen3767
@clementeguillen3767 Жыл бұрын
I love that you share your experiences and anecdotes as a participant and witness to history. I was the designer of the COMDEX, Networld+Interop and CES conventions (trade show look and feel) and I feel like I have so many great stories and nobody to tell them to. The way you present your stories is fascinating and doesn't come across as vane at all. You are a great story teller Dave. Thank you for doing this.
@JamesPotts
@JamesPotts 2 жыл бұрын
It was brilliant when they added the graph of throughput. With this "explanation" for the estimate changes added, it's much easier to forgive the estimate. Instead of griping about the estimate, we gripe about the throughput. 😉
@Roxor128
@Roxor128 2 жыл бұрын
I wish that was an option back when I was still on Windows (last version was 7). Now I want it on Linux. I wonder if anyone has implemented it yet?
@taiiat0
@taiiat0 2 жыл бұрын
yeah it's a pretty nice addition. more useful than the past types of strictly text Data that was provided. one of those things that you don't know you want until after you have it.
@Jimmy_Jones
@Jimmy_Jones 2 жыл бұрын
@@Roxor128 Yeah. Not having that graph was a real hold back for me making Linux my main OS. I got over it in the end but it really bugged me.
@Roxor128
@Roxor128 2 жыл бұрын
@@Jimmy_Jones I only found out that graph existed when I watched this video, but damn do I think it's a good idea now that I've seen it. I'm all for giving the user feedback on what the computer is doing. Especially if it can help figure out if something has gone wrong, and if so, what.
@Hackanhacker
@Hackanhacker 2 жыл бұрын
feedback
@punboleh7081
@punboleh7081 Жыл бұрын
I've seen the XKCD comic back then, and it's surreal to years later see the abstract person come to life..... I always assumed there was a team of people working at, well, file explorer, not that the progress bar was actually done by one person as in the comic, and especially not that this person would start producing videos about their work at Microsoft. I can't wait to see more :)
@AshleyJColeman
@AshleyJColeman 2 жыл бұрын
I'd love to hear a story about your most difficult to diagnose problem that you came across during your career. I'm sure every software developer has atleast one horror story about the bug that would never go away.
@DavesGarage
@DavesGarage 2 жыл бұрын
I've had a couple! But it'd be hard to make a store out of them, unless something comes to me!
@Spero_Hawk
@Spero_Hawk 2 жыл бұрын
@@DavesGarage if you can remember any of them well enough and have some of the code then I'd like to see your thought process as you go through the solution. I think it'd be neat if you could come up with a tricky bug yourself as well, maybe even challenge the viewers to see if they can think of a solution.
@nottheengineer4957
@nottheengineer4957 2 жыл бұрын
Take a look at the task manager series, there's a nice story about a very weird bug in there.
@charleshines2506
@charleshines2506 2 жыл бұрын
Dave does have a lot of interesting stories most of which don't seem like a horror story. Even for people like me who don't know the first thing about writing a program, it is interesting to hear the things he says.
@glasser2819
@glasser2819 2 жыл бұрын
@@charleshines2506 very true! Dave's mind is trained to present knowledge in many different languages from x86 mnemonics to English. He can build jokes just as easily as code trees. I can squash overhead to boost all I/O's by 25% Internally transfers are mixed batches of smaller packets. Fix that and core bottlenecks disappear! Old-hands know where underdesigned kernel code is... opportunities for radical improvements available ! Our weaknesses give us some of our strength. 👍
@koller
@koller 2 жыл бұрын
Absolutely fascinating. Love your videos!
@IanBPPK
@IanBPPK 2 жыл бұрын
I'm feeling that LTT will reference this in the near future for some content.
@DavesGarage
@DavesGarage 2 жыл бұрын
I'm flattered, but would appreciate a mention if they do :-)
@IanBPPK
@IanBPPK 2 жыл бұрын
@@DavesGarage They're good at crediting info sources, especially if they can tie it do another yt channel. I definitely see this popping up on TechQuickie or the like.
@dunxy
@dunxy 2 жыл бұрын
@@DavesGarage You sure do deserve a shout out, that's for sure.
@imjustsomeguy
@imjustsomeguy 2 жыл бұрын
I prefer seeing the transfer speed than the overall estimated time. Since Windows 8, I love how the Windows progress dialog shows a graph of the transfer speed in real time. Last year, I bought my first Mac and its progress dialog only shows the estimated time :/
@degru4130
@degru4130 Жыл бұрын
Heh, better than ChromeOS where there is ONLY an estimated time, no progress indication at all.
@nkronert
@nkronert 2 жыл бұрын
Great explanation Dave. Next question I'd love to hear the answer to would be why Windows still can only mention that "this file has been locked by another process", not which bleeding process it is that holds the lock. The OS should know about these things, right? Oh and thanks Microsoft for finally having options in newer versions of Windows to retry or skip errors while copying huge trees of files. It used to be hair-pullingly frustrating to have an abort after hours of copying and having to figure out which files were still missing on the destination drive.
@craigmjackson
@craigmjackson 2 жыл бұрын
One of my biggest beefs with Windows. On Windows, it will refuse to allow even an Administrator to remove a file even if it is only opened for *reading*. Very frustrating and sometimes only solved with a reboot or a killing of the process that is using that file (maybe windows explorer), if you can find it, and you can usually only find out which process is using that file with 3rd party tools such as Process Explorer (good tool by the way). In Linux, if you are a user with rights to a file, you can do anything you have rights to on that file at any time. Even if the file is open by another process, your program may be able to detect that the file is open, but if you choose to blow it away, it won't stop you.
@ItsGravix
@ItsGravix 2 жыл бұрын
yess
@Acorn_Anomaly
@Acorn_Anomaly 2 жыл бұрын
@@craigmjackson API design limitation prevents open files from being deleted. In particular, drivers can ask for the path of any open file handle. What happens if the file is gone? How many things would break if they change something like that from "always returns a valid path" to "sometimes returns nothing"?
@debug9424
@debug9424 2 жыл бұрын
@@craigmjackson linux (and unix in general) is able to remove opened files because it actually keeps the files alive until the last program using one releases it. The implementation is a tad complex to explain, but the general idea is that a file is actually stored as an "inode", which is referenced by the filesystem's directory tree. This allows the kernel to give a program a file descriptor that points to that inode. There's even stories of old timeshare unix systems where an accidental deletion of the entire contents of the system program partition could be recovered from because some users still had critical programs like shells and archive tools running The on Linux the opened file descriptors of all running programs can be directed accessed via '/proc/[pid]/fd/'
@craigmjackson
@craigmjackson 2 жыл бұрын
@@Acorn_Anomaly or how about the application developer does its own due diligence? Take a program like Notepad++, it gets around this annoying Windows behavior by releasing the file handle right after opening, and keeping its own working copy in memory or temp space. The state of a file handle might be different later, and that should be ok. The application should be able to handle it. You shouldn't need to depend on a file handle to be locked just to do normal work. It's removing user choice to manipulate objects that the user has the right to manipulate. I agree it's how the API is designed but I'm stating that I hate it.
@jobbld
@jobbld 2 жыл бұрын
Dave: Presents dozens of cogent solid reasons why this is a hard problem to approach and an impossible one to solve based on experience and understanding. Describes many approaches and caveats to them all. Does so in a perfectly comprehensible simple manner. Some comments: "Yeah, but if you add it up and divide then all good right?" *sigh*
@yellowrose0910
@yellowrose0910 Жыл бұрын
Very true, but this shows this problem is indicative of bad user interface design. If the time can't be reasonably predicted, even one-sidedly (ie always under estimate or always over estimate), then don't show it: it just annoys people and (back when it mattered) makes people think your system is crap. Design it differently, like maybe show only the % of files copied (with a fidget spinner -- I know, an entirely separate problem -- so you know it's still working), or a files copied / total files, or something you can reasonably predict, so your system doesn't look like crap. Or maybe take a little room from all that personal data you're collecting and keep a history or hash of previous copies to that (type of) drive so you can predict better. Or something that will misdirect or redirect people and keep them happy and impressed with your system. Not the programmers' direct fault; overpaid management should have hired design engineers. And if the OS is "really bad" with serial multiple small files then fix the OS.
@chaosxepsilon6833
@chaosxepsilon6833 Жыл бұрын
Is putting two times a solution? One is the shortest possible time and the other is the longest probable time.
@cube2fox
@cube2fox Жыл бұрын
He doesn't mention any reason why adding up and dividing wouldn't work better.
@Drummerx04
@Drummerx04 Жыл бұрын
​@@yellowrose0910your closing comment: you think a bunch of small file transfers taking a long time is indicative of bad OS design? File systems are not operating systems, but maybe consider that if this was an easy problem to solve (correctly and consistently storing millions of independently created, deleted, resized or modified files which are accessible to hundreds of simultaneously operating applications that can be owned by multiple users and attacked by malicious actors)... it would have been solved in the last 50 years of computing. File copies are way more involved then you probably think especially when you look at features offered by Windows during or after a copy. Did you know you can cancel a copy halfway through? What about a Ctrl-Z after the copy or delete is finished? If you you have a more efficient method for turning a block device into a usable and consistent reliable file system, Microsoft will happily pay out the ass for your file system which outperforms theirs by a wide margin.
@Drummerx04
@Drummerx04 Жыл бұрын
​@@cube2foxDave mentioned many reasons that a simple sliding average is unlikely to be accurate. In addition to some of the challenges I mentioned to the other guy, file copies can also go over a network with packet losses, other applications can access the disk, while writing you may run into issues where the underlying file system needed to move files around to make room. An HDD or SSD isnt like a cup you pour water into until it fills up. It's more like a giant sheet of graph paper where you need to manually keep an index and table of contents while writing down millions of independent sets of information. If someone asks you to copy 22000 entries while a hundred other people are requesting information and changes... your time estimate is probably going to be a little off.
@timwhitman
@timwhitman 2 жыл бұрын
The more I hear Dave recount his tales at Microsoft, the more I realize that everything I do in my job as an IT tech over the last 20 years has been Bless or Cursed by his mighty hand... Thank you!
@sarkybugger5009
@sarkybugger5009 2 жыл бұрын
It's people like Dave that drove me to Linux, so he has done something good. I'm surprised he admits to this shit. I'd be in hiding. ;o)
@liesdamnlies3372
@liesdamnlies3372 2 жыл бұрын
@@sarkybugger5009 Meh. He’s a smart guy. Even as a Linux user (btw) I’m here because he knows his shit.
@remasteredretropcgames3312
@remasteredretropcgames3312 2 жыл бұрын
@@sarkybugger5009 Lol this comment.
@robnauticus
@robnauticus 2 жыл бұрын
From the same background. I love hearing this stuff, at least it gives me a reason behind the years of chaos dealing with Windows lol.
@OmniscientWarrior
@OmniscientWarrior 2 жыл бұрын
It has been blursed by Dave; among many others.
@OmniscientWarrior
@OmniscientWarrior 2 жыл бұрын
This reminds me of the fury I feel when watching a Windows progress bar. "Almost done and... wtf is it doing back at one?!" I so hated how Microsoft put that in. They saw how so many people liked a progress bar letting them know how far along an installation was but then completely ignored that it was showing for the entire process and decided that they will use it for each singular part of the installation. The only good that came from that, which would have happened in time, we got 2 progress bars, one for the totality and another for the parts (and that helps quite a bit when troubleshooting when something couldn't complete).
@harmarize
@harmarize Жыл бұрын
I liked the companies better that have dual progress bar, an overall progress bar, and another one for the current process
@JaleTechAndGaming
@JaleTechAndGaming 2 жыл бұрын
Dealing with the shell copying small files over the past 20 years has always been painful. Over networking, it seems to be much more painful. When possible and dealing with many small files over networks, I compress locally, copy, and then decompress at destination.
@jakobstengard3672
@jakobstengard3672 2 жыл бұрын
I guess io operations on network drives involves opening a tcp connection for each file. Or, i hope not, but i suspect that can be the case.
@Alexagrigorieff
@Alexagrigorieff 2 жыл бұрын
@@jakobstengard3672 It doesn't, because an SMB connection stays for long time, but it still involves a few TCP roundtrips for each file, which could really have been done in parallel, instead.
@RainBoxRed
@RainBoxRed 2 жыл бұрын
Sounds like a good candidate for a file transfer protocol to do automatically…
@MrHerbalite
@MrHerbalite 2 жыл бұрын
Same here. However once I've had a bizarre experience. After buying a new NAS, that finally also had 100MB/s network transfer rate I wanted to transfer some large amount of files that couldn't be compressed or put into an archive. Still it should have taken a few minutes, at most, to transfer the data. That was how it was with the previous NAS, who only had a 10MB/s network adapter, but everything else the same (including the OS on the NAS). The transfer took however hours. Much slower than before. I wondered if that new NAS had some hardware problems. Before I went back to the shop however, I investigated the router. It was one which only one port had 100 MB/s the other ports were all still 10MB/s. Putting PC and the NAS on a 10 MB/s port, things speed up, but still too slow for my taste. So I decided it's time to buy a new shiny fast router, before bothering the shop to check out that NAS that I just bought.. After changing to the new router the results were how it should have been. Turns out the Linux Samba and the Windows network had some issues working together when on different port speeds. I could see that during the very first test with the new NAS. For a huge file it took ~10 seconds to negotiate, and then the copying part was fast, small files also about ~10 seconds negotiationg and no measurable time to transfer data. Those ~10 seconds were also noticable when I accessed the NAS web server through a browser from the PC. I learned a lesson that day. Never mix network speeds if it can be avoided.
@Vaelosh466
@Vaelosh466 Жыл бұрын
When available I've found robocopy with the multithread option is a pretty good way to copy a lot of small files.
@WMDeception
@WMDeception 2 жыл бұрын
I have spent a measurable amount of my life staring at this progress bar. Now I feel even more connected to it.
@SirHackaL0t.
@SirHackaL0t. 2 жыл бұрын
The one thing that always gets me is why do I need an estimate of how many files I’m deleting from a folder? I just want to delete the files, which the cmd prompt does. Windows Explorer on the other hand, wants to find out how many files and how large they are first which slows up the operation for large folders massively.
@ncot_tech
@ncot_tech 2 жыл бұрын
"Discovering files..." 😴 I think it does that so it can show a progress bar. It needs to know what to delete to tell you how much it has deleted. Clearly someone decided UI was more important than marking a load of directory entries as unallocated. Especially when sometimes it says "recycling" and not "deleting" by mistake, making you think it's moving the files into the recycle bin.
@GeorgeFoot
@GeorgeFoot 2 жыл бұрын
It's like when you're decluttering your garage and insist on looking at all the things you're getting rid of instead of just throwing them all away.
@MikelNaUsaCom
@MikelNaUsaCom 2 жыл бұрын
use the command line.
@drozcompany4132
@drozcompany4132 2 жыл бұрын
Right? By the time it's discovered everything, the command line is already halfway done...
@DrHarryT
@DrHarryT 2 жыл бұрын
@@graealex Open a command prompt in the directory you want to clean out... del *.* then cd.. then rd "directory name"
@stanisawwrobel933
@stanisawwrobel933 Жыл бұрын
I actually appreciate the loading bar. I salute You Sir!
@adamsfusion
@adamsfusion 2 жыл бұрын
I like to say that "It's much easier to design a specialty product than a general purpose one. Sure we might have tighter requirements, but we get a lot less phone calls." When you have to support literally every possible workload, you have to throw all assumptions out the door. Things like the progress dialog may not be perfect, and sometimes it's barely good, but in most cases it's good enough.
@Don-kf6sk
@Don-kf6sk 2 жыл бұрын
As a system admin I spend many evenings moving huge numbers of files around and watching those crazy time estimates. Did make me smile sometimes. Thanks for your detailed explication!
@coorbin
@coorbin 2 жыл бұрын
In my experience, most of this is due to the unpredictable nature of the computational complexity of on-access virus scanners. On Linux, without an OAVS running, the predictions made by GNOME or KDE file copy status dialogs are pretty accurate.
@Atixtasy
@Atixtasy 2 жыл бұрын
EVERY time I do any of these large scale file transfers / writes, I disable the motherf&*ker! WAY too much overhead lol
@Roxor128
@Roxor128 2 жыл бұрын
@@Atixtasy And shouldn't it have already scanned the files, anyway? You know, when they were first put onto the computer? Or if this is getting them on for the first time, to wait until the copy operation is done and _then_ scan them? I mean, when in the process of copying is a virus going to get the opportunity to run and infect the machine?
@mk72v2oq
@mk72v2oq 2 жыл бұрын
@@Roxor128 no. At least for Windows Defender. When you are copying large amounts of small files, you can see how its process drains CPU significantly. Also disabing the defender speeds up such file operations a lot.
@liesdamnlies3372
@liesdamnlies3372 2 жыл бұрын
@@Roxor128 Just because it was clean when it came in doesn’t mean it’s clean going-out, in their defense. Scanning them after moving them also doubles how many IOPS that drive will be doing; for SSDs in particular this would just be patently irresponsible, since these reads can have a marginal effect on drive lifetime (writes are the real killer). And you don’t know that drive will still be there once you’re done with the copy, or that you’ll even have access to the files. It’s a weird wacky world and I can see the logic for doing the scan as you’re doing the copy, even if I have to thank my stars I got a 5600X that can actually handle it. One shouldn’t need that much horsepower for this but…welp.
@sasas845
@sasas845 2 жыл бұрын
Yeah, the problem isn't with the algorithm of the time estimation itself; the core underlying problem is that Windows slows down *that much* (> 3 orders of magnitude on the shown system) when encountering small files, which craps over any attempt to predict future speed.
@Tawnos_
@Tawnos_ 2 жыл бұрын
The Raymond Chen cutout popping up on the right brought a big smile to my face. The Old New Thing and Hard Code were two blogs I read prior to working at Microsoft that made me think maybe it wouldn't be a bad place to apply, and I still take a day every few months to catch up on TONT :).
@thepenguin9
@thepenguin9 2 жыл бұрын
"this might seem trivial at first" I had the same thought when presented with the halting problem
@EvenTheDogAgrees
@EvenTheDogAgrees Жыл бұрын
The one in Gnome (and by extension Cinnamon, which is what I use) is even funnier. Estimates are pretty stable, probably because it uses something like an exponential weighed average or something along those lines. But it has this funny feature where if you copy stuff, and then while it's underway decide to copy some more (e.g. into a different folder), it will queue it up as a separate copy job in a paused state. Makes sense so far. The funny part is when it gets around to the second copy job and starts estimating. That job has now been sitting in a paused state in the queue for say 20 minutes. The estimate starts out really high because those 20 minutes with zero throughput are also used to calculate the averaged transfer speed on which the estimate is based. That bug has been in there for years, and it's driving me nuts! 😂
@lucidmoses
@lucidmoses 2 жыл бұрын
This ought to be good. I always thought it was task based and not time based as so many people seem to think. Guess we'll find out in about 7 hours.
@alvallac2171
@alvallac2171 2 жыл бұрын
*ought
@longboardfella5306
@longboardfella5306 Жыл бұрын
No wait…1 hour…hang on…16min….done
@Merescat
@Merescat 2 жыл бұрын
Great show! I kinda knew how this goes even back in the old DOS days. The "overhead" is the (approx) same with big or small files, but so many small files you lose out on the speed for the total transfer (copy) time. Thanks for showing the examples!
@DaveSomething
@DaveSomething 2 жыл бұрын
I'm sorry, Dave... I'm afraid I can't do that.
@mfx1
@mfx1 Жыл бұрын
One trick I figured out a long time ago is that for lots of small files it can be significantly quicker to zip them all up, copy the zip file across and then unzip them on the destination drive than it is to copy them as individual files.
@AusSkiller
@AusSkiller 2 жыл бұрын
I'm looking forward to this one. I've always thought you could probably approximate a file overhead cost and data transfer speed and using a combination of both to get a reasonable approximation of time remaining by looking at the meta-data for the remaining files, the time to copy anything under 100kb could be used for approximating the file overhead which is multiplied by the number of files, and anything over 100kb is used for approximating transfer speed, then it is just ((totalSize - (100kb * fileCount)) / transferSpeed) + (fileOverheadTime * fileCount). Another alternative is to order the remaining files from largest to smallest and alternating between copying the largest file and the smallest file so the average speed is somewhat more consistent and will get more accurate as it gets closer to mean file-sizes.
@seb_gibbs
@seb_gibbs 2 жыл бұрын
when I do a large copy, it says it calculating before the copy starts, and I assume its getting a file list. I would have thought at the point it can decide precisely what order, and would know almost exactly the time it would take by previewing the file sizes first.
@AusSkiller
@AusSkiller 2 жыл бұрын
​@@seb_gibbs That's what I would have thought too, but then you watch it proceed to copy files in a way that it can't better predict the time it would take and seemingly only use the data rate from the last few seconds to calculate the time remaining. However credit where credit is due at least has never been as wrong as Steam, one time Steam thought I was downloading a game at 8 exabytes per second... although one time I was copying a 155MB file at 4.34MB per second and windows gave me an estimate of "About 44627 Days and 10 hours" so maybe credit isn't due 🤔
@TravisFabel
@TravisFabel 2 жыл бұрын
How much time does this "improving estimation" scheme cost in transfer time?
@AusSkiller
@AusSkiller 2 жыл бұрын
@@TravisFabel compared to what windows does now maybe a few milliseconds on slow hardware. Though if you order the files intelligently you might actually be able to speed it up instead.
@brianpearce6859
@brianpearce6859 2 жыл бұрын
It really does seem like the prediction could be done better than it currently is, and without even a very complex algorithm. 1. Collect some data points of (file size) -> (transfer rate). 2. Use the collected information to predict the transfer rate of any arbitrary file size. 3. PERSISTENTLY STORE the collected information for later use. Keep a separate dataset for each pair of source volume and destination volume. Of course I'm sure every developer who ever tried to tackle this problem thought it would be easy at first! Like, what if you start up a second simultaneous stream of file copying? Or a third? How do you make sure the predictions get updated in a timely manner when the achievable transfer rates change unpredictably?
@rcronk
@rcronk 2 жыл бұрын
Thanks for the video! I wrote the progress and estimate dialog for a disk imaging application back around 1999 and I can confirm that this is not a simple problem to solve. Some of the things I learned were that when we got timing wrong, it was often because we were measuring the wrong work being done (bytes transferred instead of "work" being done, like heads moving, overhead, etc.). I also learned that we missed measuring some of the work at the beginning and ending of the job - like setup, warming up caches, and flushing data to disk. It's really annoying to watch a progress bar rush to 99% and then sit there for 30 seconds while it flushes all that data to disk or some some other "work" that's not being tracked, so I added estimates of setup and teardown work that scaled with the overall job time. I also smoothed the data unless the data deviated outside a certain range so that fluctuations in the speed (we would often muticast the data across the network to hundreds or thousands of destinations, which made things fluctuate even more) would make the estimates jump around so much. If it went outside that range, I'd reset the smoothing, assuming that something actually happened to the environment that made it faster or slower so we could recalculate the new speeds instead of keeping the timings smoothed and wrong forever. I could have spent even more time on it to improve it more, but it's one of those priority things - we can spend time making the data transfer itself more robust and properly functioning, or we can spend time giving the customer a few more percentage points of accuracy on the estimate of when the job will be done? Companies usually prioritize the former, which is the correct priority, but the latter is nice too.
@MrCichocki
@MrCichocki 2 жыл бұрын
For years when needing to transfer a large amount of files (In the thousands), I've found archiving them into one large file then copying this over to the destination is so much faster than a straight forward copy operation. Even with the additional step of archiving, it's faster.
@mydogzty
@mydogzty 2 жыл бұрын
I have seen archiving in the Winrar program, but what does it do exactly? Im into computers but this term Im a little clueless
@mydogzty
@mydogzty 2 жыл бұрын
@@StrawberryKitten alrighty then cool thnak you.
@narobii9815
@narobii9815 2 жыл бұрын
So its like putting it all in a zip file, moving that and than unzipping? Sounds a lot like a common shipping problem of parcel vs cargo container.
@MrCichocki
@MrCichocki 2 жыл бұрын
Yes, put everything in a single zip file then copy this over to your USB drive. It's not as bad these days with ssd external USB drives but try it with a USB drive from about 8 years ago.
@charleshines2506
@charleshines2506 2 жыл бұрын
Very true. Even for files that don't take up a lot of space despite having a lot of them.
@luipaardprint
@luipaardprint Жыл бұрын
I think just showing current speed and percentage competed would be better than trying to estimate releasing time, as it'll prevent broken expectations.
@x7heDeviLx
@x7heDeviLx Жыл бұрын
As a 42 year old who has used windows since 3.0 I really enjoy Dave's content and the peeks into the creation and history of windows and all its features, for better or worse lol. Thanks Dave
@Psythik
@Psythik Жыл бұрын
Nice; I'm 34 and have been a daily Windows user since 3.1!
@K-Kil
@K-Kil 2 жыл бұрын
I have wanted to hear about this for years. I always knew that it was trying to make an accurate up to date prediction from something, but wanted to know more. These videos are awesome, please keep em coming.
@AdamEmond
@AdamEmond 2 жыл бұрын
XKCD: Makes a Joke Dave: And I took that personally
@AdamEmond
@AdamEmond 2 жыл бұрын
Jokes aside, really interesting insight! Subbed! Looking forward to more (& exploring the back catalogue!)
@marksmith6259
@marksmith6259 2 жыл бұрын
Basically answered 2 questions here, love it. it also can be fairly accurate with many files of the same size. Thanks for the breakdown.
@j777
@j777 2 жыл бұрын
This is also what makes it so hard to estimate the effort of many engineering/software projects : it can be difficult to forsee all the difficulties of solving what might seem at first a straightforward problem.
@Jiyoon02
@Jiyoon02 Жыл бұрын
It is so fascinating to hear piece of thought from the og dev(one of the og devs) of the progress dialog himself. Amazing video and amazing channel. I instantly subbed!!
@ccricers
@ccricers 2 жыл бұрын
This is how I found out it’s sometimes quicker to zip or Rar a folder and move that compressed file, instead of moving the folder. It’s not about reducing space, but about tracking and moving one big file faster than lots of little ones.
@lekhakaananta5864
@lekhakaananta5864 2 жыл бұрын
How does this work? I mean that if you count the total time spent compressing and decompressing, shouldn't it still be longer? My understanding is that without compression, you're reading from disk A and writing to disk B. With your method, you read from disk A, writing to a compressed file on A, then reading the compressed file on A to write to B, then reading from the compressed file on B and writing decompressed version to B. If you only look at "copying a compressed file from A to B" then yeah for sure it's faster. But what about the total time with compression and decompression on either end? I don't see how it's faster. In fact if you read from and write to the same disk it could really decimate your throughput.
@lekhakaananta5864
@lekhakaananta5864 2 жыл бұрын
But I'm asking because I haven't actually tested this or done any research so if I missed something please enlighten me.
@christopherfortney2544
@christopherfortney2544 2 жыл бұрын
@@lekhakaananta5864 @7:28 dave explains why. Once the file is in a target location decompressing it there the basic structure is already there it has an exact drive to copy to in the directory/filesytem etc most decompression etc comes down to your processor as well. Most good modern CPU's fly through these tasks since they have a ton of cache.
@lekhakaananta5864
@lekhakaananta5864 2 жыл бұрын
​@@christopherfortney2544 I don't think that quite answers my question. I already understand why one large file is faster to copy, but that doesn't logically make it so that (compressing + copying + decompressing) is faster than only (copying). It would be faster if decompressing is somehow faster than simply writing files. How does decompression skip the filesystem overhead? Regardless of the decompression algorithm dependent on CPU speed, in the end it still results in writing files on a filesystem, so I'm curious how this would be the case.
@BakrAli10
@BakrAli10 2 жыл бұрын
@@lekhakaananta5864 Did you find out anything new about it? I'm interested to see if it's actually faster to zip then copy than to just copy.
@russellcannon9194
@russellcannon9194 2 жыл бұрын
I discovered long ago that copying 1 large file of a given size was much quicker than copying a large number of small files totalling to the same size. Your explanation is the intuitive answer. It is all in the overhead. I was wrong, however, in my having thought that the progress meter was being computed from file counts. I had thought that the percentage complete and time to complete were computed solely from the files done/total files to do. Thank you for clearing that up for me. Cheers, Russ
@null1023
@null1023 2 жыл бұрын
I always wished the system would identify how many files in a given size range there are during a copy, and base its prediction on that. It's already going through and adding up sizes, so it (ostensibly) is already using this information.
@maxbarbul
@maxbarbul Жыл бұрын
Thank you for the back story, it was entertaining to watch. I believe, progress bar is mostly about perception and ux than accurate estimate. It still feels like it is possible to make more or less stable prediction after copying has been prepared and analyzed. You should know by that time the spread of file sizes and disks being involved. So, you can adjust estimate based on known overhead. If some heavy disk load comes at the time of copy than it’s a unexpected circumstance (and user might be aware of it or made aware of). Comparing to driving, despite roads you’re going by have limit like 55, 35 miles/h, etc, there is an average speed which is around 25 miles/h so, directions algorithm should assume you’re going this average speed. Anyway, thank you for explaining all the details involved, it is in deed a hard task.
@charliecharliewhiskey9403
@charliecharliewhiskey9403 2 жыл бұрын
This guy seems to have had a hand in all of the most memorable parts of Windows to me.
@hanswichmann5047
@hanswichmann5047 2 жыл бұрын
Wow!! I actually understood most of what you were telling me & I appreciate it. To us non-coder types, just to get a feel of the challenges involved is illuminating. As always, Thankx Dave......
@furzkram
@furzkram 2 жыл бұрын
You could have explained the overhead involved in a single file copy in relation to the file size. Like updating directories and such (as in case of a power off or disconnect drive incident), you don't want to be left with corrupt files or file systems. If the time that needs to spent on this is half or more of the actual data transfer, like it is with very small files, and you have a huge pile of these, the absolute transfer speed will go down the drain, whereas it won't matter much when the file to be transferred is huge, because the time spent on the actions other than the mere transfer of file content will not increase with the size of the file.
@MR-vj8dn
@MR-vj8dn 2 жыл бұрын
I'm fine with the estimate jumping around. I get it why it does. What I've always missed with the the copy file dialog in Windows is: When a problem occurs with a copy, in DOS I was always given the choice of ignoring the problem and continue with the rest of the copy, not so much with Windows. Also, how I WISH there was a way of skipping the estimation / preparing of the copy in Windows. I quite often have to copy a large amount of files where I work and just the estimation can take 30 minutes on some systems, the same time that the copy itself takes. Annoying. Thanks for this show Dave!
@jordancobb509
@jordancobb509 2 жыл бұрын
Why in some cases does it take longer to calculate how long it will take to transfer the files than it would take to just transfer the files. It would be great if there were an option to bypass the dialogue altogether and immediately begin the copy process. In DOS when you copy a directory recursively it begins the copy immediately. There is no "calculating".
@EwanMarshall
@EwanMarshall 2 жыл бұрын
or start copy immediately while totalling up behind the scenes and fill in the details.
@racvets1
@racvets1 2 жыл бұрын
At 3:03, he hints at the answer... The dialog walks the file tree first to figure out how many of each operation it will do, xcopy just goes head first in. (I was curious too)
@EwanMarshall
@EwanMarshall 2 жыл бұрын
@@racvets1 sure, but one can be copying while walking, it'll slow down the copy a little potentially, but I've had times when the walk takes a more time than the actual copy.
@drozcompany4132
@drozcompany4132 2 жыл бұрын
@@EwanMarshall This was probably more of an issue with mechanical drives where reading the directories/mft would cause a seek which slowed down the file copy. With SSD this has minimal impact.
@DrHarryT
@DrHarryT 2 жыл бұрын
...And that is your solution.
@stoef
@stoef 2 жыл бұрын
Although I already knew most of the things you tought today, I still really enjoy your storytelling. Gread video!
@teslainvestah5003
@teslainvestah5003 2 жыл бұрын
file copy dialogue ideas for windows 12: 0. GPU-accelerated recurrent neural network predictor, informed with all current drive performance info, voltage fluctuations, and using the microphone to listen for the sounds of human frustration. 1. take the best available estimate, quadruple it, quadruple it, quadruple it, quadruple it, quadruple it, triple it, and then wait exactly that long while displaying a 100% accurate countdown. 2. LNAS-WDp (Let's not and say we did protocol) wherein all moves and copies become soft or hard link edits, and blocks of data are never actually copied until the user tries to eject the drive. 3. Replace all data drives with Microsoft OneDrive access keys, and let all file transfers instantly edit links in OneDrive. Coincidentally, Windows 12 shuts down whenever internet connection is lost. 4: friendly language dialogues only. "This may take a few minutes." 5. eliminate user-generated content and all file operations.
@EwanMarshall
@EwanMarshall 2 жыл бұрын
2) why not just make a reference and copy when data is actually edited (not useful across filesystems, but this is a legitimate thing we do on zfs and btrfs).
@T3sl4
@T3sl4 2 жыл бұрын
Not bad, but you forgot to put it on the blockchain!!
@RenderingUser
@RenderingUser Жыл бұрын
Honestly, the concept and design of the windows file dialogue is still far better than any other simple bar Provides info in the most concise graphical way Just need it to be more accurate with the calculations
@paulstubbs7678
@paulstubbs7678 2 жыл бұрын
The problem with the progress dialogue has never really bothered me as I can appreciate the complexities, however the bit that bugs me is when everything all but grinds to a halt, no disk access etc, then after a while gets going again, what on earth just happened! - why no feedback on why things took a nap for a moment.
@TishSerg
@TishSerg 10 ай бұрын
Made 99% in a couple of seconds and wait multiple time of that for the 100%?
@lukeemery7066
@lukeemery7066 2 жыл бұрын
I love when I get the notification that a new Dave's Garage video is online! Always fascinating!
@jonathansturm4163
@jonathansturm4163 2 жыл бұрын
🙂I was most amused by the typo: “accrurate”… I rarely saw the file copy time to complete estimate preferring to us xcopy with relevant arguments for most of the last 25 years. These days I use Beyond Compare on Linux and Win. Since there’s a chance I’ll use it on OS-X I purchased a licence that includes that OS too.
@VoidloniXaarii
@VoidloniXaarii Жыл бұрын
Spent a surprisingly long amount of time wondering about this over the years. Thank you
@truckerallikatuk
@truckerallikatuk 2 жыл бұрын
Since the OS walks the file system, it knows how many files there are of what sizes. Surely you could work out the top 10% biggest, 10% smallest, and a few average files from the middle. A selection of those files, and their transfer rates would allow a pretty good estimate absenting other software getting in the way. For a single file, bytes/sec would be a reasonable way to work it out?
@grumpyoldman5368
@grumpyoldman5368 2 жыл бұрын
Bin them into size ranges and keep historical data for how long it takes to transfer each size range, at least for local copies and maybe for network copies to see if the network is consistent or not. or just guess based on IOPs.
@bknesheim
@bknesheim 2 жыл бұрын
Then you have to now the cache size and how many files of a given size there is. Also that there is no windows updated starting because the system "is not in use" when nobody is tapping the keyboard or moving the mouse.
@seanvogel8067
@seanvogel8067 2 жыл бұрын
You would also have to take into account, when copying to and from different disks, their transfer rates, seek times etc.
@bingokemski4473
@bingokemski4473 2 жыл бұрын
Kinda similar to what I thought. I would think it would be easily possible to calculate how fast or slow a file type takes a drive, than calculate based on history or server data (because Microsoft spies on you for everything else anyway) how long that file would take, than finally show a detailed graph or data sheet based on colors per file type, depending on if they wish for it to be as accurate as possible, or as fast as possible. Thus, for those who need to know the precise time something takes and don't mind waiting; it can choose to show and do each file type based on order of smallest to largest or largest to smallest resulting in a time estimate when you add all the numbers up based on history and/or server data. I believe the reason windows doesn't organize based on file type for progress bars in file explorer is because the algorithm I presume wants to take the fastest route to transfer files, resulting in a time estimate that is less accurate than your kitchen oven. Oh, also I'm not a programmer or developer, I'm just completely guessing on all of this 😂
@bknesheim
@bknesheim 2 жыл бұрын
@@bingokemski4473 The reason is that there really is no algorithm . It just go by the next file function that give back the next file in the selected file structure. That why old directories can really kill performance on a hard drive because over time files get spread all over the drive.
@verstraetenandre
@verstraetenandre 2 жыл бұрын
7zip unzipping / zipping process, qbittorrent's download estimation, etc... They all have the very same issue! (Meteorology too, i'd say...) Ain't easy predicting our chaotic future!
@StrafeWasTaken
@StrafeWasTaken 2 жыл бұрын
Dave: *working and making literally everything* Everyone else at Microsoft: ... Dave: Blame me I'm responsible for it all
@luisdlcz
@luisdlcz Жыл бұрын
I just recently discovered this wonderful person. I am absolutely in love with all you have posted (that I have been able to see so far). I loved the miniature chairs at the end of some videos. I love your video introductions. You are so delightful to hear. Thank you so much for deciding to share and making all these videos. Thank you for your book.
@only1gameguru
@only1gameguru 2 жыл бұрын
From a full time Linux user: Dave is the best part of Windows
@jw200
@jw200 2 жыл бұрын
Yeah he is good. I wish there was more ex MS coders to talk about this all.
@mattbreef
@mattbreef 2 жыл бұрын
Yes, agreed, Dave is the best part of Windows. I think most of us Linux users just want to know why (insert silly/dumb/ridiculous/weird thing here) was done. We appreciate a good hack when we see one and like to see behind the scenes when we want to.
@johnshaw6702
@johnshaw6702 2 жыл бұрын
@@mattbreef I found out some 20 years ago that the best book on the Widows system memory management, that I ever read, was written by someone who didn't even work for MS, but that it was required reading at MS. Many people today who write software don't even know how it works under the cover, so they are often lost when something unexpected happens. Not that knowing always helps much, but at least you know were to look.
@AusSkiller
@AusSkiller 2 жыл бұрын
@@mattbreef As a Windows user I also want to know why MS does those dumb things, those dumb things are why I'm really looking forward to SteamOS pushing some Linux distros towards a much more user friendly experience and finally being able to dump Windows without having to spend half my time figuring out how to fix the latest thing Linux devs broke. Though from watching the LTT Linux challenge it looks like that is already a much less common occurrence than when I last tried Linux.
@eadweard.
@eadweard. 2 жыл бұрын
@@AusSkiller Yes, there's a user friendly distro coming out any day now - and there has been since about 1996.
@AdonikamVirgo
@AdonikamVirgo 2 жыл бұрын
I recently implemented a similar progress bar prediction engine for our app with TDD, and it is tough to get your head around how to aggregate and blend historical data with current data for a tree of operations. I'm planning to add a "This could take a while" fallback! Kudos to Dave.
@rahil320
@rahil320 2 жыл бұрын
Dear Dave. Your videos are awesome! Being able to get an insight about how Windows was developed during its early days is a rewarding experience. Being a programmer myself it still fascinates me that how you guys at Redmond developed such a huge and complex software which runs on so many computers throughout the world. Can you pls make up a regarding what kind of development tools you used for the development of Windows. Did you guys used Borland softwares at Microsoft?
@superlogicalman
@superlogicalman 2 жыл бұрын
thanks for explaining why copying/moving a bunch of small files takes longer than one big file. I use to deal with that a lot and never understood why.
@Elite7555
@Elite7555 2 жыл бұрын
Would be interesting to hear how different filesystems deal with IO operations like copying, and how that would affect estimations.
@shawnmulberry774
@shawnmulberry774 2 жыл бұрын
I can really appreciate someone who strives for accruacy in their predictions. Thanks for the fun ride. You have, of course, confirmed what I already knew from decades of this stuff. It is nice hearing it from the sources mouth. Hope you like what I did there.
@vertigo1055
@vertigo1055 2 жыл бұрын
It's a Real Treat to have someone like yourself, who's worked at Microsoft, to be able to explain some of these engineering challenges that happen in the programming and programs created world from Microsoft. It brings highlights not only to Microsoft, they're 1 company, but many other companies that make software that we use everyday. These challenges are taken for granted by myself and others; of course not maliciously but just because it's not in the front of our minds when we're doing each and every operation within Windows. Your insights are very much appreciated and I'd just like to say, Thank You! Cheers! Stay Healthy and Stay Sane!
@shannon208
@shannon208 2 жыл бұрын
Wishing you an yours Happy Holidays and a prosperous 2022. Thank you for this years content!
@petrovskikh
@petrovskikh 2 жыл бұрын
Dave, is there anything you can come up about when and how Windows 3, 3.1 started using hardware 2D graphics acceleration which boosted sales of specialty graphics cards on business and consumer computers and maybe paved road for the rise of 3D gaming on PC. Maybe history of DirectX if you were involved?
@RobCoy
@RobCoy 2 ай бұрын
So, I’ve just accepted this as reality over the years. Instinctively, when copying mostly small files over a VPN, I’ve always compressed to a zip, then copy/move and unzip. Nice to hear the explanation. 😊
@JaspervanStijn
@JaspervanStijn 2 жыл бұрын
A reasonable explanation for a mild annoying thing in the Windows OS. Thanks for that! This does prompt me to suggest another topic. Why does Windows search always sucked so much? I mean, it's so dysfunctional. Searching a simple file name within the folder/directory you are currently navigating yield slow results if any! Using a tool like Total Commander with it's built-in search option has been far better for ages. I can't understand why this still is the case. Could you shed some light on that particular subject, Dave? Thanks in advance
@sjswitzer1
@sjswitzer1 Жыл бұрын
I was tasked to create a similar percent-to-completion thing when network delays were an even more obvious problem, so I feel this deeply. I think I convinced them it was a fool’s errand but I don’t remember clearly.
@x260houtori
@x260houtori 2 жыл бұрын
I've always been very curious about how this was calculated and why it was so bad sometimes and accurate others.
@voca-chan7953
@voca-chan7953 2 жыл бұрын
These videos are oddly relaxing to listen to. I want more Windows stories to hear about!
@invertexyz
@invertexyz 2 жыл бұрын
Maybe someone else has suggested it as well, but I feel like the solution could have been improved by turning the time estimate into a progress-based average of each previous estimate. This way the fluctuations aren't as wild and the closer it gets to the end the more accurate the timing becomes.
@dunxy
@dunxy 2 жыл бұрын
Very interesting video, even if i did have my theory (files sizes, disk saturation and read/write fluctuations) on why it was near impossible to accurately predict transfer times its nice to have somebody (who's vastly more qualified than myself) confirm what i had concluded after many years of file copying and essentially ignoring the estimate! I sure im not alone in looking at the first estimate and looking at the clock and then coming back to finding it not even close to finished or if im lucky long done before the time is up! Subbed up.
@jeffreyparker9396
@jeffreyparker9396 2 жыл бұрын
I get that this is a really hard problem. The thing is that when using other utilities or doing similar things in Linux seems to give far more accurate and less chaotic estimates than windows. Free and open source utilities seem better at predicting transfer times than the tools related by a company worth over $400B.
@phat-kid
@phat-kid 2 жыл бұрын
true but apt-get just gives you a percentage with no estimate of time. but yeah this seems like mansplaining from dave.
@phat-kid
@phat-kid 2 жыл бұрын
also linux file systems are better than microsoft filesystems so that was probably one of his obstacles.
@jeffreyparker9396
@jeffreyparker9396 2 жыл бұрын
@@phat-kid well, in my experience even on ntfs you can get better time estimates in just about every file copy utility that provides them than the windows file copy. Also in my experience the older ones tend to be better than the new ones. Only thing that I can think of is the transfers have gotten less consistent, or the newer algorithms to estimate are just less accurate, at least on the copies that I have done. Granted I have not done any file copies in windows for quite a while, since I got rid of windows and only run Linux now. That means that my information could be old or for narrow use cases. I just remember the file copy estimates in windows 95 and 98 not jumping around as much as the XP ones and being more accurate and the windows 10 ones jumping around even more than XP and being even less accurate.
@AJenbo
@AJenbo 2 жыл бұрын
@@jeffreyparker9396 From what I have heard a lot of it is down to how Windows fs-filters work. It prevents proper caching, make file operation (not raw I/O) slow and the data is often streamed threw an anti-virus application which can vary the results greatly. This wasn't a thing back in 95 and do things where simpler and more predictable.
@elazarsirota
@elazarsirota 2 жыл бұрын
I want to know who the he-- decided to write on the Office installation screen "it would only be a minute" So many times I've had a customer breathing on my neck, questioning why is it taking so long? Here! It specifically says "would only be a minute" Thanks for the great channel! Awsome!!!! Another question (maybe you've answered it on a different video I didn't watch yet): Why Windows updates taking so long to integrate to the system, while in linux it is a matter of minute or two max? Thanks again! ❤️
@pjshots
@pjshots 2 жыл бұрын
When I upgrade my media drive, like from 4TB to 8TB, I've seen Windows take hours to calculate the data, before starting the move. I wish a button could be added to start the copy without the total size, etc. I tend to use Rsync instead, which can start straight away.
@Graham_Wideman
@Graham_Wideman 2 жыл бұрын
Are you using rsync on Windows? If so, which rsync program do you have?
@the_bw_trekkie
@the_bw_trekkie 2 жыл бұрын
This is why I use teracopy for big boi moves
@IANSYT
@IANSYT 2 жыл бұрын
why would you windows copy when you could just clone the entire drive over and then just expand the partition to fill the disk
@FloydMaxwell
@FloydMaxwell Жыл бұрын
The variability of progress bars explains how they have "evolved" today into some dots going around in a circle ;-) By the way, my favorite progress bar from "the early days" was Borland's that used an automobile dashboard, with the transfer speed/progress being the speed you were going.
@matts7327
@matts7327 2 жыл бұрын
That's fascinating. It would be interest if you would discuss what does break the progress dialog. I know if files get big enough it can be faster to transfer them using 3rd party software. Any thoughts?
@charleshines2506
@charleshines2506 2 жыл бұрын
I would give Robocopy a try. It comes with Windows 10 and maybe older versions too. It is a command line utility but there may be GUIs for it by now from various people.
@DanWorksTV
@DanWorksTV 2 жыл бұрын
every video gets even better. I'm hooked. please keep on doing things.
@hedonisticzen
@hedonisticzen 2 жыл бұрын
I think the new solve should be on an AI algorithm so it's making estimates based on previous copy jobs.
@Bobbias
@Bobbias 2 жыл бұрын
While that would definitely result in better predictions, it comes with the added requirement of recording all previous copy jobs, which will require hard drive space, IO to look up the data, and processor time to calculate the new prediction. I'd bet that would end up being problematic at best, or downright unworkable at worst.
@hedonisticzen
@hedonisticzen 2 жыл бұрын
@@Bobbias I could see that especially for smaller jobs. I imagine a good breakpoint could be established. Maybe a toggle in settings that people can turn on if they find it valuable. And while they're at it an option to turn off progress all together for those not wanting to wait for the file crawl process when copying.
@Bobbias
@Bobbias 2 жыл бұрын
@@hedonisticzen I think that's probably just overcomplicating things. I'd appreciate more customization for how windows handles things like that, but I can't see Microsoft adding that much to a system that is both a core part of windows explorer, and "just works" as is.
@hedonisticzen
@hedonisticzen 2 жыл бұрын
@@Bobbias yeah, probably better to leave to a 3rd party app.
@beardyface8492
@beardyface8492 2 жыл бұрын
Along with new minimum system requirements involving 4 cores 8 threads & 64GB of RAM.. err.. I'll pass & take the current best guess ty.
@jordanbarnsley2438
@jordanbarnsley2438 2 жыл бұрын
Thanks for the video Dave... Always really enjoy your videos!
@kingtrav
@kingtrav 10 ай бұрын
I'll take an inaccurate progress bar over an infinite spinning circle any day
@tylerg6241
@tylerg6241 Жыл бұрын
Thanks another great video. I love hearing your thorough explanations. Please keep up the good work you have a beautiful mind
@linuxretrogamer
@linuxretrogamer 2 жыл бұрын
Solution: implement a random number generator as a plecebo and just copy at your own pace. Wonder if anyone would notice the difference between the shells guestimates and just throwing some random figures to make it look you're working?
@gotbordercollies
@gotbordercollies Жыл бұрын
Your skill for explaining things is amazing! Thank you
@0M9H4X_Neckbeard
@0M9H4X_Neckbeard 2 жыл бұрын
What I'm wondering specifically is why copying things in file explorer is: 1. So slow 2. So unreliable (can't handle long paths) It's such a bad UX because nearly everyone will intuitively use file explorer to copy or cut and paste files and directories around. So it's baffling to me how this functionality hasn't gotten the attention it needs from Microsoft. The only proper way to copy or move files on Windows is robocopy, and don't get me wrong I love robocopy, but it should not be a requirement for a new user to know of its existence and to know how to use it. That's not user friendly. The file explorer copying should be as fast and reliable as robocopy, or at least 90% as good. But immediately choking and throwing errors just because source/destination paths are over 260 characters long? Come on, the average user just gives up at that point when they can't manipulate their files. My mom isn't going to figure out robocopy. It's frankly one of the most glaring problems in modern Windows; File Explorers shitty copying.
@DavesGarage
@DavesGarage 2 жыл бұрын
1) It's not, as I show in this video. It does a pre-walk which is expensive though. 2) Nothing works with paths >250. The shell works up MAX_PATH, I suppose.
@jw200
@jw200 2 жыл бұрын
@@DavesGarage Why prewalk? WIN95-XP just started copying, WIN7-10 just hangs there, calculates some useless stuff, "thinks" something and tries to calculate the correct estimate. Then finally starts copying or moving. By this time in XP i would have the files already copied or moved and forgotten about it. Why they screwed up moving copying files in WIN7-10 i have no idea. Dont touch whats working!
@0M9H4X_Neckbeard
@0M9H4X_Neckbeard 2 жыл бұрын
@@DavesGarage 1. Even disregarding the pre-walk time which is pretty apparent in the UI it's slower, but of course that's a big part of it yes 2. Now that's just not true, robocopy works fine, the open-source AlphaFS library works fine and even many higher level Libraries and commands work fine with extended length paths if you prefix them with the \\?\ unicode prefix. Why file explorer still can't do it in 2021 makes no sense.
@hawk_7000
@hawk_7000 2 жыл бұрын
@@jw200 I think it seems fairly clear that it does so in an attempt to provide better progress information when the actual copy operation starts, but in practice it's way too often that it's really not worth it. Instead, it turns out to be this well-intentioned behavior that just makes Explorer a less viable option for getting real work done.
@diablo.the.cheater
@diablo.the.cheater 2 жыл бұрын
@@hawk_7000 The predictions are not bad if the selection is simlar enough, like a lot of similar sized small files or sombe big files or a single hunge file. The problem is if you do operations that have like a couple of really large files, 20 medium sized files, 300 small files and 10.000 super small files. In those cases it usually fails to do predictions correctly
@just_jimmy
@just_jimmy 2 жыл бұрын
I loved the explanation and analogy on this one. As always, great content.
@PlanetJeroen
@PlanetJeroen 2 жыл бұрын
Not sure man, my progress dialogs on Linux seem to be quite accurate when transferring files, regardless of target.
@DavesGarage
@DavesGarage 2 жыл бұрын
Yeah, but I read in comp.sys.amiga.advocacuy that the Amiga is even better than Linux. So why are you using Linux?
@PlanetJeroen
@PlanetJeroen 2 жыл бұрын
@@DavesGarage wait, how is that any excuse for the increasing/random transfer times in windows dialogs?
@DeutscheParkhaus
@DeutscheParkhaus 2 жыл бұрын
In my short experience, the first glimse of duration seems to be the most accurate one. I might be wrong, but I can assume that the desire to make it better actually make the estimates more erratical. You know what they say, when you spend too much into something you either gonna make it perfect or worst that what it was before. In another note, love the videos and the stories, they are both great. Thank you!!
@giglioflex
@giglioflex Жыл бұрын
Yes, the problem comes down to the fact that the estimation is constantly using real time data. It's akin to going to a baseball game and constantly spitting out final score predictions. Unless the end result is extremely apparent and factors don't change, your prediction will likely be incorrect. At the end of the day, an AI might be best suited for this task.
@ZeoniaSD
@ZeoniaSD 2 жыл бұрын
I've never understood why this problem is so hard to solve. Surely, knowing large files will take longer and studying the OS overheads for small files gives relatively accurate measurements - then apply that analysis to files that are coming down the pipe in future. Sure, it has to be a continuous evaluation, but I find it hard to believe that (on an otherwise idle system with static throughput) a System32 copy could not be made more accurate than you demonstrated in this video.
@darrennew8211
@darrennew8211 2 жыл бұрын
In part it's because of the kinds of crash-proofing guarantees a system like NTFS provides. Some things have to wait to go to disk before other things can be started. You have to finish flushing out the used-space bitmap that you changed before you can write the directory or MFT entry of the file that lives in that space, etc. So lots of small files need *way* more writes, and writes that await other writes completing, compared to copying one large file. Even the order you copy files in can make a difference.
@Layby2k
@Layby2k 2 жыл бұрын
Now I know who to thank for the comical term 'Microsoft Minutes' I've been using for over 25 years when talking about how long something will take. Thank you sir, I'm sure it helped build a fun relationship with all my clients.
@RedStoneMatt
@RedStoneMatt Жыл бұрын
that comic you mentionned at the beginning is pure genius I love how it's both sided: you were surprised to find that you were the guy in the comic, but I'm pretty sure the guy who made the comic didn't expect the actual author of the copy dialog to read it
@AquaRedX
@AquaRedX Жыл бұрын
I am so happy to see the developer of Task Manager and someone who worked in Microsoft. It's a BIG deal for me as I remember the first time I started to use computers at my age of 7 at mom's work back in 1997. Windows 95 was magnificent experience for me.
@itsjustboarsley
@itsjustboarsley Жыл бұрын
You’ve solidified yourself as my favorite tech KZbinr. Thanks for everything mate!
@Intrexa
@Intrexa 2 жыл бұрын
On a related subject, I think the reason why on Win95 moving the mouse did actually make programs install faster would be an interesting story.
@OmniscientWarrior
@OmniscientWarrior 2 жыл бұрын
I think that has to do with PS/2 function. PS/2 devices work on an interrupt protocol but send very little info. Whereas USB works by being constantly pinged. This is part of why many modern motherboards still have PS/2 ports, which is great for when it starts to lag or jam from some processing issue so you can stop it. Extra fun fact: PS/2 devices have a faster response time than USB, but the difference is so small that it will have no impact on your gaming experience.
@playswithblades
@playswithblades 2 жыл бұрын
Thank you for the detailed explanation. I have wondered since Blindsauce 10 came out why the copy/move dialog was so insane (8.1? Never heard of her!) since the Win7/Vista's was more or less correct at least when it came to mechanical hard drives.
@MafiaSniper
@MafiaSniper 2 жыл бұрын
I always wondered why copying a bunch of small files always takes longer than a few big files. Thanks for the video Dave.
@Conserpov
@Conserpov Жыл бұрын
This is because developers are incompetent and couldn't make efficient preallocation. It'll take me an hour to eat a single tube of Pringles if I keep closing the lid and putting it back into the kitchen cupboard after taking every single chip. And it won't be "because chips are small and there are many chips", but because I'm doing it wrong.
HACKED!  How a Buffer Overflow Exploit works, plus Code Red!
25:50
Dave's Garage
Рет қаралды 196 М.
Behind the Windows Start Menu - Insider Secrets
17:59
Dave's Garage
Рет қаралды 239 М.
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 4,7 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 10 МЛН
The Day Microsoft Campus Crashed - Bedlam at Microsoft!
14:43
Dave's Garage
Рет қаралды 118 М.
Windows vs 30 Hard Drives - Can it Do it!?  Find out!
23:59
Dave's Garage
Рет қаралды 193 М.
The Windows Clock: Why Seconds took Years
15:05
Dave's Garage
Рет қаралды 206 М.
EXPOSED: The Windows Rootkit Scandal by Sony
20:47
Dave's Garage
Рет қаралды 414 М.
I Tried Using UNRELEASED VERSIONS OF WINDOWS!!!
10:18
MakhirTech
Рет қаралды 210 М.
REVIEW: Top 50 Worst Computer Dialogs by a Microsoft UI Developer!
18:17
Microsoft BASIC-80 In Secret? VTech's PreBASIC
29:04
8-Bit Show And Tell
Рет қаралды 23 М.
Windows Longhorn and the Worst Code I've Ever Seen: Dave Cutler
9:09
Dave's Garage
Рет қаралды 424 М.
The Mind Behind Windows: Dave Cutler
3:10:28
Dave's Garage
Рет қаралды 802 М.