News for hackers. Stuff that matters.
Re:Ask HN: Has the Apple Silicon excessive disk read/write i... by whalesalad on Thursday September 29, 2022 @05:19PM (#33027358)
M1 Mac Mini. I beat the heck out of this thing.

    SMART/Health Information (NVMe Log 0x02)
    Critical Warning:                   0x00
    Temperature:                        28 Celsius
    Available Spare:                    100%
    Available Spare Threshold:          99%
    Percentage Used:                    5%
    Data Units Read:                    83,875,891 [42.9 TB]
    Data Units Written:                 70,257,403 [35.9 TB]
    Host Read Commands:                 881,926,045
    Host Write Commands:                530,490,261
    Controller Busy Time:               0
    Power Cycles:                       3,350
    Power On Hours:                     496
    Unsafe Shutdowns:                   13
    Media and Data Integrity Errors:    0
    Error Information Log Entries:      0
One thing that really stands out to me here is everyone else has a `Power Cycles` measurement in the hundreds... but mine is 3,350 which seems odd. Especially because this is not a laptop and it never goes to sleep. It has only been rebooted maybe 10 times since it was purchased about a year ago.
Re:Ask HN: Has the Apple Silicon excessive disk read/write i... by themagician on Thursday September 29, 2022 @06:39PM (#33028285)
I think in some cases the drive goes to "sleep" when idle and it counts a power cycle when it detects keyboard/mouse movement as a wake. I have an older 2016 MBP with a 2TB drive that has just shy of 50,000 power cycles… which doesn't seem possible, since that would average out to over 20 reboots a day, which doesn't happen. And in 6 years I only have 361 unsafe shutdowns.

There was a time period where I had this docked with displays and the MBP would often wake up from sleep randomly, or from mouse movements. Never did quite figure it out.

Re:Ask HN: Has the Apple Silicon excessive disk read/write i... by Someone on Friday September 30, 2022 @03:15AM (#33031931)
That’s power cycles of the disk firmware, isn’t it, not power cycles of macOS? I don’t know how things work, but guess it might decide to shut down when idle.

It also could crash often, but if that’s the case, I guess you’d have seen data loss. If you run disk repair in Disk Utility, does it find problems with the SSD?

Re:Ask HN: Has the Apple Silicon excessive disk read/write i... by cozzyd on Thursday September 29, 2022 @07:00PM (#33028494)
How are your power on hours 496 then? Something is fishy...
Re:Ask HN: Has the Apple Silicon excessive disk read/write i... by cool_hw on Friday September 30, 2022 @08:31AM (#33033993)
I think that's because `power on` hours is talking about the disk being in the power on state, not the rest of the machine.
Re:Ask HN: Has the Apple Silicon excessive disk read/write i... by alyandon on Thursday September 29, 2022 @05:44PM (#33027677)

    Unsafe Shutdowns:                   13
That's a bit worrisome. Has your mac been freezing/crashing?
Re:Ask HN: Has the Apple Silicon excessive disk read/write i... by ChrisMarshallNY on Thursday September 29, 2022 @05:53PM (#33027803)
I hold the record for "unsafe shutdowns."

One reason, is that I am constantly using Xcode, which is a bug farm, and SourceSafe used to crash like crazy.

Also, some of the apps I'm developing don't start off, perfect. I spend a lot of time crashing.

The advent of the M1 seems to have ushered in a new threading system. The threads act weird, now (look at how long it takes to resolve your stack, on a breakpoint). I'm pretty sure it really doesn't like crashes.

And I stopped playing Borderlands 3, because it liked to crash hard.

Re:Ask HN: Has the Apple Silicon excessive disk read/write i... by smoldesu on Thursday September 29, 2022 @05:56PM (#33027837)
> And I stopped playing Borderlands 3, because it liked to crash hard.

In all fairness, it also does this on underpowered Windows/Linux hardware. It really is just a poorly made game, not Wine/Apple's fault here.

Re:Ask HN: Has the Apple Silicon excessive disk read/write i... by ChrisMarshallNY on Thursday September 29, 2022 @09:20PM (#33029673)
Not SourceSafe. SourceTree.

I did use SourceSafe, but it has been many moons.

In any case, SourceTree just released an update that seems to have fixed all the crashes.

Xcode still has some issue with the source code analyzer. Sometimes, it just hangs. In some cases, it’s not force-quittable.

Re:Ask HN: Has the Apple Silicon excessive disk read/write i... by alyandon on Thursday September 29, 2022 @06:01PM (#33027898)
Yeah, that'd definitely do it. I'm really interested in knowing if people see that stat going up without crashing/power loss.
Re:Ask HN: Has the Apple Silicon excessive disk read/write i... by cool_hw on Thursday September 29, 2022 @05:49PM (#33027748)
I'm not sure but I wonder if it happens when you do the macos install / recovery mode where it does repeated reboots.
Re:Ask HN: Has the Apple Silicon excessive disk read/write i... by alyandon on Thursday September 29, 2022 @05:58PM (#33027856)
I only see that counter going up when a system hard freezes/crashes or the system loses power. I'm not sure macos recovery/install would cause that.