Tristan,

On 24/11/2026 04:36, Tristan wrote:
To test smaller sizes, I wrote a small program that calls
vm_allocate_contiguous() directly with the same boundaries and
alignment, increasing the size from 4 KiB to 64 KiB. Each allocation
is kept (not freed) before the next one. Run as root right after boot,
on a Guix System x86_64 image in QEMU (-M q35):

2 GiB guest:

   size=  4096 pmin=0 pmax=0x100000000 align=0x1000 -> kr=0 pa=0x66c7e000
   size=  8192 pmin=0 pmax=0x100000000 align=0x1000 -> kr=6 pa=0
   size= 16384 pmin=0 pmax=0x100000000 align=0x1000 -> kr=6 pa=0
   size= 32768 pmin=0 pmax=0x100000000 align=0x1000 -> kr=6 pa=0
   size= 65536 pmin=0 pmax=0x100000000 align=0x1000 -> kr=6 pa=0

So in the 2 GiB guest a single page works, but even an 8 KiB (two
page) contiguous allocation fails, while about 1.4 GiB is free. In the
6 GiB guest everything succeeds, and the blocks come from just below
2 GiB, i.e. the same DMA32 range.

Your test program succeeds on my 2GiB Debian Hurd virtual machine for many hundreds of iterations.

When you test with the Debian GNU/Hurd, what versions of gnumach and Hurd are you using?

Cheers,

Mike.


Reply via email to