Building loader ~/loader ~/hermit-rs/benches/netbench Finished `dev` profile [optimized + debuginfo] target(s) in 0.03s Running `target/debug/xtask build --target x86_64 --release` $ rustup target add x86_64-unknown-none info: component 'rust-std' for target 'x86_64-unknown-none' is up to date $ rustup component add llvm-tools-preview info: component 'llvm-tools' for target 'x86_64-unknown-linux-gnu' is up to date Building loader $ cargo build --target=x86_64-unknown-none --release Finished `release` profile [optimized] target(s) in 0.02s Copying target/x86_64-unknown-none/release/hermit-loader to target/release/hermit-loader-x86_64 Converting object to elf32-i386 $ /home/jens/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-objcopy --output-target elf32-i386 target/release/hermit-loader-x86_64 Loader available at target/release/hermit-loader-x86_64 ~/hermit-rs/benches/netbench Building server-bw image Compiling hermit v0.11.0 (/home/jens/hermit-rs/hermit) warning: hermit@0.11.0: $ cd "/home/jens/hermit-rs/kernel" && env -u CARGO -u CARGO_CFG_FEATURE -u CARGO_CFG_FMT_DEBUG -u CARGO_CFG_OVERFLOW_CHECKS -u CARGO_CFG_PANIC -u CARGO_CFG_RELOCATION_MODEL -u CARGO_CFG_TARGET_ABI -u CARGO_CFG_TARGET_ARCH -u CARGO_CFG_TARGET_ENDIAN -u CARGO_CFG_TARGET_ENV -u CARGO_CFG_TARGET_FEATURE -u CARGO_CFG_TARGET_HAS_ATOMIC -u CARGO_CFG_TARGET_HAS_ATOMIC_EQUAL_ALIGNMENT -u CARGO_CFG_TARGET_HAS_ATOMIC_LOAD_STORE -u CARGO_CFG_TARGET_OS -u CARGO_CFG_TARGET_POINTER_WIDTH -u CARGO_CFG_TARGET_THREAD_LOCAL -u CARGO_CFG_TARGET_VENDOR -u CARGO_CFG_UB_CHECKS -u CARGO_ENCODED_RUSTFLAGS -u CARGO_FEATURE_ACPI -u CARGO_FEATURE_DHCPV4 -u CARGO_FEATURE_FS -u CARGO_FEATURE_FSGSBASE -u CARGO_FEATURE_INSTRUMENT -u CARGO_FEATURE_PCI -u CARGO_FEATURE_PCI_IDS -u CARGO_FEATURE_SMP -u CARGO_FEATURE_TCP -u CARGO_HOME -u CARGO_MAKEFLAGS -u CARGO_MANIFEST_DIR -u CARGO_MANIFEST_LINKS -u CARGO_MANIFEST_PATH -u CARGO_PKG_AUTHORS -u CARGO_PKG_DESCRIPTION -u CARGO_PKG_HOMEPAGE -u CARGO_PKG_LICENSE -u CARGO_PKG_LICENSE_FILE -u CARGO_PKG_NAME -u CARGO_PKG_README -u CARGO_PKG_REPOSITORY -u CARGO_PKG_RUST_VERSION -u CARGO_PKG_VERSION -u CARGO_PKG_VERSION_MAJOR -u CARGO_PKG_VERSION_MINOR -u CARGO_PKG_VERSION_PATCH -u CARGO_PKG_VERSION_PRE -u LD_LIBRARY_PATH -u RUSTC -u RUSTDOC -u RUSTUP_HOME -u RUSTUP_TOOLCHAIN -u RUST_RECURSION_COUNT "/home/jens/.cargo/bin/cargo" "run" "--package=xtask" "--target-dir" "/home/jens/hermit-rs/target/x86_64-unknown-hermit/release/build/hermit-6ede7ca3cac79bde/out/target" "--" "build" "--arch" "x86_64" "--profile" "release" "--target-dir" "/home/jens/hermit-rs/target/x86_64-unknown-hermit/release/build/hermit-6ede7ca3cac79bde/out/target" "--instrument-mcount" "--no-default-features" "--features" "acpi dhcpv4 fs fsgsbase pci pci-ids smp tcp" Compiling rust-tcp-io-perf v0.0.0 (/home/jens/hermit-rs/benches/netbench) Finished `release` profile [optimized + debuginfo] target(s) in 2.50s Launching server-bw image on QEMU [2025-03-31T23:25:19Z INFO virtiofsd] Waiting for vhost-user socket connection... [2025-03-31T23:25:20Z INFO virtiofsd] Client connected, servicing requests [LOADER][INFO] Loader: [0x100000 - 0x122059] [LOADER][INFO] Found Multiboot information at 0x9500 [LOADER][WARN] Mapping 1 4KiB pages from 0x9000..0xa000 to 0x9000..0xa000 [LOADER][INFO] Found an ELF module at [0x124000 - 0x3bfd670] [LOADER][INFO] Module length: 0x3ad9670 [LOADER][WARN] Mapping 4KiB pages starting from 0x124000 to frames 0x124000..0x200000 [LOADER][WARN] Mapping 2MiB pages starting from 0x200000 to frames 0x200000..0x3c00000 [LOADER][INFO] Parsing kernel from ELF at 0x124000..0x3bfd670 (len = 0x3ad9670 B / 61707888 B) [LOADER][INFO] Found Hermit version 0.11.0 [LOADER][WARN] Mapping 3 2MiB pages from 0x3c00000..0x4200000 to 0x3c00000..0x4200000 [LOADER][INFO] Loading kernel to 0x3c00000..0x411d4a8 (len = 0x51d4a8 B / 5362856 B) [LOADER][INFO] TLS is at 0x3fddbe8..0x3fe3a58 (len = 0x5e70 B / 24176 B) [LOADER][WARN] Mapping 8 4KiB pages from 0xa000..0x12000 to 0xa000..0x12000 [LOADER][INFO] boot_info = BootInfo { hardware_info: HardwareInfo { phys_addr_range: 0x0..0x0, serial_port_base: Some( 0x3f8, ), device_tree: Some( 0x1215a0, ), }, load_info: LoadInfo { kernel_image_addr_range: 0x3c00000..0x411d4a8, tls_info: Some( TlsInfo { start: 0x3fddbe8, filesz: 0x40, memsz: 0x5e70, align: 0x8, }, ), }, platform_info: Multiboot { command_line: Some( "./../../../loader/target/release/hermit-loader-x86_64 -- --address 0.0.0.0 --bytes 1048576 --rounds 1", ), multiboot_info_addr: 0x9500, }, } [LOADER][INFO] Entering kernel at 0x3eb3d44, stack at 0xa000, raw_boot_info at 0x120008 [0][INFO] Welcome to Hermit 0.11.0 [0][INFO] Kernel starts at 0x3c00000 [0][INFO] FDT: / { compatible = "hermit,multiboot" #address-cells = <0x2> #size-cells = <0x2> memory@0 { device_type = "memory" reg = <0x0 0x9fc00> }; memory@100000 { device_type = "memory" reg = <0x100000 0x3fee0000> }; chosen { bootargs = [46, 47, 46, 46, 47, 46, 46, 47, 46, 46, 47, 108, 111, 97, 100, 101, 114, 47, 116, 97, 114, 103, 101, 116, 47, 114, 101, 108, 101, 97, 115, 101, 47, 104, 101, 114, 109, 105, 116, 45, 108, 111, 97, 100, 101, 114, 45, 120, 56, 54, 95, 54, 52, 32, 45, 45, 32, 45, 45, 97, 100, 100, 114, 101, 115, 115, 32, 48, 46, 48, 46, 48, 46, 48, 32, 45, 45, 98, 121, 116, 101, 115, 32, 49, 48, 52, 56, 53, 55, 54, 32, 45, 45, 114, 111, 117, 110, 100, 115, 32, 49, 0] }; }; [0][INFO] BSS starts at 0x411c3b8 [0][INFO] tls_info = Some( TlsInfo { start: 0x3fddbe8, filesz: 0x40, memsz: 0x5e70, align: 0x8, }, ) [0][INFO] Total memory size: 957 MiB [0][INFO] Kernel region: 0x3c00000..0x4200000 [0][INFO] Minimum memory size: 71 [0][INFO] Heap: size 794 MB, start address 0x400000000000 [0][INFO] Heap is located at 0x400000000000..0x400031a00000 (0 Bytes unmapped) [0][INFO] Physical memory free list: 0x4402000.. 0x4600000 (len = 0x1fe000, pages = 510) 0x35e00000.. 0x3ffe0000 (len = 0xa1e0000, pages = 41440) [0][INFO] Virtual memory free list: 0x400031a00000.. 0x800000000000 (len = 0x3fffce600000, pages = 17179665920) [0][INFO] bootargs = ./../../../loader/target/release/hermit-loader-x86_64 -- --address 0.0.0.0 --bytes 1048576 --rounds 1 [0][INFO] [0][INFO] ========================== CPU INFORMATION =========================== [0][INFO] Model: AMD Ryzen 7 6800U with Radeon Graphics [0][INFO] Frequency: 2694 MHz (from Tsc Info from Hypervisor) [0][INFO] SpeedStep Technology: Not Available [0][INFO] Features: MMX SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AESNI RDRAND FMA MOVBE MCE FXSR XSAVE RDTSCP CLFLUSH TSC-DEADLINE X2APIC HYPERVISOR AVX2 BMI1 BMI2 PKU FSGSBASE RDSEED [0][INFO] Physical Address Width: 48 bits [0][INFO] Linear Address Width: 48 bits [0][INFO] Supports 1GiB Pages: Yes [0][INFO] ====================================================================== [0][INFO] [0][INFO] Hermit booted on 2025-03-31 23:25:19.88474 +00:00:00 [0][INFO] Found an ACPI revision 0 table at 0xF52D0 with OEM ID "BOCHS " [0][INFO] IOAPIC v17 has 24 entries [0][INFO] [0][INFO] ===================== MULTIPROCESSOR INFORMATION ===================== [0][INFO] APIC in use: x2APIC [0][INFO] Initialized CPUs: 1 [0][INFO] ====================================================================== [0][INFO] [0][INFO] Compiled with PCI support [0][INFO] Compiled with ACPI support [0][INFO] Compiled with FSGSBASE support [0][INFO] Compiled with SMP support [0][INFO] [0][INFO] ======================== PCI BUS INFORMATION ========================= [0][INFO] 00:00 Host bridge [0600]: Intel Corporation 440FX - 82441FX PMC [Natoma] [8086:1237] [0][INFO] 00:01 ISA bridge [0601]: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] [8086:7000] [0][INFO] 00:02 VGA compatible controller [0300]: Unknown Vendor Unknown Device [1234:1111], BAR0 Memory32 { address: 0xFD000000, size: 0x1000000, prefetchable: true }, BAR2 Memory32 { address: 0xFEBD0000, size: 0x1000, prefetchable: false } [0][INFO] 00:03 Ethernet controller [0200]: Red Hat, Inc. Virtio network device [1AF4:1041], IRQ 11, BAR1 Memory32 { address: 0xFEBD1000, size: 0x1000, prefetchable: false }, BAR4 Memory64 { address: 0xFE000000, size: 0x4000, prefetchable: true } [0][INFO] 00:04 Mass storage controller [0180]: Red Hat, Inc. Virtio file system [1AF4:105A], IRQ 11, BAR1 Memory32 { address: 0xFEBD2000, size: 0x1000, prefetchable: false }, BAR4 Memory64 { address: 0xFE004000, size: 0x4000, prefetchable: true } [0][INFO] ====================================================================== [0][INFO] [0][INFO] Hermit is running on common system! [0][INFO] Found virtio device with device id 0x1041 [0][INFO] Feature set wanted by network driver are in conformance with specification. [0][INFO] Feature set wanted by network driver are in conformance with specification. [0][INFO] Driver found a subset of features for virtio device 1041. Features are: F(MAC | MRG_RXBUF | STATUS | MQ | INDIRECT_DESC | VERSION_1 | RING_PACKED) [0][INFO] Features have been negotiated between virtio network device 1041 and driver. [0][INFO] Created PackedVq: idx=0, size=256 [0][INFO] Created PackedVq: idx=1, size=256 [0][INFO] Network driver successfully initialized virtqueues. [0][INFO] Device specific initialization for Virtio network device 1041 finished [0][INFO] Network device with id 1041, has been initialized by driver! [0][INFO] Virtio-net link is up after initialization. [0][INFO] Virtio network driver initialized. [0][INFO] Virtio interrupt handler at line 11 [0][INFO] Found virtio device with device id 0x105a [0][INFO] Features have been negotiated between virtio filesystem device 105a and driver. [0][INFO] Created SplitVq: idx=0, size=1024 [0][INFO] Created SplitVq: idx=1, size=1024 [0][INFO] Filesystem device with id 105a, has been initialized by driver! [0][INFO] Virtio filesystem driver initialized. [0][INFO] Try to initialize network! [0][INFO] MAC address 52-54-00-12-34-56 [0][INFO] ChecksumCapabilities { ipv4: Both, udp: Both, tcp: Both, icmpv4: Both, icmpv6: Both } [0][INFO] MTU: 1514 bytes [0][INFO] DHCP lost config! [0][INFO] DHCP config acquired! [0][INFO] IP address: 192.168.76.9/24 [0][INFO] Default gateway: 192.168.76.2 [0][INFO] DNS server 0: 192.168.76.3 Warning: Cannot announce submounts, client does not support it [0][INFO] Mounting virtio-fs at /tracedir [0][INFO] Try to initialize uhyve filesystem [0][INFO] Jumping into application [2025-03-31T23:25:20Z INFO rust_tcp_io_perf::connection] Server running, listening for connection on 0.0.0.0:7878 [2025-04-01T00:00:36Z INFO rust_tcp_io_perf::connection] Connection established with 192.168.76.2:58222! thread 'main' panicked at benches/netbench/src/rust-tcp-bw/server.rs:33:37: called `Result::unwrap()` on an `Err` value: Kind(Uncategorized) Number of interrupts [0][FPU]: 1 [0][virtio]: 3 [0][Timer]: 1 exit status -1 [2025-04-01T00:00:35Z INFO virtiofsd] Client disconnected, shutting down