782 points · by miles · 5y ago · 727 comments
The symptoms is always generally poor performance after the system has been running a while (4h to a week, varies), usually with WindowServer using CPU cycles non-stop and UI that felt choppy across all programs.
This seemed to happen frequently after "opening many files", like doing some recompiling with Xcode for a few hours, or indexing a large volume with Spotlight. Rebooting helps temporarily.
Today I realized that data read/written since boot was about 1TB in a few hours on a brand new OS install, and I traced this back to the com.apple.Safari.History process. Somehow having bookmarks and previously using Safari 15.x caused a huge amount of I/O that wouldn't stop - the solution was to remove all bookmarks and reading list items. Performance was immediately back to normal, no reboot needed.
So just logging in with your iCloud id, you could be "importing" whatever performance problem you're having on a new install.
I recommend you reboot and take a look at your disk I/O stats - maybe this will help someone!
I'm runnign on 2018 MBP, 16GB RAM + 4k external monitor. I experienced the same type of issues a couple of months back — high WindowServer CPU, mega choppy UI after a few days of use. Initially thought it was Safari, but it kept happening with other browsers as well. Researched it a bit and found a thread where someone suggested running both the laptop and the monitor on native resolution. Haven't had any problems since doing that. WindowServer sits at about 10% CPU and ~2GB RAM, current uptime 10 days.
https://support.apple.com/en-us/HT202043
Seems to me a different issue than what people are complaining about atm... but what do i know, might be one and the same.
Edit: very weird... Looks like this setting was reverted for me. I just updated from 11.? to 12.0.1, so I wonder if the installer undid some of my changes. No performance issues, but I've literally just my computer on for the first time after the upgrade.
I'm also pretty much always plugged in. It's likely that the issue was manifesting before switching to a 4k monitor, but after switching the issue became unbearable. E.g I'd wait 2-3s to switch between windows or desktops. Running both screens on native resolutions and I'm switching between windows near-instantly.
¯\_(ツ)_/¯
No, for many people it was Rosetta apps.
BTW, Apple totally lied when they said they "fixed it" in an update and it was only a "reporting issue". It's not fixed, and it was absolutely f'ing not a reporting issue. People's SSDs have already failed because of this, and obviously they're soldered.
Any links to more info about this? I’ve had my eye on a 16” Pro with an M1 Max for a couple weeks now but want to make sure it won’t have issues like this.
In one case I also had it crash while I was out, with every open program opened several times on the dock. I didn't do this and in fact macOS doesn't let you do this. Everything was hanging completely so I had to turn it off and on again :)
But this kind of thing does not instill a lot of confidence
See open(1), in particular the -n flag.
Quitting Safari seems to resolve the slowness, but not always.
Along with iCloud syncing for one reason or another have relatively higher probability of being messed up during update, and you end up with a scenario where something is to probably synced and it keeps trying it over and over again.
Thanks for such a quality app.
Im only using it to fully turn off my built-in monitor while working in clamshell mode and then manually setting the external’s brightness.
So no sync mode (and not even sunset sunrise)
But solved my problems nicely and no more reaching out to my external monitor’s buttons in Narnia
If I’ll keep using it I’ll make sure to caffeinate you ;)
Every time this happens, Xcode uses about 4GB of RAM (probably because of the monolithic UI storyboard of Lunar) but it should still leave enough memory for my other non-memory hungry apps.
But then I open Activity Monitor and I see WindowServer using ~80GB of memory [2]
The only remedy is either `killall WindowServer` or a full reboot.
I've been using an M1 MacBook Pro and Monterey since the first developer beta but this only became an issue in the last 2 months or so.
This is an intel Mac though. I haven’t seen it on my M1 at home.
https://bugs.chromium.org/p/chromium/issues/detail?id=115840...
I wish I had found this website when my MacBook Pro was still alive, maybe Chrome actually killed it after all. The low performance was so bad I moved to Windows 10 ("the last Windows system" they said), but after it notified my system can be upgraded to 11 I quickly moved to Ubuntu. I'm currently experiencing a few hiccups and reduced them with some memory tweaks, but still the experience is much better than Mac and Windows.
To answer your question, I have a total of 73 windows open at the moment. 11 of them are from applications with a single window open, 8 are from iTerm, and 54 are from Sublime Text. I am aware that is quite a lot for Sublime, but that is just how I use it.
Regardless, I just quit Sublime Text, and the memory usage only dropped to 8.9GB still absurdly high for having 19 windows open.
They sell you a very expensive machine that doesn't work.
Your reaction?
Buy a more expensive one from the same provider!
I use a dual xeon, 64GB Linux desktop which performs reasonably well.
A colleague runs a Linux machine with 16GB of ram. Compiling the same project can cause OOM issues for him and the kernel starts whacking processes.
Even if he closes all non-essential processes, his builds run 10x as long as mine due to memory constraints.
My main point here - let’s not pretend your 4GB machine is being used to do any intense local work.
The inverse of this is seen on my Intel MacBook Air and my colleague’s M1 MacBook Air. The compilation time for our code is 35 minutes or more on my machine and only 3 minutes on the M1.
While the tooling and system stability are better, the desktop and app experiences are far worse. It’s buggy, half-baked, and crash.
I regularly hop distributions and do clean installs to see if that will fix it but they’re all the same — pop!_os might be slightly more stable in that regard.
I’ve been using Linux since 1992. I’ve had several year periods in the 90s and early 2000s where Linux was all I used.
I can ditch GNOME, KDE, and XFCE and go back to twm or i3 or fvwm or Window Maker, but I’ve moved beyond thoses experiences. I want a more functional desktop.
But, I see now why I paid more to put up with Apple.
I like how x86 is a power sucking hog for the performance and enthusiasts response is to go out and buy more power sucking hogs!
Someone wasn’t around when Linux could figure out what to do with a USB device. Spectre? Meltdown? What are those?
It’s almost as if engineering is hard and being a critic is easy.
Kind of like numbers, language allows for a never ending, so big in a sense, corpus of little ideas.
Two concrete examples: trackpad feels like shit on both Windows and Linux, installing or updating drivers and some apps on Windows constantly switches back to legacy modes to display the installers (with different fonts, no subpixel smoothing etc.). If it's not a deal breaker, it is annoying as hell and something that almost never happens on my Mac.
Changing brands becomes more of an ordeal than staying.
It's extraordinary to find more than a handful of anecdotes about any particular model number of consumer Windows laptop that happens to be on sale at Best Buy today. There are so many, and they cycle so rapidly.
Also, I get along just fine with the last few Macs I have had...
[1] https://github.com/tpoechtrager/cctools-port
[2] https://github.com/apple-cross-toolchain/xcbuild
[3] https://thi.im/posts/cross-compiling-for-ios-part-1-build-sw...
Note that I've had Dell XPS laptops that were configured with the same price point as a Macbook and while nice...those devices definitely didn't have the same attention to quality that I've experienced with Apple products. So it seems unfair to make such a broad criticism against Apple users at large!
I use a MacBook trackpad to make diagrams, for 3D modeling using Blender and FreeCAD, to draw schematics and route PCBs with KiCAD, and whatever else you’d otherwise do with a mouse, and it just doesn’t get in the way.
Over the years, I’ve been forced to use work supplied top-end Thinkpads, HP, and Dell laptops and none come even close to even the trackpad of my long retired, lowly 2009 MacBook Air 11”.
I don’t really care whether I use macOS, Linux or Windows: they all run the same applications. I also don’t care about the price of a laptop: what does it matter that a tool that I use day in day out for years costs $1000 more?
I care that it’s usable.
MacBooks are usable for things I use them for. The other laptops are not.
That's how you sound.
What is the alternative platform that runs Xcode but with the memory leak bugs fixed?
A finance professor once told me “if you don’t vote with your wallet you don’t get to complain”
Looks like the 16gb model is now artificially made obsolete as well - you are supposed to buy the 64gb one.
It was a measure to increase product longevity (e.g a slow phone was seen as better than a phone that shut off randomly when voltage dropped)
I ran heap(1) on WindowServer [1] but there's nothing in there standing out so maybe this is a red herring.
[1] https://gist.github.com/772687dba65a35cca8cd707fcfda99c0
I have no idea how to troubleshoot this and don’t really have time for it when working on hotfixes, I just want to get back in a state where I’m not facing an imminent system lock up where I can’t even save my recent work.
Although that particular issue will show in application footprint, not WindowServer. I see WindowServer buildup on one of my M1s still, even in 12.1 beta :(
https://randomascii.wordpress.com/2018/02/11/zombie-processe...
I use: VScode, Idea, iTerm2 (with x86 brew), Logic (and lots of plugins), FCPX, Live (x86, and lots of plugins), Slack, Reeder, MS Office, Spotify, Chrome and other stuff. MBP M1 16GB.
What I do get, is some bluetooth issues (e.g. affecting the mouse cursor. If you start the bluetooth deadmon it fixes itself for a day or so.
Nope. My AirPods have regular issues and my Magic Mouse regularly disconnects.
I hoped my next M1 would solve it. Guess not.
I think you're right about this. I have a pair of JBL headphones and it will just randomly become completely garbled during a video conference under Windows.
I have to disable/re-enable Bluetooth to "fix" it. It's a mess.
I'm more familiar with BLE, which is better, but even that has a completely weird "characteristics" protocol that you have to use. Want to send a big blob of data? You have to manually cut it up into 20 byte chunks to send it over "notifications".
It's like they looked at the OSI model and thought "ah yes this looks right! we'll implement all the layers!"
The bug isn't that bad if all you use bluetooth headphones for is YouTube, video chat, and music but it makes Anki language learning decks with audio almost unusable.
Doesn't really make sense for a new CPU/GPU to fix the problem, what you want is for Apple to stick in their own networking cards.
See my other comment in this thread about how i solved "windowserver".
Bluetooth issue was a hw proximity issue for me. My CalDigit hub was mounted right below my Macbook. I noticed when I moved my MacBook's location (still connected to hub), the bluetooth issue when away.
It's worth a try if you have a powered accessory near your macbook and haven't tried this already, but...
I do still get the issue once in a while, but I can now at least just turn the keyboard/touchpad off/on and it goes back to normal whereas before, it happened all the time.
Once in a while I still have to Shift+Option+"bluetooth menu icon" and reset bluetooth module.
I know these are just work arounds, but at least it allows me to get back to work and only have to deal with it weekly instead of not being able to use bluetooth at all.
Edit: just upgraded to 12.0.1 and noticed Shift+Option+"bluetooth menu icon" to reset bluetooth module is gone!?
Only issue I've seen with it is some bluetooth flakiness sometimes the way you mentioned. Other than that, it's been a rock solid device and the only reason I haven't upgraded to one of the new MBPs despite really wanting one...is because so far I haven't been able to justify it yet considering how rock solid the M1 has been!
My guess is faulty hardware. I've had plenty of those on the 2018 MBP (keyboard getting stuck, bulging battery and dead zones on touchbar). Waiting to see if the QC is better with new M1 Pros before buying.
Otherwise I have been very happy with the laptop.
That sounds like a big bug and a very possible cause.
Can you elaborate on this? I think i was hitting this as well. Specifically when I scroll or type, it "halts" for a split second every other second. Originally I thought it was a video card failing or something but after a long time I finally traced it to Bluetooth. Since then I have been using wired connection on my keyboard and mouse.
What do you mean by "If you start the bluetooth deadmon"
I've heard this happens when you have some USB-C hubs attached, which I do. Not sure what the connection is -- but I think my Anker hub does causes this.
>What do you mean by "If you start the bluetooth deadmon"
Sorry, I meant: "if you restart the bluetooth daemon", e.g. "sudo pkill bluetoothd".
a little unclear if you don't have a hub, or do have an Anker hub, but try moving the Anker hub far away from your Macbook and see if you still have the bluetooth issue. You need a USB cable (depending on what's the hub is you might need a 3.1 Gen2) long enough.
For me it was a hardware proximity issue. Powered external devices interfering with the Mac's bluetooth.
I'd wager most people on this thread do not actually own an m1 Mac.
My experience (and that of others I know that have them) has been nothing but stellar.
Because such generalizations are just encodings of personal likes/dislikes in the form of general claims, they lead to lame discussion.
https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
I have absolutely no doubt that this person is having bad memory leaks (though their narrative about SoC memory or other elements seem unlikely to play any part whatsoever). Software has faults, and something in their environment or stack is causing problems. I have an M1 Mac and used every beta of Monterey, and now the release, and have had zero problems. Like nothing at all. I use XCode, IntelliJ, Chrome, Safari, Excel, Logic Pro among others all day long, heavily. Loads of other people seem to be having no problem with their systems. Eh.
If something has literally millions of users, saying "{X} happens" will invariably draw out someone with a similar anecdote, but that doesn't mean it happens to everyone, or even a significant minority. Some unique combination of factors is yielding a poor user experience, and hopefully there is a resolution, but it just doesn't seem likely that it's widespread.
Most recently, the Thunderbolt 3 issues were responsible for countless hours of lost time rebooting my laptop last year, and I’m not alone: https://rachelbythebay.com/w/2020/10/03/repro/
The weirdest part was that this occurred with only Apple products connected to my laptop. I couldn’t even blame it on 3rd-party products. It also worked perfectly fine before and after the range of affected MacOS versions. There were many reports of the same issue all over the internet, so I know I wasn’t alone.
Then one day Apple finally fixed the bug and everything was back to normal. But all those months of constant reboots and crashed and failed workarounds left a mark on my overall experience.
So while the Mac experience is generally good, it’s still far from perfect. Weirdly, I’ve had far fewer problems with my Windows system in recent years.
Its not like Apple doesn't release faulty hardware and software. Butterfly keyboard is a good example of faulty hardware and OSX Lion crashed all the time on the Macbook pros with discrete GPUs till Apple patched it.
Why do I see so many pro-Apple posts then? And even posts directly pointing to an Apple ad.
My Mac used to expose the same kind of problems, that's why I switched to Linux on non Apple laptops years ago.
My feeling was that the quality of the OS went down constantly and apparently it's not coming back with newer releases.
https://www.theatlantic.com/family/archive/2021/11/group-nar...
I recently had to use a Windows laptop for work, and god I hate when windows becomes "not responding"
On the last few versions of Windows, it doesn't really feel like my computer anymore. I use my OS to lay out the structure of my thoughts, ie. I'll have text documents open, arranged in a certain way, project folders open, image editors with sketches in them... then Windows Update wakes my computer while I am sleeping and force-closes everything; I awake to a blank slate. It's as though someone has snuck into my house in in the middle of the night and swept everything off my desk and into the trash.
It does suck that you gotta do this, but at least there is a way.
It’s just a terrible design.
Performs like a champ with excellent battery life. I keep waiting for it to start giving me some slowdown as our apps become more complex, so I can upgrade to one of the shiny new laptops...but so far, it's been a champ.
This happens every single year where there are annoying/serious bugs that takes a while to get fixed as the focus is on P1 showstoppers.
~/Library/Caches/com.apple.appstore, delete contents
/private/var/folders
click through the various letters and delete any com.apple.appstore folder contents.
rebootWikipedia shows the exact version number of the latest releases for each.
To be honest, I’m probably not going to upgrade again at all until the new MBPs seem stable enough for me to buy. Nothing in Big Sur or Monterey seems compelling enough, apart from M1 support and access to iOS apps, for me to risk the disruption.
Now, if I were to update my hardware that won’t be an option.
I will probably soon-ish update to MacOS 11 "Big Sur" (released November 2020), but not yet the just-released MacOS 12 "Monterey".
On new hardware released with Big Sur? To be clear, what I was saying is not an option is “downgrading” new hardware to an older major version than the one it was released with.
When it did happen though, it seemed ludicrous: that a single app could in a matter of literally minutes start burning through gigabytes of memory, to the point where the entire system seems to freeze with no option except to kill Firefox (and everything it may be doing) to continue. And, like the author, I had started keeping Activity Monitor open so I could pre-kill Firefox at a point when I knew it would probably start to be pushing it.
It never feels good to baby-sit a machine. It feels even worse when it’s an expensive new machine. And it means that the operating system is failing at its most basic task (arguably the entire point of having an operating system) — to manage resources well.
Before about 2001, that would be a bold claim indeed in the Mac world. Pre-emptive multitasking only became a thing with the transition to BSD-based OS X
That one had me yearning for a linux grub menu entry for "previous kernel".
I doubt it's directly hardware related, though it's possible it is scoped to special MacOS logic that only is executed on M1. My assumption has been that it's actually coming from shared libraries that Apple-owned processes share, because I usually don't notice it happening for non-Apple processes.
See https://bugzilla.mozilla.org/show_bug.cgi?id=1735345#c18
(edit: rephrased to mention macOS 12)
Until you see a WWDC that doesn't announce a major release of macOS, expect more of the same.
To any involved Apple folks here, I feel your pain, and I'm sorry.
Also, it seems like a relatively easy memory leak to fix, hopefully in an upcoming OS update.
Looking forward to the fix.
We all do now
Given the similarities between both machines and application usage, I can't help but suspect some type of hardware issue is plaguing a percentage of machines out there.
Assuming the iCloud-enabled machine is the one with the problem, it seems odd to jump to the conclusion it's hardware? That's a lot of extra code running on the machine; not just iCloud itself but every single iCloud-aware app. There's a lot of additional potential surface area with iCloud enabled.
Edit: A recent reddit thread may have correctly identified the WindowServer leak being related to the amount of full screen video played. My impacted MacBook is often used for Netflix/Hulu content. https://www.reddit.com/r/apple/comments/qos5n5/memory_leaks_...
The Activity Monitor screenshot in the embedded tweet even explains what's going on. The system has 64G of physical memory. A bit less than 50GB is in use (so 14G is completely idle, wasted). 7G are wired (kernel, device buffers, etc.) and can't be paged. 38G are in used caching things for applications, and about 180G worth of compressed data (mostly zeros I'd say, since it's only using 5G of real memory) has avoided being paged out.
There is literally no memory pressure in this system, and no evidence of leakage in those numbers. Darwin deliberately tries to keep as much DRAM as possible live to minimise page-in and decompression costs; it literally can't find anything worth paging in or decompressing to fill those last 14G. That's a vacuum, not pressure.
I'm not going to debate the stability issues that the article author is complaining about; I do hope they have all of the crash reporting features enabled so that their crash data can be used by the various developers to help fix things.
But I would hope that before writing yet another stupid clickbait article, they pick a topic they know something about.
Second, I have one of the new new systems with a lot of RAM and when WindowServer takes up 20-30GB of RAM, and other apps take up 2-10GB more than they should, I see high memory pressure. There are other reports of this. Don't extrapolate too much from one screenshot showing a system shortly after reboot.
It's possible that most of the bloat from this bug gets pushed to swap and harmlessly stays there until reboot, to leave space in DRAM for actually useful application memory, but the typical user doesn't have guarantees of this based on the instrumentation available to them.
The 38G isn't "cached app memory" (there is no such thing), it's actual resident memory, calculated as the sum of the second column. The same as "RES" in Linux. There is no memory cache that differentiates apps from non-apps (whatever that is?), there is just regular file memory cache, which is labelled below the application memory section, shown to be using 13G.
Every file you open on your system (read: app you open, file that macOS accesses, etc.) will be automatically read into the file cache and left there until some event, such as not having any unused memory since all of it is used as cache, requires some contents of the cache to be evicted to make room for an application.
If this system had been low on RAM, this "Control Center" app would have been paging to disk to make room for the gigantic 26G it "needs" (the fact that it needs this much is a bug/leak. It should not be showing a number that high in that field, which is the resident memory required by the app.)
In summary, unused memory is meant to be used for caching files (see https://www.linuxatemyram.com/). The cache is lowest priority and almost considered "free" memory, in the sense that the cache can be evicted anytime to make room for actual application resident memory. In this case, "Control Center" is using 26G of resident memory, not cache (which is not shown in that column at all.) This is a bug/memory leak.
Over the past several months we've been very busy porting our Android- and Windows-based 3D Capturing app to iOS. We have quite a bit of OpenGL (ES) code that needed to be migrated. After a couple of initial hiccups things appeared to work well, however something was off. OpenGL code that's fast and completely unproblematic on Win/Android caused weird CPU stalls and after some minutes of app usage typically everything just crashed. After some digging and debugging it became clear that certain OpenGL function calls were leaking memory like crazy, as in several MB per call. Concretely I'm talking about glBlitFramebuffer() and glCopyTex(Sub)Image2D() . Both of these operate on frame buffers (memory that's often as large as your app window size) and they were internally allocating new buffers on every call and apparently never freed them.
Now of course this is iOS and the article is talking about MacOS but it's quite likely that Apple derived their M1-targeted OpenGL implementation for MacOS from the iOS version which has always targeted Apple SoCs.
Given the amount of OpenGL-based software still out there and Apple's deprecation of OpenGL in favour of Metal (they just don't seem to care any more) those kinds of large scale memory leaks don't really surprise me. OpenGL is still pretty much everywhere and if you have bad memory leaks in core framebuffer operations things start to accumulate very quickly.
FWIW, I notice the memory leaks particularly with “Control Center”, which is an Apple extension to the task bar. I wouldn’t expect any Apple-written code to be using any OpenGL; it should all be in Metal.
ioreg -c IOGraphicsAccelerator2 -r -l -a
The PerformanceStatistics and IOReportChannels dicts are particularly juicy, and under IORegistryEntryChildren you can see which processes (IOUserClientCreator) are using what OS-level GPU resources, including Metal vs OpenGL API.
If so, try setting Mac to use the discrete GPU all the time and see if it keeps happening. MacOS flip/flopping between discrete and integrated GPU was an issue for me. I can only imagine what MacOS might be doing during development of a graphics app such as yours.
I used to do software development, running a million things at once and in decades I can't remember last time I saw the out of memory error. Sure, slow downs due to swap, but never straight up the error forcing me to kill apps.
On the M1 MBP, this error modal would pop up dozens of times a day. I would literally be constantly be quitting any app i'm not directly working on. It'd take a few days to get to this point, but at this point nothing other than a reboot would get it back to normal. The memory total for the apps running (plus the background stuff like Dropbox) was way below the built in 16GB, not to mention zero swap to SSD. Somehow there must be a leak in the OS.
Currently sitting at: WhatsApp Helper (Renderer) 3.57GB WhatsApp 1.37GB Dropbox 1.13 GB WindowServer 1.05GB etc.
This is not normal…
The sound device will just drop working randomly whether 3.5mm Jack or Bluetooth. Restarting the service sometimes works sometimes not, at first I thought it was MS Teams but didn't seem app specific.
Makes video calls painful knowing either sound or mic could just stop working at any time.
Apple's attitude towards endpoint security software is basically, "it's stupid and you shouldn't have them installed, our recommendation is to uninstall them" so that's that.
"Third party “endpoint security” software may cause slow simulators, system freezes, or prevent debug processes from running in simulators reliably. This sometimes manifests as debugserver disconnections or simulator applications receiving a SIGKILL signal. (55853555)
Workaround: Uninstall the third party software."
https://developer.apple.com/documentation/xcode-release-note...So far this has worked for me, and I'm able to get two full day's of battery life. I'm away from my desk far more frequently now.
Edit: My control center is using around 1GB of memory. Low enough that it wasn't causing issues but still concerning. It appears there is a memory leak somewhere, hoping a bug-fix is pushed out soon.
I have the M1 Pro Max on my to-buy list, but I'm going to wait a bit to make the purchase since I really can't have my $4000 workstation crashing on me.
Beside that, it's been fine though.
It ran on her 2012 Intel MBP and whatever dayjob MBP I had in the past.
I still have an Intel MBP provided by my employer. I don't keep a personal laptop, it would just gather dust 99% of the time.
Sometimes it just crashes. This has rarely happened on Linux. This sometimes happen on MacOS to the point where I don't trust it. At all. Ever. I have to save everything I'm working on constantly, just in case. Sometimes apps just stop working. Right now telegram just won't start. No matter what. Never happens on Linux. Sometimes it won't wake up from sleep. Never on Linux. Sometimes it loses the keyboard and/or mouse. This never happens on Linux. Sometimes the screensaver works, sometimes it doesn't. Grep is slow, waaay slower than on Linux. So are other random CLI things. How? Why? Docker... don't get me started, and don't make excuses. (~700 people at Mirantis and ~150k at Apple can't figure this out?) Everything runs slower on MacOS. Every. Thing. grep, sed, awk. Why don't sed, awk, grep, etc.. all the Linux things work quite right? I need to add something else on macOS to get them to work like they did on Linux. It's always "almost" but never do they work like I'd expect. I need to remember to turn off my monitor at night, because some nights it just randomly turns on. Never on Linux. Maybe it'll wake up, maybe not. I figured out if I unplug my headphones and/or webcam I can force it. All of these super basic things just DON'T work. It sucks. I could forgive Linux, but not an OS and Hardware made by the biggest company on the damn planet. I get it, this is faster than a 4 year old laptop. But that's not what I'm comparing it to. I'm comparing it to a 5 year old system I built myself from random parts that runs an open system operating system. That's a pretty low bar, and it doesn't win.
If you mean how they work, like command line arguments and such (and not just speed), that's because macOS is based on BSD and thus using the BSD and not GNU versions. That's not really a "not right" thing, it's just different, and would be the same if you used any other BSD like OpenBSD, FreeBSD, etc.
I used GNU ones without the `g` prefix for a year or two and never ran into trouble because of it.
M1 Air here that I've had for almost a year with zero issues, and I also use Firefox and watch a lot of youtube.
It's been this way since OSX day 1 IIRC, so it's a little surprising the apple versions are still apparently inferior (if the grandparent poster is anything to go by, haven't used em in years), but it's conceivable the CLI just isn't an apple priority.
I wish they'd just give up already and copy as much (of the CLI-relevant stuff) as possible from linux, and accept that they'll need to give up a tiny amount of control over a small sliver of their OS - a sliver that they never wrote in the first place and also can't really change the api of, because that would break all kinds of things, which renders their ability to close source somewhat moot anyhow. And most users never use this stuff! The linux-conventional gnu variants are well maintained and usable in both MS world and linux world - having CLI scripts that are more easily portable across three OS's would be great. Apple's toxic control-freak nature really hurts here, and mostly just their users. I really don't get it.
Anyhow, there are workarounds (but e.g. homebrew is hit and miss), it's mostly just an annoyance they're even necessary.
Apple is very fond of locking down their hardware. Google took a very strong stance against the AGPL-even banning it from their own public code repo service before they shut it down.
I've loved my M1 MBA but I purchased it specifically knowing I have a primary x86 workstation to fallback on for heavier tasks and I'll often give up trying to install some dep/run some program on the MBA and switch to that. It still works great as a general purpose device and I do some dev on it but if you're looking to do all your dev on it, I'd be cautious.
I feel like many many engineers like me would easily get a reliable laptop with MacBook Pro like specs. The problem is that simply does not exist.
Excellent hidpi display.
Ryzen 5000 series CPU with its low power draw.
Good build quality.
Reliable support system.
Non weird components such that a recent release of popular Linux distribution would “just work” without needing manual tweaks.
In my experience, you get 3/5 in the above list at best. Framework laptop hits several of those points but misses out on Ryzen. Another contender on my list is ASUS 14 OLED with Ryzen - I’m worried about their support system though.
[link redacted]
None of these things happen to people, much less altogether.
>Everything runs slower on MacOS. Every. Thing.
The experience of everybody who bought an M1 is everything (or almost) running far snappier.
>Everything runs slower on MacOS. Every. Thing. grep, sed, awk.
So, is it "everything" or is it "grep, sed, awk"? And what is your case exactly? Benchmarked them on the mac and on some Linux system with the same file? Maybe did it on a network attached drive?
>Why don't sed, awk, grep, etc.. all the Linux things work quite right? I need to add something else on macOS to get them to work like they did on Linux.
You seem not to understand this POSIX system or versioning. Apple has older (or BSD) versions of those tools. Use Brew or similar and install the GNU versions, which would be like you know them from Linux. Not that the BSD versions are broken, they're just different.
The whole reason Docker exists makes complaining about its performance on non-linux operating systems asinine.
> Why don't sed, awk, grep, etc.. all the Linux things work quite right?
Because MacOS is BSD-based and those tools aren't "Linux" things. You can install the GNU equivalents easily if you dislike them.
> I could forgive Linux, but not an OS and Hardware made by the biggest company on the damn planet.
Software development doesn't particularly care about the fact that Apple is the biggest company on the planet. The pooled resources going into development of linux is quite substantial and yet it too still has plenty of software issues. LTS kernels can have hundreds of patches because software development is hard no matter how many eyes you have looking at it.
TIL there's a single "whole" reason Docker exists.
Please, enlighten me, what exactly is that reason?
> When running on Linux, Docker uses the resource isolation features of the Linux kernel (such as cgroups and kernel namespaces) and a union-capable file system (such as OverlayFS)to allow containers to run within a single Linux instance, avoiding the overhead of starting and maintaining virtual machines.[12] Docker on macOS uses a Linux virtual machine to run the containers.
To serve as an easier to use facade on top of Linux kernel virtualization options. It only works on Linux - or with an emulated Linux.
Why should all Unix implementations work just like Linux? What's so special about Linux? Why doesn't Linux work like BSD?
Just a random opinion. Others disagree and prefer the BSD way. Concrete reasons include code-base simplicity.
https://github.com/coreutils/coreutils/blob/master/src/yes.c
https://github.com/openbsd/src/blob/master/usr.bin/yes/yes.c
Also, every browser tab with text entered was a random crap shoot if you were going to lose it by going to another tab to copy something and return to paste. Nothing was predictable, youor work was just constantly lost of the device. Almost no apps seemed to persist things when the OS forced them to shut down, except maybe the highest rated dedicated artist and note taking stuff. But even Apple's own apps (like the bug reporting tool) often didn't bother.
And by 2nd gen, I mean first update after a major redesign.
My maxed out 2013 Macbook Pro (the last model that runs linux without issue) has finally worn itself out and I’m in the market for a new laptop, but I can’t find a new laptop worth spending money on. I’m currently doing all my work on my desktop just hoping I don’t have to travel any time soon.
It seems to be black and white: users either have no problems, or ALL the problems.
I started to get "the curse" after 8 years with my 2012 MBP. It started randomly turning off. Not crashing, just turning off! I replaced the battery because that was the only warning I was getting. But it can no longer run any macOS. Even mavericks. It crashes randomly. It went from rock solid to fragile as an elderly lady with osteoporosis rollerskating on a cobblestone path.
Now it is my primary Ubuntu machine since the touchpad works so much batter than Ubuntu running on my Lenovo Yoga and it has better performance. Zero turning off problems. It's been on for months running a VNC server.
ag and rg are other fast options.
The speed of GNU grep vs BSD grep is discussed on the BSD mailing lists here: https://lists.freebsd.org/pipermail/freebsd-current/2010-Aug...
I also don't see any memory issues, etc.
Most people don't give any sources.
This is the GNU in GNU/Linux :)
I really like GNU coreutils, and other basic GNU utilities like GNU sed, find, and awk. I know some BSD folks see them as ‘bloated’ and ‘non-standard’, but to me they're plenty fast and they feel complete.
When I used macOS for a while for a job, it surprised me how much I'd come to rely on the features and behavior of certain GNU utilities that are apparently peculiar to them. But I miss 'em when they're gone.
Did you actually tried to replace Apple garbage version of command line utils with latest one from GNU? It's kind a obvioius that OOTB version of utils will be much slower since Apple stopped updating GNU versions once license been changed to GPLv3. And BSD version of utils they ship with newer macOS is also usually inferior.
That being said, Apple still knows their audience. I imagine there will be a lot of chronic Twitter browsers and Pages advocates who fall in love with this machine, and I think that's fine. I do have to wonder what constitutes a "premium" device if not for the hardware though. Everything I do on modern MacOS feels like it's prodding me to go spend $8 on a tool that I'd have for free on Linux or even Windows. Booting up Big Sur makes me long for my old a1502 running Mojave and handling some frankly ridiculous workloads while staying rock-solid in terms of stability. If anything, I applaud Apple for coming straight out and telling me that the future of their devices isn't for me.
That is delightfully insulting. Real developers would never use Macs, of course.
Yeah, that’s so annoying. Wanna browse a .zip file (not extract it)? Either `brew install file-roller` with its non-macOS UI, or use shady paid shovelware. Wanna record your desktop audio as part of a screencast? It’s so complicated [0] and often involves shady stuff [1] or software that costs $99 [2]. What about Windows? There’s (mediocre) ZIP browsing support in Explorer since Me, 7-Zip is free and trustworthy, and OBS just has a desktop audio input built-in (and I also could do that easily in 2005). Linux? You’ll probably get a working archive tool built-in (file-roller, ark, whatever) and OBS desktop audio just works.
[0] https://billykorando.com/2020/04/14/capturing-desktop-and-zo... [1] https://www.youtube.com/watch?v=H4VPbMvBuLg [2] https://rogueamoeba.com/loopback/
It doesn't have to be a screencast, it's kind of a convoluted process regardless of which operating system you're using [1]. If I'm not mistaken OBS is using the built-in virtual loopback devices available through pulseaudio, but MacOS does not include a virtual loopback device by default, hence requiring a third party one such as Blackhole or loopback.
> ...and often involves shady stuff
...what shady stuff are we talking about here? Blackhole [2] is open source software. It's about as shady as any of the (several) linux audio systems.
I'm curious what you mean by "raw performance"? I'm no Apple enthusiast, but AFAIK the M1 is the fastest laptop CPU on the market. There are faster desktop CPUs, but I don't think that makes it "a phone CPU shoehorned into a clamshell body" — it beats pretty much any laptop CPU in existence in the benchmarks I've seen.
Amusingly, this is exactly how I felt when using Windows.
What's the appeal?
I do not even think about these things on macOS or Windows.
At this point my time is too valuable for that shit. I used to fiddle a lot with my computers when I was 16. Now I want them to work.
Clunkier and buggies depend entirely on which distro you are comparing it with, though I find clunkier at least to be true.
Buggier than linux WMs and desktops is a pretty high bar to beat, as long as you're not including homebrew in the equation (worst, most necessary bit of software for Mac ever).
It runs the software I need. full stop
I have Windows installed on it as a dual-boot and I cannot believe it when I log into Windows (Windows is definitely worse than Apple)... I just don't understand WTF happened over the past decade; Windows seems to have gone backwards. There is no way in the world I could ever use this thing and be productive. The interface is so clunky with title bars which use up all the valuable screen real estate. Difficult to switch between different windows. The cursor was almost impossible to use with the touchpad (it just feels unresponsive); astonishingly, I was actually able to get the touchpad working well with Kubuntu with the generic open source touchpad driver which came with it (it's extremely customizable).
Somehow, the narratives around open source software being inferior quality always seem to be disproved in the long run. While the quality of enterprise software tends to degrade overtime (as big corporation financial politics and bureaucracy creep in). Open source projects are free from toxic financial incentives so they tend to keep improving over time.
However, I can't find a decent machine which will last for 4 5 hours on battery, and it is important. My brand new Thinkpad T14 lasts less than 3 hours, and I am on minimalistic setup with only few apps running. Tried all kinds of power management tweaks.
OTHER thing is the issue with the microphone on external devices in Linux which is pain, which is why I always have to use my phone for calls.
> That’s extremely similar to the MacBook Pro and Monterey issues I’ve read this week—except I’m still running Big Sur.
Maybe there is more than one issue here, but Intel users having the same issue on Monterey where they did not have it before seems telling. Maybe M1 machines had a different OS build or features that caused this issue in Big Sur and now it's universal in Monterey?
If such an issue were to occur on iOS without a crash, would anyone even notice? There's no real way to monitor RAM usage, and the failure mode is less clear (slowdown, issue with responsiveness, followed by likely reboot).
If the leak was in some part of the system, maybe a problem, but I'm sure they test pretty rigorously, and get enough crash reports to figure things out fast with that many devices in the wild, all in pretty constant use.
For myself, I just got the new M1Max 14-inch MBP, and it's quite nice.
I had to remove my Thunderbolt docks (I have a range of docks, including ones purported to be "Thunderbolt 4") from the video chain. I have found that the computer seems to lose track of what is where, if I have a dock in the loop.
I like SwiftUI. It shows a lot of promise, and I look forward to releasing products, written in it. I don't think it's especially mature, and maturity is important, when you need to release ambitious projects.
I'm not really in a hurry, though. I'll be getting around to working in SwiftUI, and I tend to do well at the things to which I apply myself.
I also do this, but I wonder is it a bad idea? Is Activity Monitor enabling any extra logging that itself is slowing things down further, or is it just subscribing to already enabled events?
I'm on M1 MBA 16GB and I get the out-of-memory errors too. It's still a world of difference from the 2016 MBP I upgraded from.
As touched on in another comment, the problem might be the 8 desktops and 20 Firefox windows I keep open.
It would be ironic if Activity Monitor itself were causing a memory leak.
I also think windows task manager is fairly efficient and TBH more useful with their full system state graph view. You have to click one resource at a time to see system state of your memory, cpu, etc and there is no GPU graph like windows.
Rather than working with Activity Monitor open 24/7, just install iStat Menus. Makes it really easy to monitor your system.
It just feels the OS is designed for different, more recent hardware. I have been using Mac since 2010 and that wasn't the case in the past. I paid about $3,000 for this device. I am not happy and considering Linux/Windows.
* I wonder if this is more prevalent when the hard drive is approaching full capacity? It would be interesting to see the breakdown between physical and swap when it happens.
* Has anyone observed these seemingly random memory leaks while not running anything under Rosetta 2?
https://macperformanceguide.com/blog/2021/20211029_0832-digl...
b) If your speakers sound bad then it could be dust or debris. Might want to unscrew your Mac and use a blower / vaccum cleaner on it.
These situations are interesting. My M1 13” will occasionally get a stuttering cursor that only goes away with a restart. I haven’t had this problem in over a decade on any computer.
I know I’m not unique in this because of the number of threads on the Internet on the issue.
Interesting to see the odd interactions between software and hardware. Though this sort of bug does put me in mind of how in Minecraft when Notch fixed light transmission through glass, it would start raining through it too.
Been a constant experience for me from 2001 when I first started using.
I think even quantifying memory pressure on Linux is relatively new
https://www.phoronix.com/scan.php?page=news_item&px=Linux-Do...
macOS' behavior under high memory pressure is much more graceful IME
Maybe a leak in a Max/Pro-specific kernel component? I assume Control Center depends on some hardware-specific kernel modules.
Seems to be related to video tag and according the comments here people are on YT or other sites that have videos embedded.
Further, I wonder how much of their vast resources might Apple be pouring into making a new OS without these problems.
But I also regularly leave dozens upon dozens of tabs open and use multiple heavy IDEs...
Upgrading to 16GB was enough to fix it instantly and I no longer have the freezing/crashing issues, so I'm surprised 64GB machines are running into it
Browsers are generally the biggest culprits for memory usage. Random tabs will leak memory and before you know it some news article page is using 1GB, your GMail is using 1GB, etc.
I don’t think it’s a wholly unfair assessment. You can get away with more when the memory management stack is smart and fast, but in the end if you need 9gb of ram and only have 8gb you’re going to know it. Most people just don’t (at one time).
So I got it knowing as soon as the 16GB dropped in stores I'd replace it
Based on other comments: try not using chrome. I don't and I have 0 issues iwht this.
I've noticed worst applications for this are those built on the Electron framework (MS Teams, Slack, Evernote).
% uptime
23:27 up 9 days, 11:24, 4 users, load averages: 2.19 2.77 2.91
:) so no issues here.For many years, the press kept HN a secret and wouldn't even link or mention it as source. Presumably to keep HN from falling into mainstream. There were lots of times you could tell they got it from HN, or even screenshot without mentioning the site.
But for the past 2 years it seems more and more mainstream media are giving direct links.
I could only wish the first rule for mainstream media is to not talk about HN. But then I guess it is too late.
How is this possible ? The M1 MBP is only available since October 26.
Man up Apple and release Apple Silicon drivers for Linux.
Mac hardware is nice, but it’s not that nice. Except for maybe the trackpad.
I bought an M1 max laptop and I’m almost tempted to go back to my Linux machine because of several issues I have with macOS. There are things that are by design like mandatory animation delays for things like switching spaces and going in/out of fullscreen, which are borderline dealbreakers for me given how often I do those things. And there are also things I suspect are either bugs or straight up performance lapses, such as scrolling through text in a terminal at 4k being slow if you have ligatures enabled.
I could go on, but I think it’s a perfectly valid sentiment (regardless of whether or not they were venting) to wish for mac hardware with a Linux OS.
I'd like to use one of those Mac Minis as a homeserver/homelab and macOS is the only thing standing in the way. Similarly, I doubt there is a non Apple laptop that matches the M1 Macbook Air's battery life to performance ratio, specially in that form factor.
I know Asahi linux exists but reverse engineered drivers will never be as effective/performant as official drivers. Porting drivers to Linux won't even be expensive for Apple. They refuse to do it just cause theyre Apple.
It's very likely future software updates can help address these issues.
Honestly, the machines haven't had wide deployment in the field for all that long for Applications as huge as Photoshop. It takes time to discover, fix, and redeploy things like Photoshop. And it's not like Photoshop never leaked memory on an x86.
There is. People have been running ARM macOS for about a year and I haven’t seen this complaint before.
It is made worse by the fact M1 MacBooks are limited to 16 GB of RAM, non upgradable of course.
So yes, it is a software problem, and it will get better, but the M1 is particularly sensitive to it.
Can you be more specific here? It seems natural that a system with limited memory doesn't tolerate memory leaks very well.
That’s extremely similar to the MacBook Pro and Monterey issues I’ve read this week—except I’m still running Big Sur ... It’s possible that macOS isn’t managing this unified memory structure properly, and will continue to allocate RAM beyond what is available without freeing up RAM that is no longer needed. This is commonly referred to as a “memory leak.” Performance gradually deteriorates until you need to either wait for the RAM to clear, force-quit the app, or restart the machine ... it’s entirely possible that Apple fixes it in a future version of macOS without ever addressing the issue publicly. That’s what happened with the excessive SSD usage earlier this year, though that Apple says that was a “data reporting error” and not an actual problem. The memory bug is an actual issue that needs to be fixed as soon as possible.
If it helps at all, the comments you're complaining about are even more tedious to write than they are to read.
https://hn.algolia.com/?dateRange=all&page=0&prefix=false&so...