this post was submitted on 24 Oct 2023
1706 points (96.9% liked)

Memes

45903 readers
1452 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] terminhell@lemmy.dbzer0.com 65 points 1 year ago (11 children)

To this day, I still don't understand what takes windows updates so dam long. Not sure about Mac, but Linux takes, what, 5 minutes at most if you've gone a while.

[โ€“] Espi@lemmy.world 75 points 1 year ago (3 children)

This is a byproduct of one of the largest and more ignored differences between windows and linux. The fact that Linux let's you modify files while they are open whereas windows doesn't.

This means that you can update a linux system by just replacing the files with the new ones while it runs. On the other side, Windows can't modify its own files while it runs, so instead it has a second entire OS to update itself, and requires a reboot to unload all the files and boot from the updater without locking windows files.

[โ€“] vacuumflower@lemmy.sdf.org 13 points 1 year ago (2 children)

In some sense this would even seem an advantage of Windows. (I know it's the fundamental reason for many hangs and freezes, but the idea that a file is a lockable resource doesn't seem that bad.)

[โ€“] uis@lemmy.world 6 points 1 year ago (1 children)

There is flock/fcntl for you. But locking is bad for performance too, especially in multithreaded enviroments.

[โ€“] vacuumflower@lemmy.sdf.org 2 points 1 year ago (1 children)

Yes, the thing is - it's a choice.

[โ€“] uis@lemmy.world 1 points 1 year ago

Then there is cooperative locking for you. It becomes a choice.

[โ€“] Espi@lemmy.world 1 points 1 year ago (1 children)

I think files being locked is really intuitive, which greatly helps new users. Allowing files to be modified or deleted while they are open makes it really easy to shoot yourself in the foot. For example in the video of Linus switching to Linux he was uncompressing a file and tried to open it while it was still uncompressing, which failed since the file wasn't complete. He didn't understand why the file wasnt uncompressing correctly. That can't happen on Windows, since the file being uncompressed would be locked.

I think there should be a 'lockable mode', and for distributions oriented to new users the home directory should be mounted like that.

[โ€“] uis@lemmy.world 9 points 1 year ago (1 children)

There IS 'lockable mode' since System V era. It is extensively used by package managers and similar stuff.

Deleting file does not actually deletes it from disk until last program closes it. And there are ways to open file such that changes to file will not be seen in program.

[โ€“] Espi@lemmy.world 1 points 1 year ago* (last edited 1 year ago)

Yeah with "lockable mode" I mean locking by default instead of requiring every program to specifically call for locking.

It would probably break lots of software, but only using such mode for the users home (or maybe even specific Downloads/documents/desktop/etc folders within the home directory) could reduce the impact.

[Edit] wait I think there is whole fs locking mode on mounting, with the "mand" option, going to test it.

[โ€“] o11c@programming.dev 2 points 1 year ago

ReplaceFile exists to get everyone else's semantics though?

[โ€“] ultra@feddit.ro 1 points 1 year ago (1 children)

Silverblue also does this, yet updates are really quick

[โ€“] Espi@lemmy.world 4 points 1 year ago

No, silverblue does all the work before you restart the computer, and the actual work doesn't involve replacing the OS itself but basically downloading some files and just checking a different git branch when booting.

[โ€“] herrvogel@lemmy.world 25 points 1 year ago (1 children)

Mac updates are less frequent but take longer. They also restart the machine. One difference though is that my mac never took it upon itself to start an update without asking my opinion.

[โ€“] DmMacniel@feddit.de 16 points 1 year ago (1 children)

/laughs in company enforced updates/

First they nag you. Then they nag even more. Then they blur out everything making your system unusable unless you hit update.

[โ€“] kamenlady@lemmy.world 5 points 1 year ago* (last edited 1 year ago) (1 children)

And it's all done with style, looking good while closing in on ya

Edit: you seem to have a pair of spare / /

May i borrow them?

I somehow lost mine.

ยฏ_(ใƒ„)_ยฏ

[โ€“] DmMacniel@feddit.de 2 points 1 year ago (1 children)

Sure. Knock yourself out

\ \ \ / / /

[โ€“] kamenlady@lemmy.world 2 points 1 year ago

Thanks - now i'm complete

ยฏ\_(ใƒ„)_/ยฏ

[โ€“] nickwitha_k@lemmy.sdf.org 15 points 1 year ago

Lack of proper package management is my assumption.

[โ€“] uis@lemmy.world 12 points 1 year ago

Very true for mainstream distros, but there's more: Linux updates in the background. No matter how long it takes(if you for example use Gentoo), there is zero downtime. And with kexec your system can be its own bootloader and can do insane stuff like starting new kernel without re-running POST, which is on servers is very important(because they have shitty BIOS that takes ages to boot).

[โ€“] notenoughbutter@lemmy.ml 12 points 1 year ago* (last edited 1 year ago) (1 children)

I hear it takes a long time on Macs too!

thankfully I don't have this problem on my Gentoo

[โ€“] vacuumflower@lemmy.sdf.org 2 points 1 year ago (1 children)

I'd be using Gentoo if not for installing software being something you have to plan for.

[โ€“] RickyRigatoni@lemmy.ml 2 points 1 year ago (1 children)

"Sorry boss I can't come into work today, I need to install important security updates on my fifteen arch and/or gentoo desktops and servers."

[โ€“] Lime66@lemmy.world 9 points 1 year ago

Mac updates are usually at least a GB in my experience, they take a while

[โ€“] sebsch@discuss.tchncs.de 8 points 1 year ago

They have no packages but do a full patch of the system data. Since this is the most complex approach and almost everything can go wrong down to the core they spend most of the time with checking and cleaning state.

[โ€“] nixcamic@lemmy.world 7 points 1 year ago

Sometimes I won't use Tumbleweed for a few months then boot it up and it will update every package on the system (literally full reinstall of the os and all installed software) faster than Windows can search for updates. What the heck?

[โ€“] vox@sopuli.xyz 5 points 1 year ago

and on linux you can upgrade while the system is running and then reboot

[โ€“] Blackmist@feddit.uk 4 points 1 year ago

The Nintendo Switch is the gold standard of updates for me.