by habosa · 4y ago · 0 comments
But when I overload it (dev servers running, Google Meet, Notion / Slack all up) it goes full spinning-beach-ball and sometimes takes minutes to recover. It seems like in particular it's much too eager to give 100% of all cores to something like "npm build" and doesn't leave enough power behind to run the UI. For example it's really common for my music to skip/jump when my code compiles, which is not something I'd expect on any modern computer.
My Intel MacBooks before this and my Windows laptop never have these kinds of issues. They definitely got very slow at times, but never totally locked up.
Had an M1 Mac Mini with 8GB ram for Lightroom+Chrome use, it did not cut it. 16" MBPro with 16GB ram is heaps better, but no developer experience on that machine.
I think buying as much memory as you can afford is a good advice for Mac buyers. 8GB is enough for Chrome + a few native apps, but would go for 16GB for anything more and now you can get 24GB with the M2, that is nice (like a 20GB machine + a 4GB GPU).
I find that almost any system fails under memory pressure, they just fail differnetly.
Having run Linux side by side with Mac OS since 2010, I'm not sure if it amazes me how much more memory the Mac uses or how efficient Linux is.
I had the 8gb for work, and i was routinely using about 10gb. Switching apps or desktops meant changing chunks of memory in and out of swap. it was noticeable most when switching 'spaces', since video memory is shared with that 8gb and was also swapped.
Honestly it was ms teams that was the worst offender for ram, even running all my dev environment stuff and other electron apps.
One was using 10GB, the M1 was using a little over 5GB of memory.
If I start an IO intensive task (eg a recursive grep or a backup), any task that involves pulling data from the swap (eg switching desktops) gets significantly slower, and I often see the dreaded beach ball
When I join a zoom meeting in my web browser, the system hangs for a few seconds. There's also random issues like my bluetooth keyboard lagging and then repeating keys for the first few seconds after it reconnects. It also intermittently seems to drop keys from my USB keyboard when connected to CalDigit TB4 dock and needs to be unplugged and re-plugged in multiple times.
Faster drives help a little, but the most practical option is to have enough RAM to use no swap at all.
I have a 64GB Mac and I'm regularly over 32GB. If I only had 32GB my ten core Mac would still grind to a halt.
Compilations would be lightning fast, but otherwise it feels exactly like you describe it.
However I've had a lot of issues with WindowServer. I have an external 4k display connected to my mac (Macbook Pro 2021 14"), which I usually scale down to 3200x1800 HiDPI. And 2-3 days after a fresh boot, I'll start to have issues such as the WindowServer process jumping to around 140-180% CPU, and staying there until I reboot (or restart the process). I'll also randomly have my cursor start "glitching" and jump around in a 20px radius around the place I want to point; but only on my external screen.
My feeling is that it has something to do with the non-integer scaling I'm doing , and WindowServer entering at some point a state which introduces rounding errors (which would explain the glitching cursor) or something like that. Also, switching resolutions (or even refresh rate) of the external display will temporarily fix the cursor glitching issue.
But my biggest complain, by far, is that there is virtually zero way for me to troubleshoot/debug the problem. As far as I can tell, there is no way for a debugger to attach itself to the WindowServer process, no documentation on internal workings of the rendering pipeline, virtually no logs, etc. I've been trying to narrow down those issues for 6-8 months, and I've stilled not been able to track it down
I’ve seen mine come to a crawl when trying to playback 4k video sometimes. Generally ok with HD.
With 4k, at 1:1 I basically have two choices of resolution : either 3840x2160 native (which results in tiny text, even on a 32") or 1920x1080 HiDPI (which is way too small of an effective resolution, especially at 32").
With 1:1.5 scaling, I can get 2560x1440p HiDPI, which seems to be more stable (and renders text more crisply), but still a tad too small for what I need.
A 5k display would fix those issues, but the price difference between 4k & 5k is way too steep to me for the marginal improvement I would get out of it.
However, I've never had an issue with 4k video playback, even on non integer scaled resolutions. What's more, they virtually never drop frames, even with the system under load. My bet is that their hardware video decoding pipeline is significantly better that what's present on Intel CPUs, and is able to better delegate video decoding to the hardware decoders.
However, get a set of electron-based apps in there (Notion and Slack from your list)... and seems to struggle.
Mine's typically orange/green during web dev and works fine, but if I open too many electron apps it'll go red and the laptop grinds to a halt.
I've done a bunch of stuff with my 16GB M1 Air - processor intensive java unit test runs taking ten minutes each, for instance, while also using microsoft teams and slack at the same time - and carried on using the machine as normal in between. I don't think I've ever seen the beach ball...
Try opening 25+ tabs in Chrome, and the whole system will slow to a crawl (with a measly ~3GB swap if you have 8GB RAM). Safari doesn't seem to have this issue. Force Chrome to aggressively suspend tabs, and the issue goes away. The slowdown also happens to me when running lots of Electron apps, and consistently happens around 3GB swap (strange, considering how small 3GB is, and how fast the storage is on M1 Macs).
Might be a bug in Electron, in Chrome, or in how macOS manages memory (this 100% survives across reinstalls with minimal apps installed). Regardless, I hope Apple is looking into it, and tries to address it either with a macOS update or by working with Google et al.
The only exception is when I'm running one of my own computer graphics projects, and I accidentally try to allocate frame-buffers which are an order of magnitude or so too large. Even then it's only locked up for a few seconds.
I would imagine there is some specific issue which is causing this failure for you. Maybe a bug in some software, or a hardware failure of some kind.
Like I said, it’s pretty minor but when I’m going into activity monitor it’s to check a process and the performance delay feels bigger than it actually is.
In general I would say that beachballs long enough to really notice are more frequent on my personal base spec iMac Pro.
Even when I let resource usage go a bit out of control I've never had it lock up. Early on, I had USB related system crashes, but those went away as updates were released.
I’ve definitely seen this a lot on my 8GB MacBook Air and it coincides with running out of memory. Open Activity Monitor and see if your machine is under memory pressure.
[1] https://en.wikipedia.org/wiki/Thrashing_(computer_science)
Still, I feel like the failure mode for low memory is different on M1. This isn’t my first underpowered machine but it’s definitely the one that stutters the hardest.
I did find that if I switch power on my desk fan _and_ my USB-C hub is plugged in there's a ~10% chance of a kernel-panic and reboot.
My M1 Air 8GB is great for everyday tasks but if I start running heavy IDEs etc. and start hitting memory pressure it acts like you describe.