{"id":18272900,"url":"https://github.com/jgalar/linuxcon2022-benchmarks","last_synced_at":"2026-05-01T19:34:35.620Z","repository":{"id":68448277,"uuid":"525866891","full_name":"jgalar/LinuxCon2022-Benchmarks","owner":"jgalar","description":"Suite of benchmarks developed for my presentation at LinuxCon Europe 2022","archived":false,"fork":false,"pushed_at":"2022-09-16T13:03:11.000Z","size":167,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T03:32:18.289Z","etag":null,"topics":["benchmark","ebpf","lttng","performance"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jgalar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-08-17T16:10:25.000Z","updated_at":"2022-10-16T10:58:45.000Z","dependencies_parsed_at":"2023-04-25T19:31:04.568Z","dependency_job_id":null,"html_url":"https://github.com/jgalar/LinuxCon2022-Benchmarks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jgalar/LinuxCon2022-Benchmarks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgalar%2FLinuxCon2022-Benchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgalar%2FLinuxCon2022-Benchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgalar%2FLinuxCon2022-Benchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgalar%2FLinuxCon2022-Benchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgalar","download_url":"https://codeload.github.com/jgalar/LinuxCon2022-Benchmarks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgalar%2FLinuxCon2022-Benchmarks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32510808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["benchmark","ebpf","lttng","performance"],"created_at":"2024-11-05T12:04:16.425Z","updated_at":"2026-05-01T19:34:35.598Z","avatar_url":"https://github.com/jgalar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setup\n\n```sh\n# Install bcc, see https://github.com/iovisor/bcc/blob/master/INSTALL.md\n\n# Build workload\n$ mkdir build \u0026\u0026 cd build \u0026\u0026 cmake .. -DCMAKE_BUILD_TYPE=Release \u0026\u0026 make \u0026\u0026 cd ..\n```\n\nPersonally, I typically work on development versions of LTTng that are not\ninstalled system-wide.\n\nIn those cases, passing `-DCMAKE_PREFIX_PATH=~/your/custom/install/prefix/` can\nbe useful.\n\n```\n# Setup python virtual env with poetry\n$ poetry install\n```\n\n# Running benchmarks\n\nThe `bench` util runs the various benchmark scenarios.\n\n```\nUsage: bench [OPTIONS] COMMAND [ARGS]...\n\n  bench can run a number of benchmarks presented as part of my talk given at\n  OSS Summit Europe 2022.\n\n  LTTng: Beyond Ring-Buffer Based Tracing.\n\n  Use --help on any of the commands for more information on their role and\n  options.\n\nOptions:\n  -d, --debug                     Set logging level to DEBUG\n  -w, --workload TEXT             Workload binary path  [required]\n  --lttng-binary-path TEXT        LTTng binary install path  [required]\n  --duration DURATION             Duration (in seconds) during which the\n                                  benchmark must run per iteration  [default:\n                                  10]\n  --iteration-count ITERATION_COUNT\n                                  Number of iterations of the benchmark to run\n                                  [default: 10]\n  --thread-count THREAD_COUNT     Number of threads to use during workload\n                                  [default: number of cpus on the system]\n  --help                          Show this message and exit.\n\nCommands:\n  ebpf-map                 Trace to an eBPF per-CPU array and estimate the\n                           per-event overhead\n  lttng-kernel-map         Trace to an LTTng-modules per-CPU map and estimate\n                           the per-event overhead\n  lttng-kernel-ringbuffer  Trace to an LTTng-modules per-CPU ring-buffer and\n                           estimate the per-event overhead\n  lttng-ust-map            Trace to an LTTng-UST per-CPU map and estimate the\n                           per-event overhead\n  lttng-ust-ringbuffer     Trace to an LTTng-UST per-CPU ring-buffer and\n                           estimate the per-event overhead\n```\n\nHere's an example of using `bench` to run the `lttng-ust-map` scenario.\n```sh\n# Setup the python virtual environment\n$ poetry shell\n# Run the benchmark\n# Note that workload points to the workload binary we built earlier\n$ bench --workload build/workload --iteration-count 10 --duration 10 --thread-count $(nproc) lttng-ust-map\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgalar%2Flinuxcon2022-benchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgalar%2Flinuxcon2022-benchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgalar%2Flinuxcon2022-benchmarks/lists"}