Re:My Go executable files are still getting larger
by hatuio on Friday April 16, 2021 @03:34PM
(#26838174)
Without swap. You have to disable it for k8s
[ Parent
| on HN ]
Re:My Go executable files are still getting larger
by remram on Friday April 16, 2021 @08:46PM
(#26840659)
So you did mean partition/file, and you are misinformed.
Re:My Go executable files are still getting larger
by hatuio on Saturday April 17, 2021 @06:47AM
(#26843225)
So it is getting loaded as file and can be swapped out due to this?
Re:My Go executable files are still getting larger
by remram on Saturday April 17, 2021 @11:52AM
(#26845160)
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.