{"id":23508797,"url":"https://github.com/lovasko/ctfmemusage","last_synced_at":"2025-10-24T12:54:28.552Z","repository":{"id":25996191,"uuid":"29438589","full_name":"lovasko/ctfmemusage","owner":"lovasko","description":"CTF Memory Usage Comparison","archived":false,"fork":false,"pushed_at":"2015-08-13T16:22:28.000Z","size":152,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-25T11:32:48.262Z","etag":null,"topics":[],"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/lovasko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-18T19:48:35.000Z","updated_at":"2019-10-21T08:29:21.000Z","dependencies_parsed_at":"2022-08-06T08:01:16.457Z","dependency_job_id":null,"html_url":"https://github.com/lovasko/ctfmemusage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasko%2Fctfmemusage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasko%2Fctfmemusage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasko%2Fctfmemusage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasko%2Fctfmemusage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovasko","download_url":"https://codeload.github.com/lovasko/ctfmemusage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239188698,"owners_count":19597032,"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","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":"2024-12-25T11:32:11.278Z","updated_at":"2025-10-24T12:54:23.511Z","avatar_url":"https://github.com/lovasko.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ctfmemusage\nCompute and display the memory usage of the CTF data set, the `libbsdctf` and\ncomparisong to the DWARF data set.\n\n## Build\n```\n$ ninja\n```\n### Dependencies\n * libbsdctf\n * libelf\n\n## Usage\n * `-h` print help message\n * `-l` insepct the library storage/memory efficiency \n * `-d` inspect the CTF/DWARF comparison\n * `-r` print ratio\n * `-s` when used in combination with `-r` will print only the ratio number \n\n## Run\nInspect general library implementation and DWARF comparison:\n```\n$ ctfmemusage -dlr /boot/kernel/kernel\nCTF memory vs. CTF storage\n--------------------------\n   Memory usage: 6485904 bytes\n  Storage usage: 3144954 bytes\n          Ratio: 2.062\n\nDWARF storage vs. CTF storage\n-----------------------------\n  DWARF: 34168436 bytes\n    CTF: 3144954 bytes\n  Ratio: 10.865\n```\n\nCompute average storage inflation by the library (results may vary depending on\nyour system):\n```\n$ find /boot/kernel -name '*.symbols' -exec ctfmemusage -lrs {} \\; | awk\n‘{+=$1}END{print s/NR}'\n2.67788\n```\n\n## Author\nDaniel Lovasko (lovasko@freebsd.org)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasko%2Fctfmemusage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovasko%2Fctfmemusage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasko%2Fctfmemusage/lists"}