Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
The first post of this thread is a WikiPost and can be edited by anyone with the appropiate permissions. Your edits will be public.

doboy

macrumors 68040
Jul 6, 2007
3,775
2,946
I've posted the full list of fixes/steps I took to personally reduce my writes from 400GB+ a day to 50GB+/- a day with the exact same heavy workloads, without losing any functionality, on the first post of this thread as well as here with relevant screenshots. Hope it helps!
Thanks! Which one do you think had the most impact?
 

chouseworth

macrumors 6502
Dec 3, 2012
299
833
Wake Forest, NC
To anyone interested and affected by excessive SSD writes on M1, I've posted my list of fixes for excessive SSD writes on the first page of this thread, as well as here where I was able to attach relevant screenshots.

I expect most people to be able to fix their excessive SSD writing by trying these steps, atleast until Apple fixes it themselves. :)
Thank you for the great post. I am still very frustrated by huge SSD writes when using Lightroom Classic on M1s. Especially the Develop module. And unfortunately there is not much help over in the Adobe forums. Can anyone here provide some tips as to how to better manage usage in Lightroom Classic until Adobe finally gives us an M1 version that does a better job managing swapping?
 

TheSynchronizer

macrumors 6502
Dec 2, 2014
443
729
Thanks! Which one do you think had the most impact?
Definitely switching from Safari to using Brave with Auto Tab Discard - as I do a lot of intensive browsing for software development (I regularly have 50+ tabs open at once), using Safari while having all my other apps open would cause Safari Web Content (Cached) to be written to SSD swap memory like crazy. Additionally, as all Safari tabs were more or less kept in memory (even if I closed them or didn’t use them for long periods of time), this in itself put immense pressure on my 8GB of RAM and my kernel_task writes were regularly reaching 400GB+ in a single day after just doing what I consider to be my normal workflow.

Even people who only do light/moderate browsing can be affected by this if they have a lot of apps open, hence why I think switching from Safari is the best first step to try if you’re affected by high SSD writes.

If Apple were to allow users to turn off the website caching, as well as implementing the option of old open tabs to be discarded from memory after a period of time, then Safari would not be an issue for people in a similar situation to me.

That all being said, a lot of people are using Safari and not having writing issues in which case, keep using it :) it’s a great browser for every reason other than the issues it causes for some.
 
Last edited:
  • Like
Reactions: doboy

doboy

macrumors 68040
Jul 6, 2007
3,775
2,946
Definitely switching from Safari to using Brave with Auto Tab Discard - as I do a lot of intensive browsing for software development (I regularly have 50+ tabs open at once), using Safari while having all my other apps open would cause Safari Web Content (Cached) to be written to SSD swap memory like crazy. Additionally, as all Safari tabs were more or less kept in memory (even if I closed them or didn’t use them for long periods of time), this in itself put immense pressure on my 8GB of RAM and my kernel_task writes were regularly reaching 400GB+ in a single day after just doing what I consider to be my normal workflow.

Even people who only do light/moderate browsing can be affected by this if they have a lot of apps open, hence why I think switching from Safari is the best first step to try if you’re affected by high SSD writes.

If Apple were to allow users to turn off the website caching, as well as implementing the option of old open tabs to be discarded from memory after a period of time, then Safari would not be an issue for people in a similar situation to me.

That all being said, a lot of people are using Safari and not having writing issues in which case, keep using it :) it’s a great browser for every reason other than the issues it causes for some.
Thanks! I mainly use Firefox for general browsing and Safari for finances only (which are closed immediately after use).
 

ambient_light

macrumors member
Feb 23, 2021
59
65
Yeah I haven't done any intense work during that uptime. If I do, I am using the swap file but I haven't seen it growing larger than 2GB (while editing 8k footage in FCPX).

I am running that machine since I got it (November 2020) on the Developer seed, so every macOS Beta release has been installed and I am at 11.4 B1 right now. I never had excessive writes in any release of macOS, not with Apps running in Rosetta, not with FCPX and not with Safari and Chrome even when loading them with 50 Tabs at a time.

As an example, here is Chrome with 50 tabs of Aliexpress (front page + different product pages) which is quite a resource hog due to all the ads, scripts and pictures
OK, apparently swap is almost not used, but to be precise the output of the vm_stat from the shell would help.
Before 11.4beta, I observed severe anomalies starting from the swap size ca 5Gb or higher.

Browsers as very intense memory users, trigger unnecessary swap writes easier than other processes, when swap use is already high.
 
  • Like
Reactions: Maximara

Baff

macrumors regular
Jan 3, 2008
135
180
Yeah I haven't done any intense work during that uptime. If I do, I am using the swap file but I haven't seen it growing larger than 2GB (while editing 8k footage in FCPX).

I am running that machine since I got it (November 2020) on the Developer seed, so every macOS Beta release has been installed and I am at 11.4 B1 right now. I never had excessive writes in any release of macOS, not with Apps running in Rosetta, not with FCPX and not with Safari and Chrome even when loading them with 50 Tabs at a time.

As an example, here is Chrome with 50 tabs of Aliexpress (front page + different product pages) which is quite a resource hog due to all the ads, scripts and pictures:

Awesome, thanks! I think for most the writes start around 4GB Swap.

For me it was almost "normal" with 70 tabs open, at 100 it was writing like crazy (in Safari). Can you try opening a bunch more tabs to see what happens?

I hadn't really tested this in Chrome, I switched over to Safari when I got the M1. When I switched to Firefox a few weeks ago it wrote 300GB in under an hour until I installed the Auto Tab Discard addon.

I just tried opening 140 random (all different) tabs in Chrome and I started seeing the writes increase (10GB swap, 60GB writes in 1 hour). It doesn't really look to me like your AliExpress pages are using all that much ram (more than a typical page, but not super high). Plus, Chrome might be conserving memory since all those pages share a lot of graphics and such. In my Activity monitor, some of my Chrome pages (Google Chrome Helper (Renderer)) are over 500MB, though some of them are below 50MB. You may need to open another 100+ AliExpress pages to see it kick in.
Here is my current biggest ram eater page (video stream + live chat): -https://www.youtube.com/watch?v=sTA0GTgFn5E

Some other sites that I have seen eat up ram are Discord, Slack, Facebook, various news sites (CNN, New York Times, etc), and others that I closed when this all started (live fire/earthquake maps and such that I no longer keep open).
 
Last edited:

Fomalhaut

macrumors 68000
Oct 6, 2020
1,993
1,724
Definitely switching from Safari to using Brave with Auto Tab Discard - as I do a lot of intensive browsing for software development (I regularly have 50+ tabs open at once), using Safari while having all my other apps open would cause Safari Web Content (Cached) to be written to SSD swap memory like crazy. Additionally, as all Safari tabs were more or less kept in memory (even if I closed them or didn’t use them for long periods of time), this in itself put immense pressure on my 8GB of RAM and my kernel_task writes were regularly reaching 400GB+ in a single day after just doing what I consider to be my normal workflow.

Even people who only do light/moderate browsing can be affected by this if they have a lot of apps open, hence why I think switching from Safari is the best first step to try if you’re affected by high SSD writes.

If Apple were to allow users to turn off the website caching, as well as implementing the option of old open tabs to be discarded from memory after a period of time, then Safari would not be an issue for people in a similar situation to me.

That all being said, a lot of people are using Safari and not having writing issues in which case, keep using it :) it’s a great browser for every reason other than the issues it causes for some.
I concur 100%. Since moving from Safari to Edge with auto-tab-discard my disk writes have reduced at least five-fold to a much more reasonable 50-100GB / day.

Overall memory usage seems to be a lot less, even with 50-80 tabs open.
 

iLog.Genius

macrumors 601
Feb 24, 2009
4,925
479
Toronto, Ontario
Seems like 11.3 fixed it for me. Memory usage stable at 4-5GB resulting in no memory swap/any additional writes. I have no issue with writing to SSD if required, just didn't make sense for my usage and having memory be used up from just browsing the web.
 
  • Like
Reactions: osplo

CMMChris

macrumors 6502a
Oct 28, 2019
850
794
Germany (Bavaria)
OK, apparently swap is almost not used, but to be precise the output of the vm_stat from the shell would help.
For me it was almost "normal" with 70 tabs open, at 100 it was writing like crazy (in Safari). Can you try opening a bunch more tabs to see what happens?
I did another test with Safari. 50 pages but this time different ones. I included a lot of news sites, YouTube, Google Maps, Bing Maps, Facebook. For the screenshot I additionally opened the vm_stat this time. Memory pressure is higher than Chrome (Safari has always been using more RAM for me) but still far from using any large junks of swap. Bildschirmfoto 2021-04-27 um 07.49.29.jpg Bildschirmfoto 2021-04-27 um 07.49.44.jpg
 

wirtandi

macrumors regular
Feb 3, 2021
179
179
How accurate is the SMART information? The one where you run smartctl -a disk0?

I ask because it says I have 93 power cycles? I have only charged this laptop once.

Also, the TBW (Data units written) is slightly different from what drivedx says
 

IceStormNG

macrumors 6502a
Sep 23, 2020
517
676
How accurate is the SMART information? The one where you run smartctl -a disk0?

I ask because it says I have 93 power cycles? I have only charged this laptop once.

Also, the TBW (Data units written) is slightly different from what drivedx says
Power cycles here means power-on-cycles of the SSD (how often it was powered on). That has nothing to do with the battery. The SSD gets powered down even during use when not accessed for a certain amount of time. It also is powered down when your Mac goes to sleep. "High" amounts of power cycles on the SSD are not uncommon.
 
  • Like
Reactions: osplo and CMMChris

Baff

macrumors regular
Jan 3, 2008
135
180
I did another test with Safari. 50 pages but this time different ones. I included a lot of news sites, YouTube, Google Maps, Bing Maps, Facebook. For the screenshot I additionally opened the vm_stat this time. Memory pressure is higher than Chrome (Safari has always been using more RAM for me) but still far from using any large junks of swap.
I think you will need to open another 20-50 tabs to trigger the writes.
 

jdb8167

macrumors 601
Nov 17, 2008
4,859
4,599
How accurate is the SMART information? The one where you run smartctl -a disk0?

I ask because it says I have 93 power cycles? I have only charged this laptop once.

Also, the TBW (Data units written) is slightly different from what drivedx says
Since all the SMART data from smartmontools on an M1 comes from the SSD controller designed by Apple and all the data is coming from Apple APIs, it is as accurate as Apple made it. I think you can assume the values are correct.

I don’t know about Drive DX because I don’t think their software is open source. But I’ve looked at smartmontools which is open source and their code is correct. I’ve verified it by writing my own version which uses slightly different Apple APIs and the results match exactly.
 

CMMChris

macrumors 6502a
Oct 28, 2019
850
794
Germany (Bavaria)
I think you will need to open another 20-50 tabs to trigger the writes.
Here you go, 100 Safari tabs. And yes, it does start using the swap file with 1.18GB. But I still wouldn't call the writes excessive. Doing the same with Chrome uses 0.32GB of Swap. More importantly, I tested the same on a Hackintosh Mini PC with 16GB of RAM. The behavior is identical. So nothing unusual going on there with the M1. Neither does the M1 use less RAM or Swap nor does it use more than an x86 machine.
Bildschirmfoto 2021-04-27 um 18.51.14.jpg Bildschirmfoto 2021-04-27 um 18.51.45.jpg
 

osplo

macrumors 6502
Nov 1, 2008
351
196
Seems like 11.3 fixed it for me. Memory usage stable at 4-5GB resulting in no memory swap/any additional writes. I have no issue with writing to SSD if required, just didn't make sense for my usage and having memory be used up from just browsing the web.

Great news. Apparently 11.4 is even better for what I read.
 

Baff

macrumors regular
Jan 3, 2008
135
180
Here you go, 100 Safari tabs. And yes, it does start using the swap file with 1.18GB. But I still wouldn't call the writes excessive. Doing the same with Chrome uses 0.32GB of Swap. More importantly, I tested the same on a Hackintosh Mini PC with 16GB of RAM. The behavior is identical. So nothing unusual going on there with the M1. Neither does the M1 use less RAM or Swap nor does it use more than an x86 machine.
Interesting, thanks. You are still on 11.2.3?
 

dsusanj

macrumors regular
Oct 29, 2008
211
390
I don't think this issue is necessarily limited to M1 Macs. I have noticed this both on my M1 MBP and on my Intel 2019 MBP.

Following the update to macOS 11.3, kernel_task has written over 4.5 TB within a day (!) on the 2019 MBP and is currently writing at a rate of ca. 200-250 GB/hour with no obvious culprits (I'm running Edge with about ten tabs, OneNote, Spark, Bear and nothing else special at the moment). 1 TB written in a little less than 3 hrs now on an Intel MBP. 🤷‍♂️
 
Last edited:
  • Wow
Reactions: NoGood@Usernames

tollickd

macrumors regular
Jan 10, 2010
118
71
From what I can tell and correct me if I am wrong please, this is mostly due to having many tabs open in a browser right? I never have more than say 5 tabs at any one time and thats peak load for me at anytime!
 

leons

macrumors 6502a
Apr 22, 2009
662
344
I don't think this issue is necessarily limited to M1 Macs. I have noticed this both on my M1 MBP and on my Intel 2019 MBP.

Following the update to macOS 11.3, kernel_task has written over 4.5 TB within a day (!) on the 2019 MBP and is currently writing at a rate of ca. 200-250 GB/hour with no obvious culprits (I'm running Edge with about ten tabs, OneNote, Spark, Bear and nothing else special at the moment). 1 TB written in a little less than 3 hrs now on an Intel MBP. 🤷‍♂️
This is a little disheartening, as I was originally writing roughly 1TB/day, then utilizing the methods in the Wiki went down to 50GB/day, and now after the update to 11.3 (and no other changes) my Swap has gone down by 90% and my TBW is down to 10GB/day.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.