Unofficial Hacker News companion — get notified on comment replies, and more.

"This message has been on the screen for almost two hours now." (opens external site)

339 points by firloop 3 days ago | unsung.aresluna.org | 226 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (7)

  1. First of all you are comparing very different OSes with very different behaviours under the boot. You can't translate how it goes in one OS to another one.[0]

    Also, "10 seconds" are clearly related to the laptops because they don't have the proper power button and need both the "ACPI shutdown" and "Force power-off". The latter should be controlled by the BMC but considering this is a tablet...

    And to clarify:

    > This is how I understand it: Windows now gets a signal whenever the user holds the power button

    in the TFA is exactly the ACPI shutdown signal received by the OS from BMC.

    Now:

    > What is the Windows machine doing now that it didn't do before that it cannot accomplish in the timeframe it's had for a very long time?

    Well, considering this is happening at the attempt to force a power-off then I can suggest this:

    - there were enough edge cases when the user needed to perform a forced power-off

    - quite unsurprisingly there not a lot of things still working when the shutdown sequence already initiated

    - there was some addition telemetry added to capture these edge cases but the forced power-off prevented the capture of the data would could help to diagnose the issue => plead was added

    And the things aren't fast because:

    - the last thing you want to do when you are writing the telemetry at the shutdown is to mess up the filesystem, up to the unusable state => so you do write it with the write caching turned off. This is slow even on SSD, just check it

    - (maybe, I don't know) this is a bit more than just a 'memory dump' so the system actually runs some tests - these take time despite all the bazillions of IOPS in tehe normal operations environment

    So you have at least:

    - the half of the OS aren't running - it's shutdown sequence

    - things aren't right in the first place - that's why the user is holding the power button!

    - things aren't fast because you don't want them to get even worse

    - last, but not least: at least previously there were the Surface tablets with the eMMC. These are slow.

    Now add the last ingredient to the mix: Average Joe who doesn't understand shit. He doesn't care about 'write buffers aren't flushed', he only notices the files he wrote to a thumbdrive aren't there - and blames the OS, Gates personally and whoever else - but not himself. Capisce?

    [0] even more amusing what you are thinking what Linux is just good and fast OS. I have a lot of different servers running different distros and versions - and most of them aren't shutting down fast nor even try to.

    Replies (2)
    1. >even more amusing what you are thinking what Linux is just good and fast OS.

      That's my experience even using Ubuntu; on my hardware it takes about twice as long for Win11 to boot as for Kubuntu 26.04, and about five times as long to shutdown (normal shutdown; updates take forever).

      Sometimes Windows decides after a while doing it's shutdown that it doesn't want to and pops a dialog (eg that another user is logged on {they aren't, it's a bug}). If you already left the room then it's just going to stay on until the next day.

      Kubuntu has had slow boot before, but it gives you simple tools to see what it's doing, it's not obfuscating telemetry nor keeping programs running that you don't want.

      When I say startup, I mean to the login prompt - going from login to desktop takes ages on Win 11 too, and it doesn't load up the previous application states/positions so you still have that to do. Then when you do load an app, eg Outlook, it tries to use the network before it is ready, claims it can't authenticate (it's right, but...) and messes up the session.

      Sorry, I'm moaning. Essentially I'm surprised you don't find Windows slow.

      Replies (1)
      1. I'm an old sysadm by the trade, naturally the first thing I do with a new machine is a fresh install without a vendor supplied bloatware[0].

        Also I'm vastly prefer portable apps (sometimes literally from portableapps.com) so I don't have a lot of things trying to run simultaneous when even the OS is still starting.

        But yeah, I had a stint recently re-imaging some laptops and on-boarding a one AIO... yes, by the vendor default things can be very ugly.

        [0] Thought with my last Yoga 7 I did a run for the two weeks with the bundled OS - because it was my first Win11 machine - so I could have taste of what comes and what I need to take care of.

    2. > Average Joe who doesn't understand shit. He doesn't care about 'write buffers aren't flushed', he only notices the files he wrote to a thumbdrive aren't there - and blames the OS, Gates personally and whoever else - but not himself

      Why should he blame himself for poorly designed systems and user interfaces? Why should he not expect Windows to eject a USB drive quickly when it doesn't even bother to communicate the reason it takes longer?

      We shouldn't blame users who still somehow manage to have standards instead of silently accepting that computers are simply always broken.

      And would it really be so catastrophically bad if the OS just flushed the buffers right after the file copy operation? Would it be that much worse than potential data loss?

      Replies (2)
      1. > And would it really be so catastrophically bad if the OS just flushed the buffers right after the file copy operation? Would it be that much worse than potential data loss?

        For writes to USB drives, that's a pretty good plan. But for general purposes, most file writes are followed by other, related, file writes, and buffering them can end up putting less strain on hardware since you'll be able to batch writes that went to similar disk areas. So flushing buffers immediately (which is not quite the same as not having buffers at all but comes pretty close) does have a real cost. It's not the obviously correct answer in all cases.

      2. > Why should he blame himself for poorly designed systems and user interfaces? Why should he not expect Windows to eject a USB drive quickly when it doesn't even bother to communicate the reason it takes longer?

        I would just point to a comment I made just recently[0]

        > And would it really be so catastrophically bad if the OS just flushed the buffers right after the file copy operation

        Yes. You vastly overestimate the speed of the USB storage. Even now you can buy a drive which is fancy-shmancy and have a Type-C connector and still be a slow USB2.0 device. The flash in is of course slow as hell because you don't need a fast one with 2.0.

        Now, USB operations are serial and half-duplex for 2.0 - and this is not a problem if you writing a single small file. This is not even a problem if this is a single big file - you would just need to wait. But if you are writing a multitude of small files on a slow USB storage over a slow USB version without caching - you can literally go make a cup of tea/coffee, drink it, get back only to find what you still somewhere at the first 20%.

        If you are using Windows when just plug a thumbdrive, open devmgmt.msc, disable caching for the drive and copy ~1000 small files on it.

        [0] https://news.ycombinator.com/item?id=50609695

        Replies (1)
        1. I did not say writing without caching, I meant flushing the cache after the entire file copying operation finished for all files the user had selected. Is it necessary to make every user always click on "safely remove drive" when you can just do that automatically? And if the user still copies another couple files then that's just the same as freshly plugging in the drive again.

          Regarding your recently made comment...

          > Make the interface for an idiot and the universe would make an even bigger idiot

          Make an idiotic interface design and your users will look like idiots.