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

Without swap. You have to disable it for k8s


So you did mean partition/file, and you are misinformed.


So it is getting loaded as file and can be swapped out due to this?


Yes, any mmap'd file will be swapped in on demand, when a page is first accessed, it will not all be copied in physical memory at once. In case of memory pressure, pages will be removed from physical memory ("swapped out"), since they can be loaded back from the file again when needed.

Since the executable is mapped read-only, the pages loaded in physical memory can also be shared between multiple instances of the process.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: