Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[runtime] Adaptable timer resolution based on CPU cycles #1305

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

anandbonde
Copy link
Contributor

@anandbonde anandbonde commented Jun 7, 2024

This PR closes #1226.

@anandbonde anandbonde requested a review from iyzhang June 7, 2024 23:04
@anandbonde anandbonde self-assigned this Jun 7, 2024
@anandbonde anandbonde force-pushed the ab-rdtscp-timer-res-adjustment branch from e008d13 to b493513 Compare June 11, 2024 19:15
Copy link

libos = catnip
commit id = b493513

fn percent_time mean_cycles_per_call mean_ns_per_call
inetstack::poll_bg_work::for::receive 67.46 9963.69 4559.98
demikernel::new 60.40 1808549412.87 826832913.44
inetstack::poll_recv 34.35 475.36 217.20
tcp::established::background::retransmitter 33.40 1408.28 640.98
tcp::established::background::sender 23.12 853.01 388.64
tcp::established::background::receiver 20.27 621.58 283.17
udp::receive 17.30 360.55 155.98
tcp::established::background::acknowledger 11.25 422.46 192.51
inetstack::poll_bg_work::for::for 8.46 632.17 290.51
Inetstack::TCP::established::background 4.07 3592.57 1637.16
NetworkLibOS::pop 0.74 1001.73 455.87
NetworkLibOS::push 0.51 2101.78 966.51
inetstack::poll 0.45 43889.38 20092.06
demikernel::push 0.16 648.92 297.60
demikernel::sgaalloc 0.12 262.24 119.33
demikernel::pop 0.09 409.26 187.59
NetworkLibOS::pushto 0.08 1128.56 489.05
demikernel::pushto 0.03 406.70 176.22
demikernel::sgafree 0.02 63.80 29.19
NetworkLibOS::connect 0.01 20648.74 9367.28
NetworkLibOS::close 0.01 8612.38 3939.04
Inetstack::TCP::passiveopen::background 0.00 22784.24 10788.64
demikernel::bind 0.00 11318.95 5201.71
passive_listening::poll 0.00 7640.33 3599.01
demikernel::listen 0.00 5395.67 2482.60
demikernel::connect 0.00 4278.06 1957.52
NetworkLibOS::accept 0.00 3163.88 1496.93
Inetstack::ICMP::background 0.00 3092.10 1412.14
Inetstack::arp::background 0.00 2161.74 987.52
demikernel::accept 0.00 1624.20 765.78
demikernel::socket 0.00 1272.76 583.50
demikernel::close 0.00 nan nan

@anandbonde anandbonde force-pushed the ab-rdtscp-timer-res-adjustment branch from b493513 to b63c095 Compare June 11, 2024 21:40
Copy link

libos = catnip
commit id = b63c095

fn percent_time mean_cycles_per_call mean_ns_per_call
inetstack::poll_bg_work::for::receive 67.51 9837.03 4433.42
demikernel::new 60.56 1809959469.92 815345397.45
inetstack::poll_recv 34.18 479.19 215.40
tcp::established::background::retransmitter 33.29 1403.31 632.18
tcp::established::background::sender 23.27 854.21 384.29
tcp::established::background::receiver 20.17 618.12 277.98
tcp::established::background::acknowledger 11.29 423.02 190.33
udp::receive 10.67 433.98 187.39
inetstack::poll_bg_work::for::for 8.52 656.04 294.60
Inetstack::TCP::established::background 4.08 3587.28 1615.19
NetworkLibOS::pop 0.73 997.05 448.37
NetworkLibOS::push 0.51 2087.32 945.87
inetstack::poll 0.29 43397.38 19554.10
NetworkLibOS::pushto 0.16 1547.78 674.36
demikernel::push 0.16 647.08 293.62
demikernel::sgaalloc 0.13 288.00 127.90
demikernel::pop 0.09 395.19 178.16
demikernel::pushto 0.06 599.00 260.98
demikernel::sgafree 0.02 64.54 29.07
NetworkLibOS::connect 0.01 20512.71 9239.91
NetworkLibOS::close 0.01 8435.54 3800.12
Inetstack::TCP::passiveopen::background 0.00 22381.54 10200.80
demikernel::bind 0.00 11297.52 5092.21
passive_listening::poll 0.00 7737.09 3521.21
demikernel::listen 0.00 4711.33 2151.64
demikernel::socket 0.00 3565.72 1562.43
Inetstack::ICMP::background 0.00 3383.28 1529.39
NetworkLibOS::accept 0.00 3190.47 1452.60
demikernel::connect 0.00 3068.50 1388.36
Inetstack::arp::background 0.00 2222.00 1005.01
demikernel::accept 0.00 1740.28 793.40
demikernel::close 0.00 nan nan

@anandbonde anandbonde force-pushed the ab-rdtscp-timer-res-adjustment branch from b63c095 to bac702e Compare June 11, 2024 22:17
Copy link

libos = catpowder
commit id = bac702e

fn percent_time mean_cycles_per_call mean_ns_per_call
inetstack::poll_bg_work::for::receive 77.96 4416.11 1985.80
inetstack::poll_recv 59.02 1173.93 538.87
demikernel::new 38.84 84056082.35 37482082.15
tcp::established::background::receiver 36.14 2761.87 1188.73
udp::receive 24.56 382.19 190.81
tcp::established::background::retransmitter 20.41 1222.72 534.37
tcp::established::background::sender 17.33 1067.76 466.07
tcp::established::background::acknowledger 7.65 491.08 213.69
NetworkLibOS::pushto 5.05 5832.66 3002.92
inetstack::poll_bg_work::for::for 4.07 229.14 103.93
NetworkLibOS::push 1.83 8873.82 4300.05
Inetstack::TCP::established::background 0.59 5783.58 2510.88
demikernel::pushto 0.46 536.02 276.43
demikernel::push 0.14 584.93 271.52
inetstack::poll 0.10 9985.13 4484.34
NetworkLibOS::pop 0.09 1136.60 501.63
demikernel::sgaalloc 0.09 212.37 97.03
NetworkLibOS::connect 0.06 35379.60 15350.84
demikernel::pop 0.04 1058.57 465.92
NetworkLibOS::close 0.02 13288.07 5881.79
demikernel::sgafree 0.02 124.32 54.99
demikernel::connect 0.01 9791.00 4266.47
Inetstack::TCP::passiveopen::background 0.00 26511.60 12156.07
demikernel::bind 0.00 11138.77 5195.89
passive_listening::poll 0.00 9635.83 4436.74
demikernel::listen 0.00 4835.80 2206.81
NetworkLibOS::accept 0.00 4280.13 2001.27
Inetstack::arp::background 0.00 3394.05 1593.13
Inetstack::ICMP::background 0.00 2835.04 1271.31
demikernel::async_close 0.00 2145.83 922.35
demikernel::accept 0.00 2131.40 969.52
demikernel::socket 0.00 2113.57 937.27
demikernel::close 0.00 nan nan

Copy link

libos = catnip
commit id = bac702e

fn percent_time mean_cycles_per_call mean_ns_per_call
inetstack::poll_bg_work::for::receive 67.34 9963.72 4525.57
demikernel::new 60.42 1811562403.56 822446001.14
inetstack::poll_recv 34.33 478.75 217.04
tcp::established::background::retransmitter 33.30 1401.31 643.25
tcp::established::background::sender 23.21 851.60 389.67
tcp::established::background::receiver 20.17 617.20 281.57
udp::receive 16.32 355.77 157.26
tcp::established::background::acknowledger 11.35 423.47 193.80
inetstack::poll_bg_work::for::for 8.55 660.54 300.56
Inetstack::TCP::established::background 4.07 3580.80 1639.15
NetworkLibOS::pop 0.74 997.73 457.22
NetworkLibOS::push 0.51 2079.36 950.47
inetstack::poll 0.46 43970.00 19972.38
demikernel::push 0.16 638.14 292.28
demikernel::sgaalloc 0.13 279.06 127.09
demikernel::pop 0.09 394.07 179.26
NetworkLibOS::pushto 0.08 1170.39 503.31
demikernel::pushto 0.03 410.29 176.46
demikernel::sgafree 0.02 63.93 29.05
NetworkLibOS::connect 0.01 21584.06 9700.80
NetworkLibOS::close 0.01 8270.56 3748.04
Inetstack::TCP::passiveopen::background 0.00 22576.61 10290.25
demikernel::bind 0.00 10953.81 4999.65
passive_listening::poll 0.00 7422.56 3394.26
demikernel::listen 0.00 5724.44 2645.22
demikernel::connect 0.00 5515.98 2495.35
NetworkLibOS::accept 0.00 3178.80 1451.81
Inetstack::ICMP::background 0.00 3102.62 1411.92
Inetstack::arp::background 0.00 2311.28 1056.82
demikernel::accept 0.00 1799.16 824.06
demikernel::socket 0.00 1602.32 723.68
demikernel::close 0.00 nan nan

Copy link

libos = catnip
commit id = 26c274b

fn percent_time mean_cycles_per_call mean_ns_per_call
inetstack::poll_bg_work::for::receive 67.39 9790.74 4430.73
demikernel::new 60.11 1801020861.23 814694123.63
inetstack::poll_recv 34.59 478.80 216.89
tcp::established::background::retransmitter 33.40 1396.22 639.71
tcp::established::background::sender 23.03 844.24 386.05
tcp::established::background::receiver 20.56 632.57 288.00
tcp::established::background::acknowledger 11.17 418.74 191.43
inetstack::poll_bg_work::for::for 8.22 608.45 275.16
udp::receive 7.67 468.33 204.65
Inetstack::TCP::established::background 4.10 3579.97 1636.06
NetworkLibOS::pop 0.73 1017.18 464.45
NetworkLibOS::push 0.51 2111.39 960.37
NetworkLibOS::pushto 0.43 1113.71 489.16
inetstack::poll 0.29 43125.49 19515.03
demikernel::pushto 0.17 423.99 186.50
demikernel::push 0.16 653.37 297.24
demikernel::sgaalloc 0.13 275.95 124.37
demikernel::pop 0.09 430.56 194.78
demikernel::sgafree 0.02 64.73 29.31
NetworkLibOS::connect 0.01 20064.80 9092.19
NetworkLibOS::close 0.01 8555.79 3868.13
Inetstack::TCP::passiveopen::background 0.00 22293.51 10011.73
demikernel::bind 0.00 10152.19 4573.80
passive_listening::poll 0.00 7606.06 3422.80
demikernel::listen 0.00 5335.11 2423.27
demikernel::connect 0.00 5297.17 2410.87
Inetstack::ICMP::background 0.00 3126.31 1415.78
NetworkLibOS::accept 0.00 3063.49 1379.98
demikernel::accept 0.00 2317.42 1038.83
Inetstack::arp::background 0.00 2239.67 1014.86
demikernel::socket 0.00 1522.58 686.36
demikernel::close 0.00 nan nan

@anandbonde anandbonde force-pushed the ab-rdtscp-timer-res-adjustment branch from 26c274b to 7d83831 Compare June 12, 2024 01:07
Copy link

libos = catpowder
commit id = 7d83831

fn percent_time mean_cycles_per_call mean_ns_per_call
inetstack::poll_bg_work::for::receive 78.34 4790.16 2085.57
inetstack::poll_recv 57.81 1103.00 479.44
demikernel::new 39.87 91094344.09 39645513.38
tcp::established::background::receiver 35.58 3048.13 1313.59
tcp::established::background::sender 21.33 1304.29 562.72
tcp::established::background::retransmitter 18.36 1229.63 530.73
udp::receive 16.14 341.55 146.73
NetworkLibOS::pushto 7.99 4981.50 2147.50
tcp::established::background::acknowledger 7.22 477.05 205.45
inetstack::poll_bg_work::for::for 3.98 237.97 103.57
NetworkLibOS::push 1.46 6228.72 2748.17
demikernel::pushto 0.71 440.91 190.05
Inetstack::TCP::established::background 0.65 6291.17 2714.22
NetworkLibOS::pop 0.13 1258.51 547.09
demikernel::push 0.12 515.78 227.04
inetstack::poll 0.09 10892.35 4744.36
demikernel::sgaalloc 0.09 189.21 83.51
NetworkLibOS::connect 0.06 38428.70 16777.12
demikernel::pop 0.04 936.40 406.43
NetworkLibOS::close 0.02 12321.15 5360.31
demikernel::sgafree 0.02 90.33 39.27
demikernel::connect 0.01 12666.60 5525.49
Inetstack::TCP::passiveopen::background 0.00 25408.30 11019.63
demikernel::bind 0.00 10737.69 4672.71
passive_listening::poll 0.00 8906.97 3868.30
demikernel::listen 0.00 4863.20 2113.43
NetworkLibOS::accept 0.00 3979.25 1727.93
Inetstack::ICMP::background 0.00 3206.12 1394.51
Inetstack::arp::background 0.00 3111.92 1351.56
demikernel::socket 0.00 2983.91 1296.98
demikernel::accept 0.00 2314.00 1001.61
demikernel::async_close 0.00 2309.58 989.81
demikernel::close 0.00 nan nan

Copy link

libos = catnip
commit id = 7d83831

fn percent_time mean_cycles_per_call mean_ns_per_call
inetstack::poll_bg_work::for::receive 67.03 10442.90 4720.15
demikernel::new 60.25 1807535860.23 817618651.15
inetstack::poll_recv 34.50 481.26 217.46
tcp::established::background::retransmitter 33.43 1395.95 629.17
tcp::established::background::sender 23.18 847.51 382.39
tcp::established::background::receiver 20.23 616.93 278.67
tcp::established::background::acknowledger 11.26 420.57 189.74
inetstack::poll_bg_work::for::for 8.13 586.12 264.73
udp::receive 7.78 371.63 159.99
Inetstack::TCP::established::background 4.04 3566.32 1609.52
NetworkLibOS::pop 0.75 999.99 450.62
NetworkLibOS::push 0.51 2066.67 939.76
inetstack::poll 0.32 48043.08 21718.20
NetworkLibOS::pushto 0.25 1137.41 489.09
demikernel::push 0.16 634.93 287.63
demikernel::sgaalloc 0.12 257.67 116.37
demikernel::pushto 0.10 435.21 187.21
demikernel::pop 0.09 549.71 246.47
demikernel::sgafree 0.02 63.69 28.84
NetworkLibOS::connect 0.01 20639.27 9236.30
NetworkLibOS::close 0.01 8324.07 3754.25
Inetstack::TCP::passiveopen::background 0.00 23591.35 11035.02
demikernel::bind 0.00 11334.86 5167.77
passive_listening::poll 0.00 7672.60 3559.04
demikernel::listen 0.00 5235.67 2395.12
demikernel::connect 0.00 4856.66 2181.09
NetworkLibOS::accept 0.00 3178.07 1493.73
Inetstack::ICMP::background 0.00 3006.92 1356.43
Inetstack::arp::background 0.00 2329.51 1056.69
demikernel::accept 0.00 1689.49 783.64
demikernel::socket 0.00 1576.88 713.36
demikernel::close 0.00 nan nan

@anandbonde anandbonde force-pushed the ab-rdtscp-timer-res-adjustment branch from 7d83831 to 471bc06 Compare June 12, 2024 02:24
Copy link

libos = catnip
commit id = 471bc06

fn percent_time mean_cycles_per_call mean_ns_per_call
inetstack::poll_bg_work::for::receive 67.23 9959.66 4526.68
demikernel::new 60.21 1808499673.59 822393014.48
inetstack::poll_recv 34.56 482.29 219.40
tcp::established::background::retransmitter 33.50 1420.60 647.14
tcp::established::background::sender 23.16 858.04 390.70
tcp::established::background::receiver 20.23 619.57 282.25
udp::receive 17.39 400.77 175.04
tcp::established::background::acknowledger 11.25 425.82 193.83
inetstack::poll_bg_work::for::for 8.49 650.34 295.73
Inetstack::TCP::established::background 4.04 3610.26 1644.28
NetworkLibOS::pop 0.74 1000.49 455.09
NetworkLibOS::push 0.51 2081.23 950.87
inetstack::poll 0.38 44078.72 20034.84
demikernel::push 0.16 653.04 297.55
demikernel::sgaalloc 0.13 273.69 126.06
demikernel::pop 0.09 401.98 182.65
NetworkLibOS::pushto 0.08 1164.20 529.34
demikernel::pushto 0.03 408.67 185.76
demikernel::sgafree 0.02 63.78 29.02
NetworkLibOS::connect 0.01 20720.86 9525.62
NetworkLibOS::close 0.01 8357.46 3823.41
Inetstack::TCP::passiveopen::background 0.00 20515.58 9279.03
demikernel::bind 0.00 13939.33 6311.54
passive_listening::poll 0.00 7640.42 3454.69
demikernel::listen 0.00 5360.78 2421.14
demikernel::connect 0.00 5029.76 2294.41
NetworkLibOS::accept 0.00 3201.08 1451.30
Inetstack::ICMP::background 0.00 3077.08 1397.70
Inetstack::arp::background 0.00 2410.03 1094.22
demikernel::accept 0.00 1756.50 793.97
demikernel::socket 0.00 1566.68 714.39
demikernel::close 0.00 nan nan

Copy link

libos = catpowder
commit id = c3df16b

fn percent_time mean_cycles_per_call mean_ns_per_call
inetstack::poll_bg_work::for::receive 77.37 4020.56 1791.00
inetstack::poll_recv 57.16 1144.36 506.97
demikernel::new 41.06 91073552.22 40213324.04
tcp::established::background::receiver 36.51 2906.33 1247.95
udp::receive 22.41 342.66 150.05
tcp::established::background::retransmitter 19.28 1234.88 531.85
tcp::established::background::sender 18.52 1317.53 565.82
tcp::established::background::acknowledger 7.85 467.44 202.46
inetstack::poll_bg_work::for::for 4.26 229.15 101.73
NetworkLibOS::pushto 3.45 5432.81 2419.40
NetworkLibOS::push 1.49 6934.66 3182.34
Inetstack::TCP::established::background 0.55 6063.88 2613.36
demikernel::pushto 0.29 457.18 203.60
inetstack::poll 0.16 9148.78 4075.52
demikernel::push 0.12 557.64 256.02
NetworkLibOS::pop 0.09 1167.79 508.16
demikernel::sgaalloc 0.07 196.71 88.13
NetworkLibOS::connect 0.06 35812.40 16017.78
demikernel::pop 0.04 955.25 416.12
NetworkLibOS::close 0.02 12283.94 5495.55
demikernel::connect 0.01 10132.60 4450.62
demikernel::sgafree 0.01 85.07 37.78
Inetstack::TCP::passiveopen::background 0.00 23245.60 10237.77
demikernel::bind 0.00 9839.38 4318.70
passive_listening::poll 0.00 8567.57 3774.02
demikernel::listen 0.00 4527.20 1997.08
NetworkLibOS::accept 0.00 4285.48 1888.19
Inetstack::arp::background 0.00 3106.41 1371.81
Inetstack::ICMP::background 0.00 2893.10 1278.89
demikernel::socket 0.00 2853.83 1258.84
demikernel::async_close 0.00 2496.67 1060.37
demikernel::accept 0.00 2317.50 1020.11
demikernel::close 0.00 nan nan

Copy link

libos = catnip
commit id = c3df16b

fn percent_time mean_cycles_per_call mean_ns_per_call
inetstack::poll_bg_work::for::receive 67.21 10010.29 4465.83
demikernel::new 60.14 1803342018.59 804503448.81
inetstack::poll_recv 34.63 475.24 212.38
tcp::established::background::retransmitter 33.49 1419.34 638.42
tcp::established::background::sender 23.18 861.69 386.91
tcp::established::background::receiver 20.27 624.91 280.00
tcp::established::background::acknowledger 11.22 425.99 191.36
inetstack::poll_bg_work::for::for 8.34 646.24 288.17
udp::receive 5.32 369.30 153.77
Inetstack::TCP::established::background 4.04 3620.72 1626.00
NetworkLibOS::pop 0.74 1010.04 453.15
NetworkLibOS::push 0.51 2093.28 937.48
inetstack::poll 0.36 44237.74 19735.53
NetworkLibOS::pushto 0.19 1149.98 502.92
demikernel::push 0.16 652.76 293.04
demikernel::sgaalloc 0.13 278.20 124.07
demikernel::pop 0.09 417.26 185.40
demikernel::pushto 0.08 428.75 187.67
demikernel::sgafree 0.02 64.40 28.75
NetworkLibOS::connect 0.01 21627.02 9740.97
NetworkLibOS::close 0.01 8384.06 3747.77
Inetstack::TCP::passiveopen::background 0.00 22222.95 9811.98
demikernel::bind 0.00 14550.67 6470.62
passive_listening::poll 0.00 7282.08 3228.14
demikernel::connect 0.00 5192.27 2332.19
demikernel::listen 0.00 5021.44 2237.27
NetworkLibOS::accept 0.00 3110.39 1377.59
Inetstack::ICMP::background 0.00 3021.95 1347.56
Inetstack::arp::background 0.00 2508.26 1116.54
demikernel::accept 0.00 2112.21 933.00
demikernel::socket 0.00 1952.01 871.13
demikernel::close 0.00 nan nan

Copy link

libos = catpowder
commit id = 3d6bb8b

fn percent_time mean_cycles_per_call mean_ns_per_call
inetstack::poll_bg_work::for::receive 77.95 4443.50 1980.72
inetstack::poll_recv 56.80 1130.48 503.48
demikernel::new 40.90 97317954.52 43460777.26
tcp::established::background::receiver 37.04 3101.14 1356.52
udp::receive 26.84 643.42 284.23
tcp::established::background::retransmitter 19.18 1212.56 532.46
tcp::established::background::sender 18.25 1180.14 518.88
NetworkLibOS::pushto 10.65 5038.81 2205.95
tcp::established::background::acknowledger 7.70 481.58 211.67
inetstack::poll_bg_work::for::for 3.94 224.03 99.32
NetworkLibOS::push 1.28 6503.97 2977.18
demikernel::pushto 0.93 432.25 189.33
Inetstack::TCP::established::background 0.51 6269.75 2751.78
demikernel::push 0.11 518.20 236.87
inetstack::poll 0.10 10109.22 4505.05
demikernel::sgaalloc 0.09 196.30 88.33
NetworkLibOS::pop 0.08 1159.87 513.72
NetworkLibOS::connect 0.06 36277.50 16172.37
demikernel::pop 0.04 909.32 403.50
NetworkLibOS::close 0.02 12967.54 5753.50
demikernel::sgafree 0.02 98.24 43.67
demikernel::connect 0.01 7921.80 3562.80
Inetstack::TCP::passiveopen::background 0.00 23425.60 10478.45
demikernel::bind 0.00 11587.08 5144.73
passive_listening::poll 0.00 9166.43 4104.30
demikernel::listen 0.00 4985.00 2236.71
NetworkLibOS::accept 0.00 4026.15 1799.23
Inetstack::arp::background 0.00 3134.43 1408.56
demikernel::socket 0.00 3017.91 1375.54
Inetstack::ICMP::background 0.00 2955.36 1314.55
demikernel::accept 0.00 2448.90 1092.87
demikernel::async_close 0.00 2099.17 910.08
demikernel::close 0.00 nan nan

Copy link

libos = catnip
commit id = 3d6bb8b

fn percent_time mean_cycles_per_call mean_ns_per_call
inetstack::poll_bg_work::for::receive 67.37 9855.44 4533.13
demikernel::new 60.39 1811763899.54 833225643.63
inetstack::poll_recv 34.32 476.34 219.23
tcp::established::background::retransmitter 33.47 1410.22 662.80
tcp::established::background::sender 23.06 852.42 398.81
tcp::established::background::receiver 20.38 624.07 290.29
tcp::established::background::acknowledger 11.22 423.23 198.10
inetstack::poll_bg_work::for::for 8.39 619.43 285.85
udp::receive 8.07 370.50 167.16
Inetstack::TCP::established::background 4.08 3596.23 1682.11
NetworkLibOS::pop 0.75 1008.73 471.66
NetworkLibOS::push 0.51 2081.55 961.95
inetstack::poll 0.33 43477.38 20005.26
NetworkLibOS::pushto 0.24 1150.40 525.04
demikernel::push 0.16 651.89 302.79
demikernel::sgaalloc 0.13 280.61 129.52
demikernel::pushto 0.10 430.25 197.02
demikernel::pop 0.09 401.55 184.58
demikernel::sgafree 0.02 63.60 29.25
NetworkLibOS::connect 0.01 20533.40 9372.38
NetworkLibOS::close 0.01 8609.63 3929.30
Inetstack::TCP::passiveopen::background 0.00 22223.94 10024.42
demikernel::bind 0.00 11155.14 5135.33
passive_listening::poll 0.00 7718.00 3524.62
demikernel::listen 0.00 5258.67 2423.13
demikernel::connect 0.00 4763.66 2170.31
NetworkLibOS::accept 0.00 3185.77 1454.07
Inetstack::ICMP::background 0.00 3140.46 1445.64
Inetstack::arp::background 0.00 2212.10 1018.80
demikernel::accept 0.00 2017.85 910.14
demikernel::socket 0.00 1561.41 714.87
demikernel::close 0.00 nan nan

Copy link

libos = catnap
commit id = 3d6bb8b

fn percent_time mean_cycles_per_call mean_ns_per_call
catnap::transport::epoll 94.83 2354.47 1063.95
NetworkLibOS::pushto 6.47 455.89 200.25
demikernel::pushto 3.07 431.60 189.53
NetworkLibOS::connect 1.51 43343.23 19339.62
demikernel::new 1.25 1620322.18 727471.71
NetworkLibOS::push 1.14 776.74 348.65
NetworkLibOS::pop 0.64 735.93 331.54
demikernel::push 0.63 631.02 282.17
demikernel::sgaalloc 0.55 228.76 102.91
demikernel::pop 0.45 741.94 333.86
demikernel::socket 0.27 62623.75 28193.16
NetworkLibOS::close 0.19 22807.31 10244.29
demikernel::sgafree 0.09 75.89 34.38
demikernel::async_close 0.05 1085.25 467.42
demikernel::connect 0.03 2336.61 1046.46
demikernel::bind 0.02 36311.72 16387.18
demikernel::listen 0.00 14898.55 6735.82
NetworkLibOS::accept 0.00 7456.08 3353.35
demikernel::accept 0.00 1496.68 675.08
demikernel::close 0.00 nan nan

@anandbonde anandbonde force-pushed the ab-rdtscp-timer-res-adjustment branch from 3d6bb8b to 1afa58a Compare June 12, 2024 05:15
Copy link

libos = catpowder
commit id = 1afa58a

fn percent_time mean_cycles_per_call mean_ns_per_call
inetstack::poll_bg_work::for::receive 77.38 3977.52 1775.45
inetstack::poll_recv 58.27 1139.58 508.88
demikernel::new 39.11 81816704.39 36665569.57
tcp::established::background::receiver 37.68 2970.57 1309.23
tcp::established::background::retransmitter 18.76 1098.80 503.91
tcp::established::background::sender 18.22 1220.03 557.44
udp::receive 15.35 352.89 150.61
NetworkLibOS::pushto 10.56 6300.28 2733.46
tcp::established::background::acknowledger 7.56 435.30 195.10
inetstack::poll_bg_work::for::for 4.90 288.10 128.23
NetworkLibOS::push 1.64 7064.36 3136.27
demikernel::pushto 0.98 587.81 255.14
Inetstack::TCP::established::background 0.63 5898.02 2639.80
demikernel::push 0.13 549.14 244.11
demikernel::sgaalloc 0.11 198.86 92.59
NetworkLibOS::pop 0.09 1176.44 510.00
inetstack::poll 0.08 9040.00 4036.17
NetworkLibOS::connect 0.06 35868.90 16545.78
demikernel::pop 0.05 870.61 377.84
NetworkLibOS::close 0.02 12573.62 5687.43
demikernel::sgafree 0.02 95.67 41.92
demikernel::connect 0.01 7502.00 3370.66
Inetstack::TCP::passiveopen::background 0.00 23482.20 10328.95
demikernel::bind 0.00 9602.15 4204.34
passive_listening::poll 0.00 7863.85 3460.72
demikernel::listen 0.00 6013.80 2666.84
NetworkLibOS::accept 0.00 3760.13 1655.61
Inetstack::arp::background 0.00 3388.28 1501.51
demikernel::accept 0.00 3283.80 1446.22
Inetstack::ICMP::background 0.00 3004.17 1353.96
demikernel::socket 0.00 2251.13 1001.56
demikernel::async_close 0.00 2125.58 966.34
demikernel::close 0.00 nan nan

Copy link

libos = catnip
commit id = 1afa58a

fn percent_time mean_cycles_per_call mean_ns_per_call
inetstack::poll_bg_work::for::receive 67.34 9776.88 4462.63
demikernel::new 60.33 1809411288.41 826780259.45
inetstack::poll_recv 34.42 475.58 217.32
tcp::established::background::retransmitter 33.46 1419.20 643.37
tcp::established::background::sender 23.20 859.74 390.26
tcp::established::background::receiver 20.13 618.63 281.18
udp::receive 14.84 350.44 152.72
tcp::established::background::acknowledger 11.41 429.03 194.70
inetstack::poll_bg_work::for::for 8.36 617.05 282.90
Inetstack::TCP::established::background 4.06 3610.90 1639.46
NetworkLibOS::pop 0.75 1012.84 459.43
NetworkLibOS::push 0.51 2073.04 950.49
inetstack::poll 0.43 43085.23 19673.28
demikernel::push 0.16 645.49 299.34
demikernel::sgaalloc 0.13 273.33 128.82
NetworkLibOS::pushto 0.09 1159.43 529.34
demikernel::pop 0.09 394.77 180.31
demikernel::pushto 0.03 405.37 184.95
demikernel::sgafree 0.02 63.78 29.19
NetworkLibOS::connect 0.01 21320.37 9945.21
NetworkLibOS::close 0.01 8324.63 3836.81
Inetstack::TCP::passiveopen::background 0.00 22427.63 10238.41
demikernel::bind 0.00 12981.52 5884.92
passive_listening::poll 0.00 7391.68 3363.10
demikernel::connect 0.00 5431.50 2613.58
demikernel::listen 0.00 4197.22 1904.53
Inetstack::ICMP::background 0.00 3039.74 1392.40
NetworkLibOS::accept 0.00 3013.50 1368.30
Inetstack::arp::background 0.00 2440.13 1111.57
demikernel::accept 0.00 2026.47 925.88
demikernel::socket 0.00 1819.81 826.15
demikernel::close 0.00 nan nan

Copy link

libos = catnap
commit id = 1afa58a

fn percent_time mean_cycles_per_call mean_ns_per_call
catnap::transport::epoll 94.53 2447.05 1088.40
NetworkLibOS::pushto 7.13 466.36 204.48
demikernel::pushto 3.44 447.01 195.91
NetworkLibOS::connect 1.82 42938.90 19346.94
demikernel::new 1.37 1634235.47 726908.83
NetworkLibOS::push 1.12 764.01 341.89
NetworkLibOS::pop 0.64 736.93 327.04
demikernel::push 0.59 599.16 266.90
demikernel::sgaalloc 0.58 236.70 105.03
demikernel::pop 0.46 735.63 325.77
demikernel::socket 0.32 62349.52 27767.99
NetworkLibOS::close 0.23 24433.31 10871.90
demikernel::sgafree 0.10 73.06 32.39
demikernel::async_close 0.05 1017.08 437.75
demikernel::connect 0.04 2326.91 1058.90
demikernel::bind 0.01 36474.58 16199.55
demikernel::listen 0.00 14751.66 6554.84
NetworkLibOS::accept 0.00 7476.72 3319.53
demikernel::accept 0.00 1501.71 665.13
demikernel::close 0.00 nan nan

@anandbonde anandbonde force-pushed the ab-rdtscp-timer-res-adjustment branch from 1afa58a to 582652e Compare July 14, 2024 03:20
Copy link

libos = catnap
commit id = 582652e

collapsed_stack percent_time cycles_per_call nanoseconds_per_call
main 100.00 3377894284.48 1508259972.62
demikernel::socket;catnap::linux::transport::socket 97.34 55466.64 24446.67
ioc::network::libos::close;catnap::linux::transport::close 95.57 21968.62 9705.86
demikernel::listen;catnap::linux::transport::listen 91.65 12938.21 5716.07
demikernel::bind;catnap::linux::transport::bind 80.99 24631.87 10889.11
ioc::network::libos::accept 43.19 901646713.55 394487173.55
ioc::network::libos::pushto 35.20 10143.06 4705.60
bgc::catnap::transport::epoll 34.01 2410.50 1065.26
ioc::network::libos::connect 24.91 5820190.55 2507774.49
ioc::network::libos::pop 24.22 1472765.07 640194.24
ioc::network::libos::push 7.36 17518.38 7781.97
ioc::network::libos::pushto;catnap::linux::transport::push 6.32 622.12 286.83
ioc::network::libos::push;catnap::linux::transport::push 5.27 879.41 388.66
ioc::network::libos::pop;catnap::linux::transport::pop 2.54 547.80 242.75
ioc::network::libos::connect;catnap::linux::transport::connect 1.86 52736.95 23287.15
demikernel::pushto 1.67 439.40 201.86
demikernel::new 0.59 1608780.39 710664.58
demikernel::push 0.25 605.66 268.50
demikernel::sgaalloc 0.20 198.81 87.96
demikernel::pop 0.16 726.35 320.69
demikernel::socket 0.10 57042.71 25139.51
ioc::network::libos::close 0.07 23062.60 10187.68
demikernel::sgafree 0.04 77.32 34.23
demikernel::bind 0.01 30381.85 13431.85
demikernel::connect 0.01 2116.71 932.19
demikernel::async_close 0.01 791.49 346.19
demikernel::listen 0.00 14169.34 6254.48
ioc::network::libos::accept;catnap::linux::transport::accept 0.00 2689.39 1183.33
demikernel::accept 0.00 1571.22 693.08
demikernel::close 0.00 nan nan

@anandbonde anandbonde marked this pull request as draft September 17, 2024 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[runtime] More accurate timeouts with rdtsc
1 participant