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.

Ningj

macrumors member
Nov 21, 2020
59
36
While looking into an app issue and poking around in "Console > Mac Analytics Data" I stumbled on Apple sourced SMART statistics confirming data reported by other utils (most of us knew this already). Interestingly there are two percentage used stats. My drive is still on 0% and aren't sure if these report the same values for systems with significant writes (Big Sur 11.4).

If you are interested, launch Console, click on "Mac Analytics Data" and filter on com.apple.massstorage.systemcounters_v2_1

There are 8 different SSD statistics messages ...v2_1 - ...v2_8

Look for the Smart block in the statistic's summary:

...
com.apple.message.smart_available_spare: 100
com.apple.message.smart_available_spare_threshold: 99
com.apple.message.smart_critical_warnings: 0
com.apple.message.smart_data_units_read: 16505470
com.apple.message.smart_data_units_written: 12577264
com.apple.message.smart_host_read_commands: 321740324
com.apple.message.smart_host_write_commands: 305557069
com.apple.message.smart_media_errors: 0
com.apple.message.smart_percentage_used: 0
com.apple.message.smart_percentage_used_normalized: 0

com.apple.message.smart_power_cycles: 338
com.apple.message.smart_power_on_hours: 207
com.apple.message.smart_temperature: 298
com.apple.message.smart_unsafe_shutdowns: 24
...
 
Last edited:

leons

macrumors 6502a
Apr 22, 2009
662
344
While looking into an app issue and poking around in "Console > Mac Analytics Data" I stumbled on Apple sourced SMART statistics confirming data reported by other utils (most of us knew this already). Interestingly there are two percentage used stats. My drive is still on 0% and aren't sure if these report the same values for systems with significant writes (Big Sur 11.4).

If you are interested, launch Console, click on "Mac Analytics Data" and filter on com.apple.massstorage.systemcounters_v2_1

There are 8 different SSD statistics messages ...v2_1 - ...v2_8

Look for the Smart block in the statistic's summary:

...
com.apple.message.smart_available_spare: 100
com.apple.message.smart_available_spare_threshold: 99
com.apple.message.smart_critical_warnings: 0
com.apple.message.smart_data_units_read: 16505470
com.apple.message.smart_data_units_written: 12577264
com.apple.message.smart_host_read_commands: 321740324
com.apple.message.smart_host_write_commands: 305557069
com.apple.message.smart_media_errors: 0
com.apple.message.smart_percentage_used: 0
com.apple.message.smart_percentage_used_normalized: 0

com.apple.message.smart_power_cycles: 338
com.apple.message.smart_power_on_hours: 207
com.apple.message.smart_temperature: 298
com.apple.message.smart_unsafe_shutdowns: 24
...
Good find! This verifies (what others have doubted) that Apple validates the data that we have found elsewhere. My "percentage used" stats are 1% for both. As you, I would be interested to see if anyone with a high percentage used sees any diddernce in the 2 numbers.
 

sneeks

macrumors 65816
Oct 21, 2007
1,017
390
Glasgow, UK
I checked the console and this is the data I have. Terminal shows data units written as 840gb.

com.apple.message.smart_available_spare: 100
com.apple.message.smart_available_spare_threshold: 99
com.apple.message.smart_critical_warnings: 0
com.apple.message.smart_data_units_read: 2004376
com.apple.message.smart_data_units_written: 1545967
com.apple.message.smart_host_read_commands: 25922064
com.apple.message.smart_host_write_commands: 13369811
com.apple.message.smart_media_errors: 0
com.apple.message.smart_percentage_used: 0
com.apple.message.smart_percentage_used_normalized: 0
com.apple.message.smart_power_cycles: 141
com.apple.message.smart_power_on_hours: 11
com.apple.message.smart_temperature: 296
com.apple.message.smart_unsafe_shutdowns: 12
 

jdb8167

macrumors 601
Nov 17, 2008
4,859
4,599
While looking into an app issue and poking around in "Console > Mac Analytics Data" I stumbled on Apple sourced SMART statistics confirming data reported by other utils (most of us knew this already). Interestingly there are two percentage used stats. My drive is still on 0% and aren't sure if these report the same values for systems with significant writes (Big Sur 11.4).

If you are interested, launch Console, click on "Mac Analytics Data" and filter on com.apple.massstorage.systemcounters_v2_1

There are 8 different SSD statistics messages ...v2_1 - ...v2_8

Look for the Smart block in the statistic's summary:

...
com.apple.message.smart_available_spare: 100
com.apple.message.smart_available_spare_threshold: 99
com.apple.message.smart_critical_warnings: 0
com.apple.message.smart_data_units_read: 16505470
com.apple.message.smart_data_units_written: 12577264
com.apple.message.smart_host_read_commands: 321740324
com.apple.message.smart_host_write_commands: 305557069
com.apple.message.smart_media_errors: 0
com.apple.message.smart_percentage_used: 0
com.apple.message.smart_percentage_used_normalized: 0

com.apple.message.smart_power_cycles: 338
com.apple.message.smart_power_on_hours: 207
com.apple.message.smart_temperature: 298
com.apple.message.smart_unsafe_shutdowns: 24
...
What an awesome find. Thanks for posting this. We finally have an Apple endorsed reading of the SMART data. Not that there was any doubt in my mind anyway but it is great to have ultimate confirmation.
 

helloapple1

macrumors 6502
Jan 20, 2020
489
316
What an awesome find. Thanks for posting this. We finally have an Apple endorsed reading of the SMART data. Not that there was any doubt in my mind anyway but it is great to have ultimate confirmation.
In layman’s terms what does it mean?
 

TheSynchronizer

macrumors 6502
Dec 2, 2014
443
729
So we can now with pretty much full certainty say that these 256GB SSDs are rated for 1200-1600 TBW by taking the official Apple percentage used value.

I think it’s safe to say the majority of people who never even noticed the SSD write issue will not have their mac’s SSD die in them during the lifetime of their mac.

And now with 11.4 out, the issue largely resolved, I think it’s pretty much safe to say the issue is no more.:)
 

k-hawinkler

macrumors 6502
Sep 14, 2011
260
88
So we can now with pretty much full certainty say that these 256GB SSDs are rated for 1200-1600 TBW by taking the official Apple percentage used value.

I think it’s safe to say the majority of people who never even noticed the SSD write issue will not have their mac’s SSD die in them during the lifetime of their mac.

And now with 11.4 out, the issue largely resolved, I think it’s pretty much safe to say the issue is no more.:)

So if I take for a 256 GB (I.e. ¼ TB) SSD your above value of 1200 TBW, then that implies 4 * 1200 = 4800 writes per cell. And your above value of 1600 TBW would imply 4 * 1600 = 6400 writes per SSD storage cell. YEAH!

Previously I quoted the Toshiba number of 3000 writes per SSD storage cell.
Well, this is even much better.

Problem truly laid to rest for the vast majority of M1 users. Amen.
 

Fomalhaut

macrumors 68000
Oct 6, 2020
1,993
1,724
I wonder if Apple has taken the swap usage optimization too far in the other direction....

After installing MacOS 11.4, and running the same workloads, my memory usage now looks like this:

1622440169947.png

I have never seen my memory pressure this high. Previously it was always green, and "swap used" would increase to 8-10GB for typical moderately heavy usage.

This is probably a more accurate representation of actual memory usage, after all. I have used almost the RAM for apps and have the rest is used for cache, so this looks correct.

Disk writes are noticeably lower. After a full work day, it looks like this:

1622440096239.png


Previously I would expect about double this for similar usage.
 

Attachments

  • 1622439961990.png
    1622439961990.png
    40.7 KB · Views: 119
Last edited:

telo123

macrumors 6502
Mar 11, 2021
318
402
I wonder if Apple has taken the swap usage optimization too far in the other direction....

After installing MacOS 11.4, and running the same workloads, my memory usage now looks like this:

View attachment 1784398
I have never seen my memory pressure this high. Previously it was always green, and "swap used" would increase to 8-10GB for typical moderately heavy usage.

This is probably a more accurate representation of actual memory usage, after all. I have used almost the RAM for apps and have the rest is used for cache, so this looks correct.

Disk writes are noticeably lower. After a full work day, it looks like this:

View attachment 1784395

Previously I would expect about double this for similar usage.
As long as it’s not red for a long period of time and you don’t notice any performance hiccup, I think it’s fine.
 

IceStormNG

macrumors 6502a
Sep 23, 2020
517
676
I wonder if Apple has taken the swap usage optimization too far in the other direction....

After installing MacOS 11.4, and running the same workloads, my memory usage now looks like this:

View attachment 1784398
I have never seen my memory pressure this high. Previously it was always green, and "swap used" would increase to 8-10GB for typical moderately heavy usage.

This is probably a more accurate representation of actual memory usage, after all. I have used almost the RAM for apps and have the rest is used for cache, so this looks correct.

Disk writes are noticeably lower. After a full work day, it looks like this:

View attachment 1784395

Previously I would expect about double this for similar usage.
What you see there is simply your mac running low on memory. This would also happen on any other machine if you run too many tasks for the amount of RAM you have.

The highly aggressive swap was probably an idea to overcome the RAM limitation of the M1, but turned out to cause other issues. Or it was simply just a bug nobody found during their "testing".

Either way, your mac is running low on memory. Half of your RAM is already compressed. 16GB is still just 16GB. M1 cannot do magic.
You either need more RAM (which is not possible, in this case) or close some applications when you work with a few very memory heavy applications.
 
  • Like
Reactions: Fomalhaut

Mike Boreham

macrumors 68040
Aug 10, 2006
3,916
1,899
UK
While looking into an app issue and poking around in "Console > Mac Analytics Data" I stumbled on Apple sourced SMART statistics confirming data reported by other utils (most of us knew this already). Interestingly there are two percentage used stats. My drive is still on 0% and aren't sure if these report the same values for systems with significant writes (Big Sur 11.4).

If you are interested, launch Console, click on "Mac Analytics Data" and filter on com.apple.massstorage.systemcounters_v2_1

There are 8 different SSD statistics messages ...v2_1 - ...v2_8

Look for the Smart block in the statistic's summary:

...
com.apple.message.smart_available_spare: 100
com.apple.message.smart_available_spare_threshold: 99
com.apple.message.smart_critical_warnings: 0
com.apple.message.smart_data_units_read: 16505470
com.apple.message.smart_data_units_written: 12577264
com.apple.message.smart_host_read_commands: 321740324
com.apple.message.smart_host_write_commands: 305557069
com.apple.message.smart_media_errors: 0
com.apple.message.smart_percentage_used: 0
com.apple.message.smart_percentage_used_normalized: 0

com.apple.message.smart_power_cycles: 338
com.apple.message.smart_power_on_hours: 207
com.apple.message.smart_temperature: 298
com.apple.message.smart_unsafe_shutdowns: 24
...

Thanks! I need help using Console please!

When I open Console > Mac Analytics Data there are 1024 messages.
When I cut and paste com.apple.massstorage.systemcounters_v2_1 into the search box they all disappear.
I have tried searching on "smart" "percentage" "systemcounters" "massstorage" and a few other combos with same result.

Thanks for any help.
 
Last edited:

TheSynchronizer

macrumors 6502
Dec 2, 2014
443
729
The highly aggressive swap was probably an idea to overcome the RAM limitation of the M1, but turned out to cause other issues. Or it was simply just a bug nobody found during their "testing".
In my opinion it was most definitely a bug - some of it being a deep rooted kernel bug as noticed by that person on twitter porting linux to M1. I’ve found performance to be completed unchanged on my M1 with 11.4 despite the memory being in yellow memory pressure more often, and in my situation and workflow 8GB on this M1 still certainly performs better than 8GB did on the intel macbook I had in the past.

But I agree that it’s not magic and 8GB on M1 is not 16GB. It entirely depends on what one does on the machine and there are simply many more situations that would’ve required more than 8GB on an intel mac to do without freezing and spinning beach balls, which work great on the 8GB M1. But likewise there are other workflows that remain like RAW photo / intensive video editing where the physical space of memory that the 8GB M1 provides is simply not enough, just as it wouldn’t be enough on an intel.
 
  • Like
Reactions: RPi-AS

Mike Boreham

macrumors 68040
Aug 10, 2006
3,916
1,899
UK
Good find! This verifies (what others have doubted) that Apple validates the data that we have found elsewhere. My "percentage used" stats are 1% for both. As you, I would be interested to see if anyone with a high percentage used sees any diddernce in the 2 numbers.
As you say it would be very interesting to know what "percentage used" values show for some of the really high users who have posted here.

What is your TBW that gives you the 1% number?

My usage numbers are 0% with 21.73 TBW to a 512GB internal new in November 2020.
 

LowAffinity

macrumors newbie
May 31, 2021
9
2
This is a stupid question but is it normal for kernel_task to write to the SSD while no swap file is in use, and the system is just sitting idle?
 
Last edited:

LowAffinity

macrumors newbie
May 31, 2021
9
2
NOT a stupid question. Yes, there are many system processes that write in the background, even when idle. Not a concern unless excessive. Welcome to the forum! :)
Thank you for clearing that up😅

Edit: I read somewhere that using an external monitor with the M1 air/pro results in higher SSD writes. Has this been fixed, or was it never a thing in the first place?
 
Last edited:

leons

macrumors 6502a
Apr 22, 2009
662
344
Thank you for clearing that up😅

Edit: I read somewhere that using an external monitor with the M1 air/pro results in higher SSD writes. Has this been fixed, or was it never a thing in the first place?
Never a significant issue.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.