LWN: Comments on "Triggering huge-page collapse from user space" https://lwn.net/Articles/887753/ This is a special feed containing comments posted to the individual LWN article titled "Triggering huge-page collapse from user space". en-us Thu, 06 Nov 2025 11:46:11 +0000 Thu, 06 Nov 2025 11:46:11 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Triggering huge-page collapse from user space https://lwn.net/Articles/888797/ https://lwn.net/Articles/888797/ jezuch <div class="FormattedComment"> FWIW I immediately understood the intended meaning. Caveat: I&#x27;m not a native speaker and I read way too much about astrophysics :)<br> </div> Tue, 22 Mar 2022 12:53:25 +0000 Triggering huge-page collapse from user space https://lwn.net/Articles/888420/ https://lwn.net/Articles/888420/ zokeefe <div class="FormattedComment"> Thanks for the kind writeup! :)<br> <p> <font class="QuotedText">&gt; This call will attempt to collapse length bytes of memory beginning at begin into huge pages. There does not appear to be any specific alignment requirement for those parameters, even though huge pages do have alignment requirements.</font><br> <p> I should call out what happens when parameters are passed that don&#x27;t align with architecture hugepage size/alignment; thanks for pointing out that I didn&#x27;t mention this anywhere.<br> <p> <font class="QuotedText">&gt; If begin points to a base page in the middle of the address range that the huge page containing it will cover, then pages before begin will become part of the result. In other words, begin will be aligned backward to the proper beginning address for the containing huge page. The same is true for length, which will be increased if necessary to encompass a full huge page.&quot;</font><br> <p> A small correction: the opposite actually happens; we forward align the start and backward align the end. Else, we&#x27;d have to make a decision on what to do if the new range fell outside the VMA(s). IOW, we clamp the provided range(s) to be hugepage aligned/sized.<br> </div> Fri, 18 Mar 2022 15:27:19 +0000 Triggering huge-page collapse from user space https://lwn.net/Articles/888419/ https://lwn.net/Articles/888419/ zokeefe <div class="FormattedComment"> I thought about &quot;coalesce&quot;, but &quot;collapse&quot; is just what the operation is ubiquitously referred to in the kernel and existing apis (e.g. /sys/kernel/mm/transparent_hugepage/khugepaged/pages_collapsed) and stats (e.g. /proc/vmstat:thp_collapse_alloc[_failed]).<br> </div> Fri, 18 Mar 2022 15:08:40 +0000 Triggering huge-page collapse from user space https://lwn.net/Articles/888398/ https://lwn.net/Articles/888398/ pitb0ss <div class="FormattedComment"> Perhaps coalesce is another good word<br> </div> Fri, 18 Mar 2022 13:34:34 +0000 Triggering huge-page collapse from user space https://lwn.net/Articles/888362/ https://lwn.net/Articles/888362/ ncm <div class="FormattedComment"> The most apt English word is &quot;consolidate&quot;.<br> <p> (That did not stop business reporters from preferring &quot;conglomerate&quot;, some decades back.)<br> </div> Fri, 18 Mar 2022 01:17:06 +0000 Triggering huge-page collapse from user space https://lwn.net/Articles/888005/ https://lwn.net/Articles/888005/ mtaht <div class="FormattedComment"> aggregate, rather than &quot;collapse&quot; might be a better word.<br> </div> Wed, 16 Mar 2022 00:44:40 +0000 Triggering huge-page collapse from user space https://lwn.net/Articles/887859/ https://lwn.net/Articles/887859/ Wol <div class="FormattedComment"> Think of the energy. It takes an release of energy to make things explode, a minimal flow of energy to make things collapse, while an implosion gives of a blast of energy.<br> <p> So I guess collapse is the right word here. There&#x27;s a minimal change observable from outside the system, while what was there is still there, just looking a lot smaller because all the empty space has been squeezed out.<br> <p> Cheers,<br> Wol<br> </div> Tue, 15 Mar 2022 08:16:23 +0000 Triggering huge-page collapse from user space https://lwn.net/Articles/887856/ https://lwn.net/Articles/887856/ edeloget <div class="FormattedComment"> Both are true. Some programs are perfectly happy with a lot of small, non-contiguous virtual memory ranges because they never do large allocations. <br> </div> Tue, 15 Mar 2022 07:01:50 +0000 Triggering huge-page collapse from user space https://lwn.net/Articles/887854/ https://lwn.net/Articles/887854/ Nikratio <div class="FormattedComment"> &quot;Processes do not always need large, virtually contiguous memory ranges,&quot; - that should be &quot;physically&quot;, not &quot;virtually&quot; I think?<br> </div> Tue, 15 Mar 2022 05:49:43 +0000 Triggering huge-page collapse from user space https://lwn.net/Articles/887849/ https://lwn.net/Articles/887849/ Karellen <div class="FormattedComment"> I suppose it&#x27;s the difference between a solid object collapsing into individual pieces, like a wall collapsing into a disconnected pile of bricks; or a sparsely connected group of elements collapsing into a single mass, like a house of cards collapsing into a dense pile of cards.<br> <p> Do things generally collapse outwards, or inwards?<br> </div> Tue, 15 Mar 2022 00:41:43 +0000 Triggering huge-page collapse from user space https://lwn.net/Articles/887840/ https://lwn.net/Articles/887840/ flussence <div class="FormattedComment"> I&#x27;d just think of it like pulling down a shelving unit to free up space for larger items; you&#x27;re removing structure after all.<br> <p> In terms of difficulty I&#x27;d say huge pages lies somewhere between rearranging occupied shelves without breaking the contents and safely containing a black hole…<br> </div> Mon, 14 Mar 2022 20:47:30 +0000 Triggering huge-page collapse from user space https://lwn.net/Articles/887829/ https://lwn.net/Articles/887829/ droundy <div class="FormattedComment"> Me too! It&#x27;s a little more like a black hole collapse...<br> </div> Mon, 14 Mar 2022 17:23:02 +0000 Triggering huge-page collapse from user space https://lwn.net/Articles/887828/ https://lwn.net/Articles/887828/ Sesse <div class="FormattedComment"> I originally assumed “collapse” meant that the huge page would collapse and splinter into individual pages, but no, it&#x27;s the opposite!<br> </div> Mon, 14 Mar 2022 16:57:15 +0000