|
|
Subscribe / Log in / New account

In search of an appropriate RLIMIT_MEMLOCK default

In search of an appropriate RLIMIT_MEMLOCK default

Posted Nov 23, 2021 19:40 UTC (Tue) by flussence (guest, #85566)
Parent article: In search of an appropriate RLIMIT_MEMLOCK default

64KB is a number from a medieval era and an indication that the whole mechanism needs to be rethought. Do away with the hard limit entirely and put that effort into making the OOM killer more robust.

Visible arbitrary limits like this are stable ABI, whether we like it or not. By increasing them you subconsciously train developers to take that number for granted and grow their software towards it, and we've seen the end result of that in this area with glibc's gigantic thread stacks leading to supposedly portable software not working in musl. We need good backpressure mechanisms, not more bufferbloat.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds