M2 Mac mini writing excessively to disk.

For the last year I have booted my base model M2 mini from a 1 TB SSD connected by USB 3.0.


During that time it has written about 4 TB to the disk which I think is reasonable.


17 days ago I started booting from a 1 TB Thunderbolt NVMe and yesterday discovered to my horror that it had already written 1.2 TB.


There appear to be 3 main culprits writing excessive amounts since yesterday when Activity Monitor was zeroed.


Can anyone explain why I am seeing this massive increase in writes and more importantly how to stop it?


The original external boot drive was Sonoma and the new one is Sequoia.

Posted on Dec 1, 2024 03:36 AM

Reply
16 replies

Dec 1, 2024 08:38 AM in response to Ian R. Brown

Ian R. Brown wrote:

Can anyone explain why I am seeing this massive increase in writes and more importantly how to stop it?

The original external boot drive was Sonoma and the new one is Sequoia.


That is root activity and there is no way to stop it.


The mds_stores and other numbers will always be higher for awhile after upgrading or moving to a new drive.


I haven't restarted in 12 days and I'm seeing this in the Activity Monitor.


If you are worried about using up the Mac mini's internal SSD I wouldn't. Because my 2018 Mac min's internal SSD has been used heavily every day for 6 years and it is no where near reaching end of life do to read/write usage.

Dec 1, 2024 05:43 AM in response to Ian R. Brown

First, a whole lot of stuff starts happening when beginning with a new drive and a lot of tasks start running (more than normal) and depending on the amount of RAM that you have there could be memory swapping that could eventually go away. In addition, with starting anew, a lot of items need to be rebuilt and bookkeeping taking place. Note that kernel_task is responsible for memory swapping.


Also note, that Activity Monitor is the sum total of all reads and writes across all mounted drives and stuff can be read and re-written to them as part of macOS filesystem and Spotlight scans. It also resets after every reboot or shutdown and is only totaling use since the last reboot.


Also, check in ~/Library for any very large disk usage. If you have something like Daisy Disk, Omni Disk Sweeper, etc. it can make it easy to sort everything in order of size. Something may have gone ballistic and started writing massive amounts of data to caches or other databases. You may also have encountered a Spotlight going berserk issue that has been seen occasionally (happened to me once).


Something I use to track individual disk is a command line app called smartctl although you can get commercial GUI based apps that can do the same thing like DriveDx. Since the drive is a Thunderbolt drive these can access that info directly without any special USB driver (the USB MSC class has no direct way to read SMART data).


I would suggest getting one of those apps if you did not find any out of line data in ~/Library, establish a base line and then check perhaps daily and see how much the writes change.




Dec 1, 2024 06:07 AM in response to woodmeister50

I have just remembered that I had a similar problem last year with my USB drive but it was different items causing the problem.


I have DriveDX which is how I discovered yesterday that in 16 days I had written 1.3 TB onto my drive.


Having said that, there is nothing to see on the drive so it must be being deleted automatically.


Nor does it appear to have any effect on performance etc. . . . it's just gobbling away at the TBW.


I have just switched my boot drive to the old USB one and that is writing 6 GB in half an hour.

Dec 2, 2024 01:18 PM in response to Ian R. Brown

"Could you detail the Terminal command please."


After disabling System Integrity Protection,

- to disable Spotlight, type:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

- to enable Spotlight, type:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist


If this fixes it for you, perhaps file a bug report to Apple.


("I updated it to 15.1.1 and early signs are that the writing has been reduced." But perhaps it is fixed already.)

Dec 1, 2024 06:18 AM in response to hcsitas

I thought I had posted the following an hour ago but obviously not!


I switched off sleep as you suggested and restarted the mini.


30 minutes later it had written 1.82 GB.


As mentioned to Woodmeister there is no sign of these 1.8 GB on the drive or the 1.3 TB written in the past fortnight. Nor is there any problems with performance or temperature but DriveDX reports around 100 GB written each day and Activity Monitor seems to agree.


Dec 1, 2024 07:48 AM in response to Ian R. Brown

As @Woodmeister has said, booting from an external drive complicates matters considerably including side effects like degraded performance not to mention wearing out of external drives. None of those issues are reportable to Apple because it is not something Apple recommends (although does officially support setting up).


Separately, Activity Monitor is meant to assist troubleshooting known problems, not find new ones based solely on its or some other 3rd party app’s statistical output. Furthermore, AM’s output is aggregated across all drives and can’t be drilled down further by users.


FWIW, you could try reinstalling on a freshly-formatted external. But IIWY, I’d go back to factory and do away with external boots altogether.


Here’s the good news: I’m outta ideas and (almost) outta here 😁…all the best.

Dec 2, 2024 05:54 AM in response to Ian R. Brown

Monitor system RAM usage for swap being used. If you have a system with 8GB of RAM there could be excessive disk swapping taking place and try to find the app(s) that is responsible.


I run off an external Thunderbolt SSD and on a normal day of web browsing and other light tasks I will see about 30-40GB daily with my system with 8GB of RAM. When I do a photo processing session, that can jump to 100-150 GB of writes to disk and sometimes more if I use apps simultaneously or I do particularly complex edits and additional disk swapping takes place. However, I am not too concerned as the 1TB SSD has an endurance of 1665TBW (1.0TB OWC Aura Ultra III). At last measurement, its lifetime is about 59 years at the current usage rate and two years I have used about 4% of its life.


Also, if you do have a bunch of drives, Spotlight will be doing a lot of writing creating its search databases on a new system start up or new boot drive start up.


One last note, because of the speed of SSDs these days, you may not see a huge performance hit, especially if you have moved from a slower drive to a faster drive.

Dec 2, 2024 06:27 AM in response to woodmeister50

There is virtually no swapping going on.


For the past year when running off my USB 3.0 SSD there was less than 4 TB written.


I switched back to the M2 internal drive (macOS 15.1.1) and the writing was dramatically less.


Realising that my Thunderbolt drive was on macOS 15.1.0 I updated it to 15.1.1 and early signs are that the writing has been reduced.


So only time will tell as to whether macOS 15.1 was the problem.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

M2 Mac mini writing excessively to disk.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.