Hello Tristan,

Could you share the physical address boundaries passed to the
`vm_allocate_contiguous()`
function in both runs, as well as the physical address returned in the 6
GiB run? In the 2 GiB
guest system, does a single 4 KiB page allocation succeed when using the
same boundaries
and alignment values?

Kind regards,
Alperen Erkan

On Sun, Nov 22, 2026 at 4:34 PM Tristan <[email protected]> wrote:

> Hello,
>
> I've been trying to get networking working with rumpnet on 64-bit
> GNU/Hurd, both in QEMU and on a real laptop (ThinkPad T400), and found
> that it fails whenever the machine has less than 4 GB of RAM.
>
> When I start rumpnet, it finds the network card but gives up right
> away:
>
>   wm0 at pci0 dev 2 function 0, 64-bit DMA: Intel i82540EM 1000BASE-T
> Ethernet (rev. 0x03)
>   wm0: unable to allocate TX control data, error = 1
>   wm0: cannot allocate queues 1
>
> If I give the same virtual machine more memory, it works: the card is
> set up correctly and I can ping out.
>
> What I tried:
>
>   - Debian GNU/Hurd amd64 in QEMU, about 2 GB of RAM:   fails
>   - Guix System 64-bit image in QEMU, 2 GB of RAM:      fails
>   - Guix System 64-bit image in QEMU, 6 GB of RAM:      works
>   - ThinkPad T400 (Intel 82567LF), 2 GB of RAM:         fails
>
> How to reproduce it in QEMU:
>
>   qemu-system-x86_64 -enable-kvm -M q35 -m 2048 \
>       -device e1000,netdev=net0 -netdev user,id=net0 \
>       -hda debian-hurd-amd64.img
>
> Then, as root inside the VM:
>
>   settrans -cfga /dev/rumpnet /hurd/rumpnet
>
> The error appears right away. Running the same thing with -m 6144
> instead of -m 2048 works.
>
> I added some logging to find out where it fails: the memory request
> that fails is a 64 KB contiguous allocation below 4 GB, and
> vm_allocate_contiguous() returns KERN_RESOURCE_SHORTAGE, even though
> the VM has plenty of free memory at that point.
>
> The log line was (align is in hex, i.e. 4096 bytes):
>
>   vm_allocate_contiguous(size=65536, align=1000, host=16): 6
>
> I'm happy to test patches, in QEMU or on the T400.
>
> Thanks,
> Tristan
>
>

Reply via email to