HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
Lakshmipathi
ebpf-diskalert
C2023–2023
Lakshmipathi / ebpf-diskalert

ebpf-diskalert

eBPF based tool to monitor disk usage, perform actions when threshold breached.

2Distinct people
2Mentions
0Explicit recommenders
24GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

eBPF based tool to monitor disk usage, perform actions when threshold breached.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour2 dated mentions

Observed mentions: 2023-10-09 13:47:21 UTC to 2023-10-10 00:50:31 UTC.

012023-10-09 13:00:00 UTC to 2023-10-09 14:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsOct 9, 13:002023-10-09 14:00:00 UTC to 2023-10-09 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-10-09 15:00:00 UTC to 2023-10-09 16:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-10-09 16:00:00 UTC to 2023-10-09 17:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-10-09 17:00:00 UTC to 2023-10-09 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-10-09 18:00:00 UTC to 2023-10-09 19:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsOct 9, 18:002023-10-09 19:00:00 UTC to 2023-10-09 20:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-10-09 20:00:00 UTC to 2023-10-09 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-10-09 21:00:00 UTC to 2023-10-09 22:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-10-09 22:00:00 UTC to 2023-10-09 23:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-10-09 23:00:00 UTC to 2023-10-10 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-10-10 00:00:00 UTC to 2023-10-10 01:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsOct 10, 00:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Oct 9, 13:002023-10-09 13:00:00 UTC2023-10-09 14:00:00 UTC110
Oct 9, 14:002023-10-09 14:00:00 UTC2023-10-09 15:00:00 UTC000
Oct 9, 15:002023-10-09 15:00:00 UTC2023-10-09 16:00:00 UTC000
Oct 9, 16:002023-10-09 16:00:00 UTC2023-10-09 17:00:00 UTC000
Oct 9, 17:002023-10-09 17:00:00 UTC2023-10-09 18:00:00 UTC000
Oct 9, 18:002023-10-09 18:00:00 UTC2023-10-09 19:00:00 UTC000
Oct 9, 19:002023-10-09 19:00:00 UTC2023-10-09 20:00:00 UTC000
Oct 9, 20:002023-10-09 20:00:00 UTC2023-10-09 21:00:00 UTC000
Oct 9, 21:002023-10-09 21:00:00 UTC2023-10-09 22:00:00 UTC000
Oct 9, 22:002023-10-09 22:00:00 UTC2023-10-09 23:00:00 UTC000
Oct 9, 23:002023-10-09 23:00:00 UTC2023-10-10 00:00:00 UTC000
Oct 10, 00:002023-10-10 00:00:00 UTC2023-10-10 01:00:00 UTC101

What Hacker News says

2 sources
The disk alert stuff seems like a PoC for making sure the tracepoint works as expected, but I think you can get a lot more info from the tracepoint they're using than just the utilization info that is exposed/highlighted by the current frontend. Look at what they're actually tracing in the kernel (https://github.com/Lakshmipathi/ebpf-diskalert/blob/main/src... / https://elixir.bootlin.com/linux/v5.6/source/block/bio.c#L18...). One of those things is devid, so you can see what disk a write is going to and correlate that to a PID. I did something similar-ish in DTrace on FreeBSD to track down a rogue writer (https://gridfi.re/blog/dtrace-filesystem-from-fd.html). You can probably dig around in the bio struct (https://elixir.bootlin.com/linux/v5.6/source/include/linux/b...) and/or execution context to find cool stuff about the filesystem ope
Read the rest
ration in question. If anyone reading this knows about eBPF: I'm curious how you'd go about translating a bio struct and/or execution context structs to an actual filesystem path, not just reading the devid. Or, is that the wrong question because at this point we're already down at the block level? Thinking more about it, I bet there's a probe higher in the vfs stack that'd be better suited for that kind of thing. I really need to sit down and eBPF-ify my DTrace knowledge.
In Show HN: eBPF tool to monitor disk usage, perform actions

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.