{"id":28879834,"url":"https://github.com/mikuchi9/ebpf-prefetch-hints","last_synced_at":"2026-04-24T12:03:52.292Z","repository":{"id":300104443,"uuid":"1004811733","full_name":"mikuchi9/ebpf-prefetch-hints","owner":"mikuchi9","description":"An eBPF-based tool that suggests prefetching hints to the Linux kernel for frequently executed binaries in /usr/bin.","archived":false,"fork":false,"pushed_at":"2025-06-19T21:53:48.000Z","size":710,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-19T22:33:38.191Z","etag":null,"topics":["ebpf","libbpf","performance","prefetch","system-tools","userspace"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikuchi9.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-19T08:08:26.000Z","updated_at":"2025-06-19T21:53:51.000Z","dependencies_parsed_at":"2025-06-19T22:44:51.429Z","dependency_job_id":null,"html_url":"https://github.com/mikuchi9/ebpf-prefetch-hints","commit_stats":null,"previous_names":["mikuchi9/ebpf-prefetch-hints"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mikuchi9/ebpf-prefetch-hints","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikuchi9%2Febpf-prefetch-hints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikuchi9%2Febpf-prefetch-hints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikuchi9%2Febpf-prefetch-hints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikuchi9%2Febpf-prefetch-hints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikuchi9","download_url":"https://codeload.github.com/mikuchi9/ebpf-prefetch-hints/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikuchi9%2Febpf-prefetch-hints/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32222483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T10:26:35.452Z","status":"ssl_error","status_checked_at":"2026-04-24T10:25:27.643Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ebpf","libbpf","performance","prefetch","system-tools","userspace"],"created_at":"2025-06-20T19:00:41.509Z","updated_at":"2026-04-24T12:03:52.286Z","avatar_url":"https://github.com/mikuchi9.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## eBPF Prefetch Hints\n\n⚡ **Speed up frequently used binaries** by hinting the Linux kernel to prefetch them — powered by eBPF.\n\n### 🚀 What It Does\n\nThis tool uses an eBPF kernel-side program to track execution frequency of binaries under `/usr/bin`, and a user-space controller that:\n\n- Aggregates call frequency from a BPF map\n- Periodically identifies hot binaries\n- Suggests prefetching those binaries via system hints\n\n### 🔧 Features\n\n- [x] eBPF‑based tracing of binary execution under **/usr/bin**\n- [x] Maintains a frequency map of hot binaries in the kernel\n- [x] **User‑defined polling interval**  \n  \u0026nbsp;\u0026nbsp;• run `sudo ./prefetch_hint \u003cseconds\u003e`  \n  \u0026nbsp;\u0026nbsp;• defaults to **300 s** (5 min) when omitted\n- [x] Advises the kernel with `posix_fadvise()` to **prefetch the\n       *.text* segment** of each hot ELF binary\n\n### Prerequisites\n\n- Linux kernel with eBPF support\n- Clang/LLVM and libbpf-dev\n- bpftool\n- Root privileges\n\n\n### 🛠️ Build and Run\n\n```\nmake all\nsudo ./prefetch_hint \u003ctime_interval\u003e\n```\n\n### 📦 Header provenance\nThe bundled `vmlinux.h` was generated on Ubuntu 22.04.04 LTS (kernel 6.5.0, BTF enabled)\nusing `bpftool v7.3.0`. Regenerate with `make headers` if you need an exact match\nfor a custom kernel.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikuchi9%2Febpf-prefetch-hints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikuchi9%2Febpf-prefetch-hints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikuchi9%2Febpf-prefetch-hints/lists"}