Login
You're viewing the appalorchard.com public feed.
  • Nov 11, 2026, 9:31 PM

    @jripley That's very interesting. However, would you agree this mlock operation occurs on whole pages (eg the same page size used for mprotect and mmap(MAP_ANONYMOUS)?

    💬 1🔄 0⭐ 0

Replies

  • Nov 11, 2026, 9:36 PM

    @mcc If you asked this before the existence of non-4KB virtual memory architectures, I'd say yes. I'm not sure how Linux or the BSDs ended up reconciling architectures where there may be a different granularity of memory protection vs address mapping. I'm not sure if POSIX covers this, or would have thought to cover this specific case, either. (I do know that other OS allow for different granules, and it is *annoying*)

    💬 0🔄 0⭐ 0