LWN: Comments on "The ongoing search for mmap_lock scalability" https://lwn.net/Articles/893906/ This is a special feed containing comments posted to the individual LWN article titled "The ongoing search for mmap_lock scalability". en-us Sat, 30 Aug 2025 15:29:32 +0000 Sat, 30 Aug 2025 15:29:32 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Typo reports https://lwn.net/Articles/894354/ https://lwn.net/Articles/894354/ corbet Fixed. <p> Next time, though, please send typo reports via email so that thousands of other LWN readers don't have to read through them. Mon, 09 May 2022 12:58:56 +0000 The ongoing search for mmap_lock scalability https://lwn.net/Articles/894307/ https://lwn.net/Articles/894307/ bgoglin <div class="FormattedComment"> Typo: &quot;It&quot;-&gt;&quot;It&#x27;s&quot; in &quot;It about time to start ...&quot; ?<br> </div> Mon, 09 May 2022 09:12:54 +0000 Technically correction for Android app starting https://lwn.net/Articles/894306/ https://lwn.net/Articles/894306/ lengfeld <div class="FormattedComment"> <font class="QuotedText">&gt; When Android runs an app, it does so by spawning a new thread which typically starts by mapping a number of VMAs.</font><br> <p> When Android runs an app, it forks a new process from the zygote process. zygote contains an already stared Java VM including all the framework java libraries. Since fork() uses Copy-on-Write the parent and child process shared a lot of the memory pages. When the child starts to write to some of these shared pages, page faults occur, because the pages are mapped as read-only.<br> </div> Mon, 09 May 2022 09:10:30 +0000 The ongoing search for mmap_lock scalability https://lwn.net/Articles/894204/ https://lwn.net/Articles/894204/ willy <div class="FormattedComment"> By the time we call the driver, we already allocated all the way down to the PMD level, so that&#x27;s all fine.<br> <p> In my plan, drivers that want to opt into RCU page fault handling get to implement map_pages. Although the other MM developers have asked that we not do full RCU page fault handling until it&#x27;s proven necessary.<br> </div> Sat, 07 May 2022 22:24:15 +0000 The ongoing search for mmap_lock scalability https://lwn.net/Articles/894198/ https://lwn.net/Articles/894198/ luto <div class="FormattedComment"> On x86 (and probably most or even all other architectures), the total memory that a page fault might need to allocate for page table filling purposes is bounded and quite small. It would seem entirely reasonable and not necessarily even particularly difficult for do_user_addr_fault to grab its five pages in advance and avoid GFP_KERNEL allocations. The only real issue is that the control flow is backwards - the actual peg table setup in called from driver code.<br> <p> We could perhaps have a per-task lookaside list for these pages, though, or a per-task “don’t-use-GFP_KERNEL” flag.<br> </div> Sat, 07 May 2022 19:59:11 +0000