I see significant differences when I run make -j $(nproc) on the crun source code inside a krun VM compared to what I get on a VM created through libvirt.
On the libvirt VM I get:
Command being timed: "make -j 16"
User time (seconds): 23.80
System time (seconds): 2.71
Percent of CPU this job got: 438%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:06.05
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 101480
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 0
Minor (reclaiming a frame) page faults: 1314536
Voluntary context switches: 10232
Involuntary context switches: 10566
Swaps: 0
File system inputs: 0
File system outputs: 124864
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
while with krun (used through podman --runtime krun):
Command being timed: "make -j 16"
User time (seconds): 33.93
System time (seconds): 16.65
Percent of CPU this job got: 450%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:11.22
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 98064
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 71133
Minor (reclaiming a frame) page faults: 1699802
Voluntary context switches: 618947
Involuntary context switches: 36435
Swaps: 0
File system inputs: 0
File system outputs: 120488
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
Moving the source code on a tmpfs does not affect the Elapsed time.
I see significant differences when I run
make -j $(nproc)on the crun source code inside a krun VM compared to what I get on a VM created through libvirt.On the libvirt VM I get:
while with krun (used through
podman --runtime krun):Moving the source code on a tmpfs does not affect the Elapsed time.