frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: eBPF memory profiling at OOM kill time

https://www.polarsignals.com/blog/posts/2025/08/13/oomprof
5•gnurizen•1h ago
Check out our new project to add some insight into OOM kill events for Go programs.

Source code: https://github.com/parca-dev/oomprof/

Description of how it was put together: https://www.polarsignals.com/blog/posts/2025/08/13/oomprof

Comments

Bender•1h ago
On a related note and FWIW OOM kills can be reduced or entirely mitigated by a combination of some kernel settings and confining applications to CGroups. Some of the generalized and basic settings are:

- vm.overcommit_ratio should be set to 0 on non development machines. Some applications are greedy and do not play well when memory is constrained so that requires working with the application developers to improve their memory management.

- vm.min_free_kbytes which should be set based on a formula. Redhat had a decent formula but DBA's don't like when it is used because they want every last bit of ram so that battle is left to the sysadmins. It becomes a circular argument and ever-increasing memory purchases.

- vm.admin_reserve_kbytes and vm.user_reserve_kbytes also based on a formula but each company will have to come up with their own based on how fast memory is allocated by their in-house applications.

- vm.swappiness and vm.vfs_cache_pressure will also vary by the role of the server and intended uses but having higher cache pressure can reduce the risk of a race condition that leads to OOM on systems with low free memory.

- vm.compaction_proactiveness settings can cause lag and race conditions on systems under high memory pressure. This can be exacerbated by /sys/kernel/mm/transparent_hugepage/enabled and /sys/kernel/mm/transparent_hugepage/defrag settings among other related settings but that's a long story with a lot of variable conditions especially on systems with TB's of ram and long uptimes.

There is no magic bullet or "correct" setting. All of these will vary by roles, usage, etc... I will leave it to the reader to research each setting. This will require some load testing that puts each system under real world high memory pressure. Oh and if someone starts trying to solve this with swap, just slowly back away and don't make any sudden movements. Distract them and run. I managed over 50K servers with anywhere from 96GB to 3TB of ram and the only OOM's were caused by operations teams that had full control over memory allocation of java and wanted to use every last KB of physical ram installed. None of these servers had any swap as it would have to be encrypted and nobody wanted to deal with that. OOM's are almost always PEBKAC.

Hyder and Stewart: A Tale of Two Border Towns (2018)

https://www.johnzada.com/hyder-alaska-stewart-bc/
1•thomassmith65•1m ago•0 comments

Seeing Growing Exodus, State Organ Donor Registries Urge 'Perspective'

https://www.newsweek.com/organ-donor-registries-exodus-new-york-t
1•doublepg23•1m ago•0 comments

Ask HN: Going to bed with *unsolved* problems in your head?

1•franktankbank•2m ago•0 comments

Berkshire Hathaway's Website looks like it's from the 90s

https://www.berkshirehathaway.com/
1•xdfg13345•3m ago•0 comments

Beyond Parity: The Case for True Accessibility Affordances

https://devinprater.micro.blog/2025/08/13/beyond-parity-the-case-for.html
1•devinprater•4m ago•0 comments

Unplugged – co-founded by Erik Prince – releases new "privacy-first" smartphone

https://www.theverge.com/mobile/758073/unplugged-up-phone-erik-prince-blackwater
1•bookofjoe•6m ago•1 comments

We found TeaOnHer spilling users' driver's licenses in less than 10 minutes

https://techcrunch.com/2025/08/13/how-we-found-teaonher-spilling-users-drivers-licenses-in-less-than-10-minutes/
1•speckx•7m ago•1 comments

Dolthub/go-MySQL-server: A MySQL-compatible database, in pure Go

https://github.com/dolthub/go-mysql-server
1•josephscott•7m ago•0 comments

Show HN: XferLang, a data-transfer and configuration alternative to JSON

https://xferlang.org/
1•paulmooreparks•8m ago•0 comments

Designing the Built-In AI Web APIs

https://domenic.me/builtin-ai-api-design/
1•domenicd•12m ago•0 comments

AI Therapy Bot

1•FDX2018•12m ago•1 comments

The Great Geothermal Talent Shortage

https://oilprice.com/Alternative-Energy/Geothermal-Energy/The-Great-Geothermal-Talent-Shortage.html
1•PaulHoule•12m ago•1 comments

Multi-Dimensional Vector Support in CocoIndex – Underneath Explained

https://cocoindex.io/blogs/multi-vector
1•badmonster•15m ago•1 comments

Gemini adds Temporary Chats and new personalization features

https://blog.google/products/gemini/temporary-chats-privacy-controls/
1•meetpateltech•16m ago•0 comments

Why Are Digital Systems Failing the People They're Meant to Serve?

https://syntheticauth.ai/posts/synthetic-auth-report-issue-006
1•zerolayers•17m ago•1 comments

Type Inference for Plain Data

https://www.haskellforall.com/2025/08/type-inference-for-plain-data.html
3•todsacerdoti•17m ago•0 comments

The only thing that matters (2007)

https://pmarchive.com/guide_to_startups_part4.html
1•mooreds•18m ago•0 comments

Ridges.ai – Submit agents that compete and make $20K/day

https://www.ridges.ai/
3•shr1ftyy•19m ago•0 comments

Show HN: Inworld Runtime – A C++ graph-based runtime for production AI apps

https://inworld.ai/runtime
2•rogilop•20m ago•0 comments

Show HN: GitChamber – list, read and search GitHub repos without rate limits

https://gitchamber.com/
3•xmorse•23m ago•1 comments

The one-liner for max-width, centering, and margins

https://frontendmasters.com/blog/the-one-liner-for-max-width-centering-and-margins/
1•speckx•23m ago•0 comments

Step Away from Share Button

https://stepawayfromthesharebutton.com/
2•paulpauper•25m ago•0 comments

Why Your Stimulant "Stopped Working" (and What's Going On)

https://psychofarm.substack.com/p/why-your-patients-stimulant-stopped
1•paulpauper•25m ago•0 comments

What Is It Like to Be a Bot? [pdf]

https://keithfrankish.github.io/articles/Frankish_What%20is%20it%20like%20to%20be%20a%20bot.pdf
1•paulpauper•25m ago•0 comments

Air Canada starts shutting down

https://www.aircanada.com/ca/en/aco//home/book/travel-news-and-updates/2025/ac-action.html#/
2•herodotus•26m ago•1 comments

Sam Altman was wrong: AI didn't defeat auth. Single factors did

https://stytch.com/blog/ai-didnt-defeat-auth-single-factor-did/
5•prydonius•29m ago•0 comments

Everything I Know about Self-Publishing

https://kk.org/thetechnium/everything-i-know-about-self-publishing/
1•speckx•32m ago•0 comments

Gartner's Grift Is About to Unravel

https://dx.tips/gartner
4•mooreds•32m ago•0 comments

External Secrets Operator to pause releases, needs additional maintainers

https://old.reddit.com/r/kubernetes/comments/1mp34uk/eso_maintainer_update_we_need_help/
1•mmoogle•34m ago•0 comments

Lessons learned from implementing SIMD-accelerated algorithms in pure Rust

https://kerkour.com/rust-simd
1•unsolved73•35m ago•0 comments