Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> It takes A LOT of time to expand the swap file. So failing malloc immediately seems, to me, the right way to handle it.

Maybe it'd be possible to check if expanding the swap file is possible, return and then actually expand the swap file when convenient.

(I like being an armchair kernel developer :-))



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: