Last active 1743465830

Adrian's Avatar Adrian revised this gist 1743465830. Go to revision

1 file changed, 186 insertions

gistfile1.txt(file created)

@@ -0,0 +1,186 @@
1 + Building loader
2 + ~/loader ~/hermit-rs/benches/netbench
3 + Finished `dev` profile [optimized + debuginfo] target(s) in 0.03s
4 + Running `target/debug/xtask build --target x86_64 --release`
5 + $ rustup target add x86_64-unknown-none
6 + info: component 'rust-std' for target 'x86_64-unknown-none' is up to date
7 + $ rustup component add llvm-tools-preview
8 + info: component 'llvm-tools' for target 'x86_64-unknown-linux-gnu' is up to date
9 + Building loader
10 + $ cargo build --target=x86_64-unknown-none --release
11 + Finished `release` profile [optimized] target(s) in 0.02s
12 + Copying target/x86_64-unknown-none/release/hermit-loader to target/release/hermit-loader-x86_64
13 + Converting object to elf32-i386
14 + $ /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
15 + Loader available at target/release/hermit-loader-x86_64
16 + ~/hermit-rs/benches/netbench
17 + Building server-bw image
18 + Compiling hermit v0.11.0 (/home/jens/hermit-rs/hermit)
19 + warning: [email protected]: $ 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"
20 + Compiling rust-tcp-io-perf v0.0.0 (/home/jens/hermit-rs/benches/netbench)
21 + Finished `release` profile [optimized + debuginfo] target(s) in 2.50s
22 + Launching server-bw image on QEMU
23 + [2025-03-31T23:25:19Z INFO virtiofsd] Waiting for vhost-user socket connection...
24 + [2025-03-31T23:25:20Z INFO virtiofsd] Client connected, servicing requests
25 + [LOADER][INFO] Loader: [0x100000 - 0x122059]
26 + [LOADER][INFO] Found Multiboot information at 0x9500
27 + [LOADER][WARN] Mapping 1 4KiB pages from 0x9000..0xa000 to 0x9000..0xa000
28 + [LOADER][INFO] Found an ELF module at [0x124000 - 0x3bfd670]
29 + [LOADER][INFO] Module length: 0x3ad9670
30 + [LOADER][WARN] Mapping 4KiB pages starting from 0x124000 to frames 0x124000..0x200000
31 + [LOADER][WARN] Mapping 2MiB pages starting from 0x200000 to frames 0x200000..0x3c00000
32 + [LOADER][INFO] Parsing kernel from ELF at 0x124000..0x3bfd670 (len = 0x3ad9670 B / 61707888 B)
33 + [LOADER][INFO] Found Hermit version 0.11.0
34 + [LOADER][WARN] Mapping 3 2MiB pages from 0x3c00000..0x4200000 to 0x3c00000..0x4200000
35 + [LOADER][INFO] Loading kernel to 0x3c00000..0x411d4a8 (len = 0x51d4a8 B / 5362856 B)
36 + [LOADER][INFO] TLS is at 0x3fddbe8..0x3fe3a58 (len = 0x5e70 B / 24176 B)
37 + [LOADER][WARN] Mapping 8 4KiB pages from 0xa000..0x12000 to 0xa000..0x12000
38 + [LOADER][INFO] boot_info = BootInfo {
39 + hardware_info: HardwareInfo {
40 + phys_addr_range: 0x0..0x0,
41 + serial_port_base: Some(
42 + 0x3f8,
43 + ),
44 + device_tree: Some(
45 + 0x1215a0,
46 + ),
47 + },
48 + load_info: LoadInfo {
49 + kernel_image_addr_range: 0x3c00000..0x411d4a8,
50 + tls_info: Some(
51 + TlsInfo {
52 + start: 0x3fddbe8,
53 + filesz: 0x40,
54 + memsz: 0x5e70,
55 + align: 0x8,
56 + },
57 + ),
58 + },
59 + platform_info: Multiboot {
60 + command_line: Some(
61 + "./../../../loader/target/release/hermit-loader-x86_64 -- --address 0.0.0.0 --bytes 1048576 --rounds 1",
62 + ),
63 + multiboot_info_addr: 0x9500,
64 + },
65 + }
66 + [LOADER][INFO] Entering kernel at 0x3eb3d44, stack at 0xa000, raw_boot_info at 0x120008
67 + [0][INFO] Welcome to Hermit 0.11.0
68 + [0][INFO] Kernel starts at 0x3c00000
69 + [0][INFO] FDT:
70 + / {
71 + compatible = "hermit,multiboot"
72 + #address-cells = <0x2>
73 + #size-cells = <0x2>
74 +
75 + memory@0 {
76 + device_type = "memory"
77 + reg = <0x0 0x9fc00>
78 + };
79 +
80 + memory@100000 {
81 + device_type = "memory"
82 + reg = <0x100000 0x3fee0000>
83 + };
84 +
85 + chosen {
86 + 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]
87 + };
88 + };
89 +
90 + [0][INFO] BSS starts at 0x411c3b8
91 + [0][INFO] tls_info = Some(
92 + TlsInfo {
93 + start: 0x3fddbe8,
94 + filesz: 0x40,
95 + memsz: 0x5e70,
96 + align: 0x8,
97 + },
98 + )
99 + [0][INFO] Total memory size: 957 MiB
100 + [0][INFO] Kernel region: 0x3c00000..0x4200000
101 + [0][INFO] Minimum memory size: 71
102 + [0][INFO] Heap: size 794 MB, start address 0x400000000000
103 + [0][INFO] Heap is located at 0x400000000000..0x400031a00000 (0 Bytes unmapped)
104 + [0][INFO] Physical memory free list:
105 + 0x4402000.. 0x4600000 (len = 0x1fe000, pages = 510)
106 + 0x35e00000.. 0x3ffe0000 (len = 0xa1e0000, pages = 41440)
107 + [0][INFO] Virtual memory free list:
108 + 0x400031a00000.. 0x800000000000 (len = 0x3fffce600000, pages = 17179665920)
109 + [0][INFO] bootargs = ./../../../loader/target/release/hermit-loader-x86_64 -- --address 0.0.0.0 --bytes 1048576 --rounds 1
110 + [0][INFO]
111 + [0][INFO] ========================== CPU INFORMATION ===========================
112 + [0][INFO] Model: AMD Ryzen 7 6800U with Radeon Graphics
113 + [0][INFO] Frequency: 2694 MHz (from Tsc Info from Hypervisor)
114 + [0][INFO] SpeedStep Technology: Not Available
115 + [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
116 + [0][INFO] Physical Address Width: 48 bits
117 + [0][INFO] Linear Address Width: 48 bits
118 + [0][INFO] Supports 1GiB Pages: Yes
119 + [0][INFO] ======================================================================
120 + [0][INFO]
121 + [0][INFO] Hermit booted on 2025-03-31 23:25:19.88474 +00:00:00
122 + [0][INFO] Found an ACPI revision 0 table at 0xF52D0 with OEM ID "BOCHS "
123 + [0][INFO] IOAPIC v17 has 24 entries
124 + [0][INFO]
125 + [0][INFO] ===================== MULTIPROCESSOR INFORMATION =====================
126 + [0][INFO] APIC in use: x2APIC
127 + [0][INFO] Initialized CPUs: 1
128 + [0][INFO] ======================================================================
129 + [0][INFO]
130 + [0][INFO] Compiled with PCI support
131 + [0][INFO] Compiled with ACPI support
132 + [0][INFO] Compiled with FSGSBASE support
133 + [0][INFO] Compiled with SMP support
134 + [0][INFO]
135 + [0][INFO] ======================== PCI BUS INFORMATION =========================
136 + [0][INFO] 00:00 Host bridge [0600]: Intel Corporation 440FX - 82441FX PMC [Natoma] [8086:1237]
137 + [0][INFO] 00:01 ISA bridge [0601]: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] [8086:7000]
138 + [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 }
139 + [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 }
140 + [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 }
141 + [0][INFO] ======================================================================
142 + [0][INFO]
143 + [0][INFO] Hermit is running on common system!
144 + [0][INFO] Found virtio device with device id 0x1041
145 + [0][INFO] Feature set wanted by network driver are in conformance with specification.
146 + [0][INFO] Feature set wanted by network driver are in conformance with specification.
147 + [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)
148 + [0][INFO] Features have been negotiated between virtio network device 1041 and driver.
149 + [0][INFO] Created PackedVq: idx=0, size=256
150 + [0][INFO] Created PackedVq: idx=1, size=256
151 + [0][INFO] Network driver successfully initialized virtqueues.
152 + [0][INFO] Device specific initialization for Virtio network device 1041 finished
153 + [0][INFO] Network device with id 1041, has been initialized by driver!
154 + [0][INFO] Virtio-net link is up after initialization.
155 + [0][INFO] Virtio network driver initialized.
156 + [0][INFO] Virtio interrupt handler at line 11
157 + [0][INFO] Found virtio device with device id 0x105a
158 + [0][INFO] Features have been negotiated between virtio filesystem device 105a and driver.
159 + [0][INFO] Created SplitVq: idx=0, size=1024
160 + [0][INFO] Created SplitVq: idx=1, size=1024
161 + [0][INFO] Filesystem device with id 105a, has been initialized by driver!
162 + [0][INFO] Virtio filesystem driver initialized.
163 + [0][INFO] Try to initialize network!
164 + [0][INFO] MAC address 52-54-00-12-34-56
165 + [0][INFO] ChecksumCapabilities { ipv4: Both, udp: Both, tcp: Both, icmpv4: Both, icmpv6: Both }
166 + [0][INFO] MTU: 1514 bytes
167 + [0][INFO] DHCP lost config!
168 + [0][INFO] DHCP config acquired!
169 + [0][INFO] IP address: 192.168.76.9/24
170 + [0][INFO] Default gateway: 192.168.76.2
171 + [0][INFO] DNS server 0: 192.168.76.3
172 + Warning: Cannot announce submounts, client does not support it
173 + [0][INFO] Mounting virtio-fs at /tracedir
174 + [0][INFO] Try to initialize uhyve filesystem
175 + [0][INFO] Jumping into application
176 + [2025-03-31T23:25:20Z INFO rust_tcp_io_perf::connection] Server running, listening for connection on 0.0.0.0:7878
177 + [2025-04-01T00:00:36Z INFO rust_tcp_io_perf::connection] Connection established with 192.168.76.2:58222!
178 +
179 + thread 'main' panicked at benches/netbench/src/rust-tcp-bw/server.rs:33:37:
180 + called `Result::unwrap()` on an `Err` value: Kind(Uncategorized)
181 + Number of interrupts
182 + [0][FPU]: 1
183 + [0][virtio]: 3
184 + [0][Timer]: 1
185 + exit status -1
186 + [2025-04-01T00:00:35Z INFO virtiofsd] Client disconnected, shutting down
Newer Older