thehajime / linux

Linux kernel source tree
https://lkl.github.io/
Other
3 stars 1 forks source link

zpoline nommu #1

Open thehajime opened 2 months ago

thehajime commented 2 months ago

for the record:

lmbench (usec)

native um um-nommu
select-10 0.2584 28.7245 0.2751
select-100 0.7548 31.3977 0.9887
select-1000 5.7399 60.8596 8.4134
syscall 0.0806 11.4508 0.0780
read 0.1464 19.6901 0.1166
write 0.1110 27.3296 0.1140
stat 1.5114 46.2612 0.4372
open/close 283.9560 101.4579 0.7859
fork+sh 3539.0000 15725.0000 38561.0000
fork+execve 1679.5714 5462.0000 9611.0000

do_getpid bench (nsec)

native um um-nommu
getpid 117 24733 83

image

github-actions[bot] commented 2 months ago

lmbench (usec)

native um um-nommu
select-10 0.5388 30.8835 0.2923
select-100 1.6581 28.1535 1.2466
select-1000 12.8734 37.1356 10.7843
syscall 0.1651 27.8988 0.0960
read 0.3208 27.0028 0.1448
write 0.2542 29.3782 0.1294
stat 1.9362 36.1034 0.4800
open/close 3.3007 66.5084 0.8472
fork+sh 1201.3333 15011.0000 42911.0000
fork+execve 519.0455 5338.0000 10488.0000

do_getpid bench (nsec)

native um um-nommu
getpid 163 27534 99

Imgur Images

github-actions[bot] commented 1 month ago

(after skipping translations on non E flag segments)

lmbench (usec)

native um um-nommu
select-10 0.5386 27.0927 0.2804
select-100 1.6715 32.1976 1.2052
select-1000 12.8782 42.9574 10.4321
syscall 0.1649 28.2738 0.1025
read 0.3205 27.1121 0.1371
write 0.2539 29.4618 0.1272
stat 1.9378 37.8954 0.4671
open/close 3.2773 69.2010 0.7973
fork+sh 1115.4000 16156.0000 26312.0000
fork+execve 510.6000 5430.3333 4326.3333

do_getpid bench (nsec)

native um um-nommu
getpid 165 27897 103

Imgur Images

github-actions[bot] commented 1 month ago

lmbench (usec)

native um um-nommu
select-10 0.5375 29.4642 0.2812
select-100 1.6564 27.8601 1.2349
select-1000 12.8655 41.3333 10.7207
syscall 0.1651 26.8792 0.0955
read 0.3205 27.6821 0.1487
write 0.2540 29.4223 0.1346
stat 1.9472 37.2944 0.4524
open/close 3.2041 62.7496 0.8102
fork+sh 1152.0000 14711.0000 25377.0000
fork+execve 534.7143 4890.0000 4219.0000

do_getpid bench (nsec)

native um um-nommu
getpid 162 27846 103

Imgur Images

github-actions[bot] commented 1 month ago

First attempt with newer alpine (3.20.3), w/ custom build busybox 1.36.1-r32, musl 1.2.5-r5, both nommu enabled.

lmbench (usec)

native um um-nommu
select-10 0.5573 26.4045 0.2755
select-100 2.4361 27.3608 1.2215
select-1000 20.5527 39.5185 10.6800
syscall 0.1734 27.8873 0.1030
read 0.3436 27.7672 0.1398
write 0.2861 26.9003 0.1334
stat 1.9257 37.5310 0.4588
open/close 3.8218 65.2532 0.7895
fork+sh 1157.0000 20624.0000 21466.0000
fork+execve 536.3000 4988.0000 4912.3333

do_getpid bench (nsec)

native um um-nommu
getpid 174 28693 102

Imgur Images

github-actions[bot] commented 1 month ago

lmbench (usec)

native um um-nommu
select-10 0.5566 26.9927 0.2751
select-100 2.4032 31.7365 1.2212
select-1000 20.7261 39.6562 10.6739
syscall 0.1734 26.9246 0.0951
read 0.3440 26.9575 0.1449
write 0.2860 28.4418 0.1237
stat 1.9150 37.4208 0.4673
open/close 3.8225 65.1122 0.7816
fork+sh 1156.3000 19572.0000 21651.0000
fork+execve 532.5789 4989.0000 4922.0000

do_getpid bench (nsec)

native um um-nommu
getpid 173 25719 102

Imgur Images

github-actions[bot] commented 1 month ago

lmbench (usec)

native um um-nommu
select-10 0.5559 26.1347 0.2761
select-100 2.3905 31.6509 1.2262
select-1000 20.7743 37.6378 10.6757
syscall 0.1737 26.9071 0.0956
read 0.3442 28.6331 0.1449
write 0.2858 26.2907 0.1250
stat 1.9392 38.8483 0.4604
open/close 3.8270 63.4634 0.7992
fork+sh 1159.2222 18948.0000 21496.0000
fork+execve 537.4737 5748.0000 4923.0000

do_getpid bench (nsec)

native um um-nommu
getpid 173 27114 100

Imgur Images

github-actions[bot] commented 1 month ago

lmbench (usec)

native um um-nommu
select-10 0.5576 27.6407 0.2795
select-100 2.4084 28.0443 1.2574
select-1000 20.4679 37.1763 10.9555
syscall 0.1745 26.6016 0.0961
read 0.3436 28.4830 0.1365
write 0.2862 27.6132 0.1231
stat 1.9232 38.1800 0.5058
open/close 3.8916 74.6701 0.8284
fork+sh 1154.4444 19309.0000 21367.0000
fork+execve 541.0000 5743.5000 4894.6667

do_getpid bench (nsec)

native um um-nommu
getpid 173 27625 99

Imgur Images

github-actions[bot] commented 1 month ago

First bench after v6.12-rc3 rebase.

lmbench (usec)

native um um-nommu
select-10 0.5645 28.3738 0.2647
select-100 2.3872 28.8385 1.1021
select-1000 20.5527 37.6364 9.4264
syscall 0.1735 26.8711 0.1037
read 0.3442 28.5771 0.1370
write 0.2862 28.7340 0.1236
stat 1.9236 38.5928 0.4640
open/close 3.8308 66.8451 0.7789
fork+sh 1176.4444 8221.5000 21443.0000
fork+execve 533.1053 3034.5000 4894.3333

do_getpid bench (nsec)

native um um-nommu
getpid 180 31579 101

Imgur Images

github-actions[bot] commented 4 weeks ago

lmbench (usec)

native um um-nommu
select-10 0.5570 26.7927 0.2805
select-100 2.3826 28.1721 1.1447
select-1000 20.4283 36.9361 9.7440
syscall 0.1737 28.8542 0.1045
read 0.3442 27.3758 0.1403
write 0.2860 28.2016 0.1264
stat 1.9256 36.8799 0.4642
open/close 3.8042 67.7977 0.7847
fork+sh 1153.4444 7386.5000 21483.0000
fork+execve 543.7368 2705.2500 4894.0000

do_getpid bench (nsec)

native um um-nommu
getpid 172 26954 101

Imgur Images

github-actions[bot] commented 4 weeks ago

lmbench (usec)

native um um-nommu
select-10 0.5550 27.0945 0.2819
select-100 2.3924 32.1433 1.1460
select-1000 20.7582 38.2483 9.7524
syscall 0.1735 26.3019 0.1047
read 0.3442 29.4834 0.1387
write 0.2862 26.3790 0.1259
stat 1.9180 38.8218 0.4600
open/close 3.8249 65.5292 0.7940
fork+sh 1159.4444 6307.0000 20730.0000
fork+execve 535.2857 2685.2500 4736.3333

do_getpid bench (nsec)

native um um-nommu
getpid 172 26294 111

Imgur Images

github-actions[bot] commented 3 weeks ago

lmbench (usec)

native um um-nommu
select-10 0.5548 26.9602 0.2835
select-100 2.3710 32.9110 1.1965
select-1000 20.5744 37.6508 10.3533
syscall 0.1734 29.0808 0.0951
read 0.3443 26.3905 0.1355
write 0.2864 26.5010 0.1233
stat 1.9316 36.4225 0.4831
open/close 3.8000 65.5912 0.7968
fork+sh 1160.7778 6160.5000 20829.0000
fork+execve 538.7895 2651.7500 4767.6667

do_getpid bench (nsec)

native um um-nommu
getpid 172 27706 102

Imgur Images

github-actions[bot] commented 3 weeks ago

seccomp filter for (direct) host syscall from guest

lmbench (usec)

native um um-nommu
select-10 0.5527 26.4988 0.2773
select-100 2.3984 31.2903 1.1247
select-1000 20.5244 38.7357 9.4240
syscall 0.1735 28.5146 0.0935
read 0.3444 26.3577 0.1293
write 0.2862 26.5416 0.1273
stat 1.9261 36.7708 0.4607
open/close 3.8207 63.0343 0.7795
fork+sh 1158.6667 6256.0000 20746.0000
fork+execve 535.5789 2663.2500 4770.0000

do_getpid bench (nsec)

native um um-nommu
getpid 172 26763 100

Imgur Images

github-actions[bot] commented 2 weeks ago

base branch is now uml/next (6.12-rc2)

lmbench (usec)

native um um-nommu
select-10 0.5681 27.5917 0.2719
select-100 2.3797 31.3735 1.1668
select-1000 20.7057 36.6217 10.0505
syscall 0.1737 25.7063 0.0909
read 0.3442 27.2432 0.1321
write 0.2862 27.1643 0.1316
stat 1.9299 36.1125 0.4633
open/close 3.8445 65.2414 0.8019
fork+sh 1161.8000 5350.0000 21046.0000
fork+execve 544.3810 2152.8000 4833.3333

do_getpid bench (nsec)

native um um-nommu
getpid 199 28949 93

Imgur Images

github-actions[bot] commented 2 weeks ago

With thread info patch applied.

lmbench (usec)

native um um-nommu
select-10 0.5559 30.2966 0.2741
select-100 2.3665 31.5894 1.0867
select-1000 20.5434 39.4465 9.1031
syscall 0.1735 25.7964 0.0945
read 0.3442 26.0853 0.1343
write 0.2860 25.9760 0.1266
stat 1.9236 37.5362 0.4713
open/close 3.8153 63.5731 0.7550
fork+sh 1159.6667 5291.5000 20533.0000
fork+execve 534.6190 2164.4000 4716.6667

do_getpid bench (nsec)

native um um-nommu
getpid 172 27413 99

Imgur Images

github-actions[bot] commented 1 week ago

with nommu-vma patch applied.

lmbench (usec)

native um um-nommu
select-10 0.5644 31.0917 0.2743
select-100 2.3869 31.4651 1.1472
select-1000 20.4004 36.4966 9.7533
syscall 0.1733 25.9904 0.1053
read 0.3438 27.4873 0.1451
write 0.2862 25.8794 0.1361
stat 1.9250 37.5072 0.4532
open/close 3.8961 65.1736 0.7665
fork+sh 1173.8889 5404.5000 20577.0000
fork+execve 535.2105 2179.2000 4716.3333

do_getpid bench (nsec)

native um um-nommu
getpid 172 25602 103

Imgur Images

github-actions[bot] commented 1 week ago

RFC v2 patch

lmbench (usec)

native um um-nommu
select-10 0.5562 27.5467 0.2681
select-100 2.3809 26.9358 1.0846
select-1000 20.3573 36.3477 9.1707
syscall 0.1734 26.1167 0.0985
read 0.3444 26.2729 0.1307
write 0.2860 27.2905 0.1266
stat 1.9249 35.9673 0.4591
open/close 3.8397 67.5847 0.7483
fork+sh 1148.0000 5348.5000 20629.0000
fork+execve 536.3500 2198.4000 4736.6667

do_getpid bench (nsec)

native um um-nommu
getpid 172 26360 102

Imgur Images

github-actions[bot] commented 3 days ago

lmbench (usec)

native um um-nommu
select-10 0.5573 30.4667 0.2785
select-100 2.3864 27.3057 1.0855
select-1000 20.3974 37.2347 9.1055
syscall 0.1733 26.7170 0.1000
read 0.3451 27.5763 0.1346
write 0.2859 28.0991 0.1354
stat 1.9295 36.6300 0.4673
open/close 3.9005 66.0173 0.7420
fork+sh 1177.7778 5256.5000 20728.0000
fork+execve 547.2105 2134.0000 4762.3333

do_getpid bench (nsec)

native um um-nommu
getpid 172 25494 106

Imgur Images