{"id":31924791,"url":"https://github.com/cobaltcore-dev/memtouch","last_synced_at":"2025-10-30T05:11:16.514Z","repository":{"id":317095415,"uuid":"944426861","full_name":"cobaltcore-dev/memtouch","owner":"cobaltcore-dev","description":"Simple and configurable memory stresstest for UNIX-like systems to benchmark live migration.","archived":false,"fork":false,"pushed_at":"2025-10-06T06:54:40.000Z","size":70,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-10-22T14:49:23.297Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cobaltcore-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-07T10:24:11.000Z","updated_at":"2025-10-06T06:54:42.000Z","dependencies_parsed_at":"2025-09-28T20:51:46.711Z","dependency_job_id":"eaf5f655-a02c-419d-85f5-6219b54010af","html_url":"https://github.com/cobaltcore-dev/memtouch","commit_stats":null,"previous_names":["cobaltcore-dev/memtouch"],"tags_count":0,"template":false,"template_full_name":"cobaltcore-dev/repository-template","purl":"pkg:github/cobaltcore-dev/memtouch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cobaltcore-dev%2Fmemtouch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cobaltcore-dev%2Fmemtouch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cobaltcore-dev%2Fmemtouch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cobaltcore-dev%2Fmemtouch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cobaltcore-dev","download_url":"https://codeload.github.com/cobaltcore-dev/memtouch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cobaltcore-dev%2Fmemtouch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281748716,"owners_count":26554822,"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-10-30T02:00:06.501Z","response_time":61,"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":[],"created_at":"2025-10-14T00:22:07.385Z","updated_at":"2025-10-30T05:11:16.499Z","avatar_url":"https://github.com/cobaltcore-dev.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n# SPDX-FileCopyrightText: Copyright 2025 SAP SE or an SAP affiliate company and cobaltcore-dev contributors\n#\n# SPDX-License-Identifier: Apache-2.0\n--\u003e\n\n# memtouch\n\n## About this project\n\nSimple but configurable memory stresstest for UNIX-like systems to benchmark live\nmigration.\n\n## How to Build\n\n### Nix Toolchain\n\n```bash\ngit checkout \u003cthis repo\u003e\nnix develop . # to get a toolchain to compile this regularly, or\nnix build . # to build this directly in Nix\nnix run . -- \u003cargs\u003e # to run the artifact from Nix directly, e.g.: nix run -- --help\n```\n\n### Regular Toolchain\n\n```bash\ngit checkout \u003cthis repo\u003e\ngit submodule update --init\nmeson setup build\nninja -C build\n./build/memtouch --help\n```\n\n## How to use\n\n```bash\nUsage: memtouch [--help] [--version] --thread_mem VAR --num_threads VAR --rw_ratio VAR [--random] [--stat_file VAR] [--stat_ival VAR]\n\nThe measurements are given in Mebibyte per second. This means that increasing or \ndecreasing the interval has no effect on the read/write measurements, but only\nincrease the accuracy in terms of time resolution.\n\nOptional arguments:\n  -h, --help      shows help message and exits\n  -v, --version   prints version information and exits\n  --thread_mem    amount of memory a thread touches in MiB [required]\n  --num_threads   number of worker threads [required]\n  --rw_ratio      read/write ratio where 0 means only reads and 100 only writes [required]\n  --stat_file     filepath where statistics are logged\n  --stat_ival     interval for statistics logging in ms\n  --page_log_ival log statistics after a specific number of pages have been read/written\n```\n\n### Example\n\n```bash\n$ ./memtouch --thread_mem 256 --num_threads 4 --rw_ratio 50 --stat_file ./stats.log --stat_ival 100\nRunning 4 threads touching 256 MB of memory\n    memory consumption : 1024 MB\n    access pattern     : sequential\n    r/w ratio          : 50\n    statistics file    : ./stats.log\n    statistics interval: 100 ms\n\n# The measurements are given in Mebibyte per second.\n$ cat stats.log\n2024-10-29T21:51:03.315+0100 read_mibps:16809.49 write_mibps:17834.99\n2024-10-29T21:51:03.415+0100 read_mibps:15886.61 write_mibps:17992.63\n2024-10-29T21:51:03.515+0100 read_mibps:16129.03 write_mibps:17834.99\n```\n\n### Hints\n\nEnsure that `--thread_mem` is significantly higher than your L3 cache, if you\nwant to test the main memory. Otherwise, you are testing the caches.\n\n## Support, Feedback, Contributing\n\nThis project is open to feature requests/suggestions, bug reports etc. via \n[GitHub issues](https://github.com/cobaltcore-dev/memtouch/issues). Contribution\nand feedback are encouraged and always welcome. For more information about how\nto contribute, the project structure, as well as additional contribution\ninformation, see our [Contribution Guidelines](CONTRIBUTING.md).\n\n## Security / Disclosure\n\nPlease do not create GitHub issues for security-related doubts or problems.\nInstead, contact the maintainers by Email.\n\n## Code of Conduct\n\nWe as members, contributors, and leaders pledge to make participation in our\ncommunity a harassment-free experience for everyone. By participating in this\nproject, you agree to abide by its [Code of Conduct](https://github.com/SAP/.github/blob/main/CODE_OF_CONDUCT.md)\nat all times.\n\n## Licensing\n\nCopyright 2025 SAP SE or an SAP affiliate company and memtouch \ncontributors. Please see our [LICENSE](LICENSE) for copyright and license \ninformation. Detailed information including third-party components and their\nlicensing/copyright information is available\n[via the REUSE tool](https://api.reuse.software/info/github.com/cobaltcore-dev/memtouch).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcobaltcore-dev%2Fmemtouch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcobaltcore-dev%2Fmemtouch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcobaltcore-dev%2Fmemtouch/lists"}