|
|
|
|
|
by masklinn
60 days ago
|
|
Probably more mlock (keep memory area in RAM), mincore just tells you what is or is not in RAM, and madvise is about access patterns. You could MADV_WILLNEED the GC metadata when you start the GC process hoping they’ll have been paged in by the time you STW, but assuming that area is not massive it’s probably a better idea to just prevent it being paged out. |
|
On a lower level, the OCaml and cpython GCs use a prefetch buffer during marking to schedule around the cache.