{"id":20757819,"url":"https://github.com/amdmi3/ssdaligntest","last_synced_at":"2026-04-28T04:01:40.157Z","repository":{"id":139659477,"uuid":"50578228","full_name":"AMDmi3/ssdaligntest","owner":"AMDmi3","description":"Simple partition alignment checking utility","archived":false,"fork":false,"pushed_at":"2016-03-03T18:41:12.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-11T16:23:36.531Z","etag":null,"topics":["partition","ssd"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AMDmi3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-01-28T11:25:42.000Z","updated_at":"2024-10-08T03:38:21.000Z","dependencies_parsed_at":"2023-07-23T09:00:29.921Z","dependency_job_id":null,"html_url":"https://github.com/AMDmi3/ssdaligntest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AMDmi3/ssdaligntest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AMDmi3%2Fssdaligntest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AMDmi3%2Fssdaligntest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AMDmi3%2Fssdaligntest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AMDmi3%2Fssdaligntest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AMDmi3","download_url":"https://codeload.github.com/AMDmi3/ssdaligntest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AMDmi3%2Fssdaligntest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32365519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"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":["partition","ssd"],"created_at":"2024-11-17T09:45:26.061Z","updated_at":"2026-04-28T04:01:40.133Z","avatar_url":"https://github.com/AMDmi3.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSD align test\n\nSimple program to test read/write speed of your SSD partition to\ncheck if it's aligned correctly.\n\n## Methodology\n\nSince SSDs have write and erase block sizes correspondingly) much\nlarger than a sector size (around 4K and 256-512K correspondingly),\nincorrectly aligned partitions will result in so-called [write\namplification](https://en.wikipedia.org/wiki/Write_amplification),\nwhich means degraded performance and increased wear rate.\n\nIt is therefore important to align partition boundaries correctly,\nand this utility helps to confirm that, or determine correct\nalignment.\n\nThe utility performs a set of tests. Each tests reads and/or writes\nthe same number of blocks of specified size at specified intervals,\nand each other test incorporates additional offset (usually sector\nsize). Throughput of each test is then calculated.\n\nCurrently, the program only prints resulting throughput rates to\nbe evaluated by the user.\n\n## Usage\n```\n./ssdaligntest [-rw] [-b block-size] [-i interval-size] [-s offset-step] [-c count] [-k skip-count] file\n```\n\n* ```-r``` - read blocks during the test\n* ```-w``` - write blocks during the test (destructive!)\n\nAt least one of above options is required. If only ```-w``` is\nspecified, zeroes are written to the target file (which is\ndestructive!), if both ```-r``` and ```-w``` are specified, the\nsame blocks which are read are written back.\n\n* ```-b``` - read/write block size in bytes\n* ```-i``` - interval size in bytes\n* ```-s``` - offset step for each test in bytes\n* ```-c``` - number of blocks to read/write\n* ```-k``` - number of blocks to skip (useful to counter caching)\n* ```file``` - usually device node for your disk or partition\n\n## Example\n\nHere's an example of running read test on some SSD partition. You\ncan see offsets which are multiple of 4096 bytes giving better read\nperformance, and since the partition begins with a \"fast\" offset\nit's correctly aligned.\n\n```\n./ssdaligntest -r -b 4096 -i 8192 -s 512 -c 10000 /dev/ada0p1\ntest 16/16 (offset 7680)...\nOFFSET     DURATION      THROUGHPUT\n     0       1.51 s      25.93 MB/s \u003c--\n   512       1.95 s      20.04 MB/s\n  1024       1.95 s      20.04 MB/s\n  1536       1.95 s      19.99 MB/s\n  2048       1.95 s      20.03 MB/s\n  2560       1.95 s      20.02 MB/s\n  3072       1.95 s      20.01 MB/s\n  3584       1.96 s      19.95 MB/s\n  4096       1.50 s      25.99 MB/s \u003c--\n  4608       1.73 s      22.54 MB/s\n  5120       1.73 s      22.55 MB/s\n  5632       1.73 s      22.54 MB/s\n  6144       1.73 s      22.54 MB/s\n  6656       1.74 s      22.42 MB/s\n  7168       1.74 s      22.39 MB/s\n  7680       1.76 s      22.21 MB/s\nThe partition looks to be aligned\n```\n\n## Author ##\n\n* [Dmitry Marakasov](https://github.com/AMDmi3) \u003camdmi3@amdmi3.ru\u003e\n\n## License ##\n\n* 2 clause BSD. See [COPYING](COPYING) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famdmi3%2Fssdaligntest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famdmi3%2Fssdaligntest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famdmi3%2Fssdaligntest/lists"}