{"id":20217712,"url":"https://github.com/pforret/m1_ssd_tbw","last_synced_at":"2025-09-22T01:32:16.135Z","repository":{"id":144772526,"uuid":"340864631","full_name":"pforret/m1_ssd_tbw","owner":"pforret","description":"Measure SSD wear (Total Bytes Written) on MacOS M1 (ARM64) machines","archived":false,"fork":false,"pushed_at":"2021-02-22T21:13:47.000Z","size":723,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T12:52:45.610Z","etag":null,"topics":["apple","arm","arm64","m1","macos","ssd"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pforret.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-21T09:37:18.000Z","updated_at":"2024-11-21T17:15:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"c9ec2c3f-b893-4948-94cf-e982b61fbcb2","html_url":"https://github.com/pforret/m1_ssd_tbw","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"pforret/bashew","purl":"pkg:github/pforret/m1_ssd_tbw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Fm1_ssd_tbw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Fm1_ssd_tbw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Fm1_ssd_tbw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Fm1_ssd_tbw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pforret","download_url":"https://codeload.github.com/pforret/m1_ssd_tbw/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Fm1_ssd_tbw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276333902,"owners_count":25624046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-21T02:00:07.055Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple","arm","arm64","m1","macos","ssd"],"created_at":"2024-11-14T06:35:20.461Z","updated_at":"2025-09-22T01:32:15.789Z","avatar_url":"https://github.com/pforret.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![bash_unit CI](https://github.com/pforret/m1_ssd_tbw/workflows/bash_unit%20CI/badge.svg)\n![Shellcheck CI](https://github.com/pforret/m1_ssd_tbw/workflows/Shellcheck%20CI/badge.svg)\n![GH Language](https://img.shields.io/github/languages/top/pforret/m1_ssd_tbw)\n![GH stars](https://img.shields.io/github/stars/pforret/m1_ssd_tbw)\n![GH tag](https://img.shields.io/github/v/tag/pforret/m1_ssd_tbw)\n![GH License](https://img.shields.io/github/license/pforret/m1_ssd_tbw)\n[![basher install](https://img.shields.io/badge/basher-install-white?logo=gnu-bash\u0026style=flat)](https://basher.gitparade.com/package/)\n\n# m1_ssd_tbw\n\n![](assets/m1ssd.jpg) \n\n\nMeasure SSD wear (TBW) on MacOS M1 (ARM64) machines\n\n## Background\n\n* [M1 Mac owners are experiencing extremely high SSD writes (Feb 17, 2021)](https://linustechtips.com/topic/1306757-m1-mac-owners-are-experiencing-extremely-high-ssd-writes-over-short-periods-of-time-likely-thanks-to-aggressive-swap/)\n\n        The most severe cases have \"consumed\" about 10-13% of the maximum warrantable TBW value of the SSDs\n  \n* [@marcan42 (Feb 16, 2021)](https://twitter.com/marcan42/status/1361722552238841860)\n\n        Update on M1 SSD wear issue: \n        Available data suggests that write endurance ratings are not proportional to drive size.\n\n        256GB model: ~2000TB [1700-2300]\n        2TB model: ~5000TB [4300-6000]\n\n* [SSD Lifespan: How Long do SSDs Really Last? (July 30, 2020)](https://www.ontrack.com/en-us/blog/how-long-do-ssds-really-last)\n        \n        A typical TBW figure for a 250 GB SSD lies between 60 and 150 terabytes written\n\n## 🔥 Usage\n\n```\nProgram: m1_ssd_tbw 1.0.0 by peter@forret.com\nUpdated: Feb 22 22:00:20 2021\nDescription: Measure SSD wear (TBW) on MacOS M1 (ARM64) machines\nUsage: m1_ssd_tbw [-h] [-q] [-v] [-f] [-l \u003clog_dir\u003e] [-t \u003ctmp_dir\u003e] [-d \u003cdisk\u003e] \u003caction\u003e\nFlags, options and parameters:\n    -h|--help        : [flag] show usage [default: off]\n    -q|--quiet       : [flag] no output [default: off]\n    -v|--verbose     : [flag] output more [default: off]\n    -f|--force       : [flag] do not ask for confirmation (always yes) [default: off]\n    -l|--log_dir \u003c?\u003e : [option] folder for log files   [default: /Users/pforret/log/m1_ssd_tbw]\n    -t|--tmp_dir \u003c?\u003e : [option] folder for temp files  [default: .tmp]\n    -d|--disk \u003c?\u003e    : [option] disk ID  [default: /dev/disk0]\n    \u003caction\u003e         : [parameter] action to perform: info/check\n```\n\nRunning it (needs sudo password because of smartctl:\n\n```bash\n\u003e ./m1_ssd_tbw info   \nPassword:\nSSD disk size: 494 GB\nSSD disk used: 146 GB\nSSD bytes written: 50 TB\nSSD current index: 101 x\nSSD max index: 5800 x\nSSD wear = 1.74 %\n```\n\n\n## 🚀 Installation\n\nwith [basher](https://github.com/basherpm/basher)\n\n\t$ basher install pforret/m1_ssd_tbw\n\nor with `git`\n\n\t$ git clone https://github.com/pforret/m1_ssd_tbw.git\n\t$ cd m1_ssd_tbw\n\n## 📝 Acknowledgements\n\n* script created with [bashew](https://github.com/pforret/bashew)\n\n\u0026copy; 2021 Peter Forret\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpforret%2Fm1_ssd_tbw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpforret%2Fm1_ssd_tbw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpforret%2Fm1_ssd_tbw/lists"}