Hi,

> Thanks for the update. Your Guix tests clarify the 2 GiB result: the same 64 
> KiB allocation succeeds before
> rumpnet starts, fails while it is running, and succeeds again after it stops.
>
> For the T400, comparing 7c686eff and ee91ddf0 under the same conditions would 
> tell us whether both
> revisions work with the Intel 82567LF on x86_64. The reported 32-bit r8169 
> crash would still need a separate
> test. I’d also be interested in the result of your planned rumpnet test with 
> the card untouched by netdde.

As suggested, the Guix update will use dde 7c686eff and leave ee91ddf0
out for now. Here are the results from the T400 (x86_64, Intel 82567LF
[8086:10bf] at 00:19.0, ICH9M AHCI [8086:2929] at 00:1f.2).

Versions: gnumach 1.8+git20261122, hurd 30202dc, rumpkernel
debian/0_20250111-10. The rumpkernel has a local debug patch that logs
any failed vm_allocate_contiguous() call in rumpcomp_pci_dmalloc().


netdde, 6 GB RAM
----------------

The two images differ only in dde-sources. The test was three
consecutive downloads of a 972 MiB file from ftp.gnu.org
(wget -4 -O /dev/null, HTTPS), after a cold boot:

  7c686eff: 23m41s, 10m13s, 22m06s
  ee91ddf0: 10m34s, 10m22s,  9m25s

All six downloads completed, with no freezes or link drops. The speed
difference is due to the internet link (the runs were at different
times of day), not to dde. So both revisions work with the 82567LF on
x86_64 here.

The card has two 32-bit non-prefetchable BARs (fc000000, fc024000), so
this does not exercise 64-bit BARs above 4 GiB, but there is RAM above
4 GiB. I don't have r8169 hardware for the 32-bit crash.


rumpnet, with netdde never started (cold boot)
----------------------------------------------

6 GB: wm0 initialises fine. Three 972 MiB downloads complete (11m28s,
11m13s, 10m36s). A small test program doing vm_allocate_contiguous()
of 4-64 KiB with pmax=0x100000000, align=0x1000 succeeds before, during
and after rumpnet (pa around 0xbd4xxxxx-0xbd6xxxxx). No dmalloc
failures were logged.

2 GB: wm0 also initialises fine and ping works. The same allocations
succeed before and during rumpnet (pa 0x4f7xxxxx-0x77fxxxxx). No
dmalloc failures were logged.

My earlier failing 2 GB setup used gnumach 1.8+git20260224 and
rumpkernel debian/0_20250111-6 (without dma_bounce_buffers.diff). Both
changed since, so I can't tell whether the DMA32 segment change or the
bounce buffers fixed it.

Also, wm attaches with "64-bit DMA":

  wm0 at pci0 dev 25 function 0, 64-bit DMA: 82801I mobile LAN
Controller (rev. 0x03)

so it shouldn't need bounce buffers (or hit the
bus_dmamap_load_mbuf() panic) at all. That question remains open for
32-bit-only NICs.

The "WARNING: 1 error while detecting hardware" at rumpnet start comes
from "wm0: Previously assumed PHY read/write function was incorrect."
(Marvell 88E1149 PHY) and seems harmless.


One issue when stopping rumpnet
-------------------------------

Stopping rumpnet with settrans -fg prints:

  irq handler [20]: release a dead delivery port ffffffffc0579d58
entry ffffffffbda05b80
  irq handler [20]: still 1 unacked irqs in entry ffffffffbda05b80

and the whole system becomes very slow afterwards (ps and lspci take
minutes). vmstat shows no memory pressure (5358M free, about 5.6M of
pageouts in total, no swap), and rumpdisk is the only process in state
R.

On this machine the 82567LF and the AHCI controller share the interrupt
line (both IRQ 11 in lspci, so presumably the same GSI 20 under APIC).
It looks like rumpdisk is starved by the unacked IRQ that rumpnet left
behind.

Tristan

Reply via email to