Re:Is RAM wiped before use in another LXC container?
by jacquesm on Wednesday April 05, 2023 @07:50AM
(#35452514)
Yes, but they all point to the same pages. The tables take up a small fraction of the memory of the pages themselves.
[ Parent
| on HN ]
Re:Is RAM wiped before use in another LXC container?
by enedil on Wednesday April 05, 2023 @09:11AM
(#35453550)
But large fraction, if all you do afterwards is an exec call. Given 8 bytes per page table entry and 4k pages, it's 1/512 memory wasted. So if your process uses 8GB, it's 16MB. Still takes noticeable time if you spawn often.
Re:Is RAM wiped before use in another LXC container?
by jacquesm on Wednesday April 05, 2023 @09:28AM
(#35453789)
I've never had the page tables be the cause of out of memory issues. Besides the fact that they are usually pre-allocated to avoid recursive page faults.