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] Enhancement: Add some reasonable defaults #1456

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

iyzhang
Copy link
Contributor

@iyzhang iyzhang commented Nov 10, 2024

This PR removes some defaults and adds others:

  1. It removes the default timeout values for asynchronous queues and values. This reduces the number of timers that we need to set and then cancel. If None is passed in, now we wait forever instead of for 1000 seconds.
  2. It adds a default size for the AsyncQueue and condition variable vecdeque because increasing the size of these for the first few elements is very expensive and hurts tail latency.

@iyzhang iyzhang requested a review from anandbonde November 10, 2024 23:38
@iyzhang iyzhang self-assigned this Nov 10, 2024
Copy link

libos = catpowder
commit id = 37ed1d6

collapsed_stack num_calls cycles_per_call nanoseconds_per_call percent_time
bgc::inetstack::poll_recv;inetstack::layer4_endpoint::poll_once 19330435.83 707.65 314.95 86.10
bgc::inetstack::poll_recv 9665217.92 1647.42 733.74 53.22
bgc::inetstack::tcp::established::background 22867.21 2851.42 1259.07 0.72
bgc::inetstack::tcp::established::background;tcp::established::background::acknowledger 22867.21 299.75 131.69 8.22
bgc::inetstack::tcp::established::background;tcp::established::background::receiver 22858.66 701.22 308.60 22.20
bgc::inetstack::tcp::established::background;tcp::established::background::retransmitter 22829.73 277.05 122.13 8.93
bgc::inetstack::tcp::established::background;tcp::established::background::sender 22787.66 1748.71 776.26 46.63
ioc::network::libos::pop 9248.69 522.17 225.66 0.04
ioc::network::libos::push;inetstack::push 8762.80 561.37 248.58 0.18
demikernel::sgafree 8749.02 105.16 46.09 0.01
ioc::network::libos::push 8073.74 33529732.58 16044517.76 41.03
demikernel::push 8073.74 598.12 266.59 0.05
demikernel::sgaalloc 6504.67 152.56 69.96 0.02
demikernel::pop 6034.75 679.92 292.85 0.04
bgc::inetstack::poll_recv;inetstack::poll_bg_work::for::for 5685.61 660.34 291.31 0.95
ioc::network::libos::pushto 687.33 4522.87 1944.16 3.60
ioc::network::libos::pushto;inetstack::push 687.33 4084.79 1755.69 90.32
demikernel::pushto 687.33 525.60 225.96 0.42
bgc::inetstack::poll_recv;inetstack::poll_bg_work::for::for;udp::receive 190.33 221.01 96.45 61.38
ioc::network::libos::close 47.75 6073.04 2740.34 0.09
bgc::passive_listening::poll 43.43 42361.29 17763.52 0.04
ioc::network::libos::connect 41.86 71052.70 32416.38 1.21
bgc::inetstack::tcp::passiveopen::background 41.86 31111.19 13159.61 0.02
ioc::network::libos::accept 37.79 4244.02 1796.94 0.00
demikernel::async_close 32.50 784.86 356.10 0.01
demikernel::accept 21.86 1503.69 643.59 0.00
demikernel::connect 20.93 4141.42 1883.67 0.02
demikernel::socket 10.30 4900.98 2453.91 0.02
bgc::inetstack::arp::background 6.38 2017.81 877.04 0.00
bgc::inetstack::poll_recv;inetstack::poll;inetstack::layer4_endpoint::poll_once 2.00 5597.35 2464.10 81.58
bgc::inetstack::icmp::background 1.03 3205.33 1411.30 0.00
demikernel::new 1.00 92985588.37 40939538.85 19.07
demikernel::bind 1.00 25474.94 10821.90 0.00
bgc::inetstack::poll_recv;inetstack::poll 1.00 13634.33 6002.50 0.05
demikernel::listen 1.00 10770.07 4570.57 0.00
demikernel::close 0.00 nan nan 0.00

Copy link

libos = catnap
commit id = 37ed1d6

collapsed_stack num_calls cycles_per_call nanoseconds_per_call percent_time
bgc::catnap::transport::epoll 13203261.48 1974.53 865.27 31.68
demikernel::sgafree 11544.06 71.84 32.01 0.04
demikernel::sgaalloc 11303.15 127.12 56.64 0.09
ioc::network::libos::push;catnap::linux::transport::push 9066.10 593.44 259.66 3.82
ioc::network::libos::push 8800.48 16268.77 7134.37 5.63
demikernel::push 8800.48 553.40 242.87 0.13
ioc::network::libos::pop;catnap::linux::transport::pop 8025.57 366.77 162.08 0.67
ioc::network::libos::pop 7817.05 13064622.74 5774867.50 28.25
demikernel::pop 7817.05 575.55 255.29 0.10
ioc::network::libos::pushto 919.00 8255.03 3535.47 24.04
demikernel::pushto 919.00 449.53 192.10 1.39
ioc::network::libos::pushto;catnap::linux::transport::push 919.00 427.79 182.53 5.27
demikernel::async_close 32.50 848.14 355.74 0.01
ioc::network::libos::connect 24.95 4406658.87 1930272.87 24.63
ioc::network::libos::connect;catnap::linux::transport::connect 24.95 80988.81 35371.48 2.68
demikernel::connect 24.95 1989.38 874.76 0.01
ioc::network::libos::close 18.35 24793.69 10851.43 0.05
ioc::network::libos::close;catnap::linux::transport::close 18.35 23290.88 10192.03 94.02
demikernel::accept 15.42 1530.80 667.96 0.00
ioc::network::libos::accept 15.41 901955892.76 406467578.12 44.74
ioc::network::libos::accept;catnap::linux::transport::accept 15.39 6051.72 2678.73 0.00
demikernel::socket 9.50 156299.67 68386.86 0.26
demikernel::socket;catnap::linux::transport::socket 9.50 153801.18 67306.51 96.33
demikernel::new 1.00 271724.95 118576.90 0.12
demikernel::bind 1.00 29570.68 12821.38 0.01
demikernel::bind;catnap::linux::transport::bind 1.00 24959.92 10824.28 84.37
demikernel::listen 1.00 16126.97 7012.42 0.00
demikernel::listen;catnap::linux::transport::listen 1.00 15192.05 6606.79 94.10
demikernel::close 0.00 nan nan 0.00

Copy link

libos = catnip
commit id = 37ed1d6

collapsed_stack num_calls cycles_per_call nanoseconds_per_call percent_time
bgc::inetstack::poll_recv;inetstack::layer4_endpoint::poll_once 29325537.53 339.54 144.50 76.18
bgc::inetstack::poll_recv;inetstack::layer4_endpoint::poll_once;catnip::runtime::receive 29325537.53 197.32 83.94 58.28
bgc::inetstack::poll_recv 14662768.77 895.86 381.37 34.32
bgc::inetstack::tcp::established::background 22051.36 1583.82 669.63 0.26
bgc::inetstack::tcp::established::background;tcp::established::background::acknowledger 22051.36 203.02 84.92 11.82
bgc::inetstack::tcp::established::background;tcp::established::background::receiver 22041.04 422.80 174.66 23.66
bgc::inetstack::tcp::established::background;tcp::established::background::retransmitter 22009.68 249.47 105.10 14.00
bgc::inetstack::tcp::established::background;tcp::established::background::sender 21967.70 591.87 249.77 28.71
ioc::network::libos::pop 9096.94 399.46 168.79 0.02
demikernel::sgafree 8922.91 87.52 37.48 0.01
ioc::network::libos::push;inetstack::push 8762.80 540.14 239.05 0.17
ioc::network::libos::push 8073.74 33399163.17 14728318.36 27.17
demikernel::push 8073.74 711.94 311.51 0.04
demikernel::sgaalloc 6742.92 131.53 56.13 0.01
demikernel::pop 6103.08 605.15 256.08 0.02
bgc::inetstack::tcp::established::background;tcp::established::background::sender;catnip::runtime::transmit 5497.68 413.13 173.52 19.89
bgc::inetstack::poll_recv;inetstack::poll_bg_work::for::for 4640.39 695.37 296.17 1.51
ioc::network::libos::pushto 3759.33 1334.34 539.64 0.16
ioc::network::libos::pushto;inetstack::push 3759.33 684.54 276.87 51.44
demikernel::pushto 3759.33 485.96 196.65 0.06
ioc::network::libos::pushto;inetstack::push;catnip::runtime::transmit 3759.33 234.93 94.98 34.26
bgc::inetstack::poll_recv;inetstack::poll_bg_work::for::for;udp::receive 1377.00 237.08 100.56 69.24
ioc::network::libos::close 49.38 5644.83 2399.68 0.01
ioc::network::libos::connect 41.86 66803.67 27868.24 0.13
bgc::inetstack::tcp::passiveopen::background 41.86 35639.68 15203.74 0.02
ioc::network::libos::connect;catnip::runtime::transmit 41.86 6032.12 2642.96 16.57
bgc::passive_listening::poll 40.39 54183.60 23533.56 0.02
ioc::network::libos::accept 38.61 3034.60 1316.28 0.00
demikernel::async_close 32.50 777.89 308.43 0.00
demikernel::accept 21.86 1332.31 588.44 0.00
bgc::inetstack::tcp::established::background;tcp::established::background::receiver;catnip::runtime::transmit 21.04 620.15 264.71 5.03
bgc::inetstack::tcp::passiveopen::background;catnip::runtime::transmit 20.93 14268.07 6434.61 26.05
demikernel::connect 20.93 2831.02 1225.81 0.00
demikernel::socket 10.30 4423.20 1914.54 0.00
bgc::inetstack::arp::background 6.43 2246.43 963.17 0.00
bgc::inetstack::tcp::established::background;tcp::established::background::acknowledger;catnip::runtime::transmit 5.00 1648.44 654.15 17.03
bgc::inetstack::poll_recv;inetstack::poll;inetstack::layer4_endpoint::poll_once 2.00 20088.07 8559.10 95.53
bgc::inetstack::poll_recv;inetstack::poll;inetstack::layer4_endpoint::poll_once;catnip::runtime::receive 2.00 17931.52 7637.97 89.24
bgc::inetstack::icmp::background 1.05 3123.23 1328.55 0.00
demikernel::new 1.00 1768080787.22 752249894.53 48.05
bgc::inetstack::poll_recv;inetstack::poll 1.00 42050.93 17915.78 0.12
demikernel::listen 1.00 10681.14 4610.94 0.00
demikernel::bind 1.00 10269.06 4427.96 0.00
bgc::passive_listening::poll;catnip::runtime::transmit 1.00 1882.00 735.00 0.04
demikernel::close 0.00 nan nan 0.00

Copy link
Contributor

@anandbonde anandbonde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@iyzhang iyzhang force-pushed the enhancement-collections-set-defaults branch from 37ed1d6 to 1a1ccc8 Compare November 13, 2024 21:13
Copy link

libos = catnap
commit id = 1a1ccc8

collapsed_stack num_calls cycles_per_call nanoseconds_per_call percent_time
bgc::catnap::transport::epoll 13360737.47 1736.92 767.13 32.74
demikernel::sgafree 11549.90 77.76 33.91 0.05
demikernel::sgaalloc 11320.28 123.44 54.83 0.10
ioc::network::libos::push;catnap::linux::transport::push 9066.10 710.17 309.74 4.34
ioc::network::libos::push 8800.48 16504.61 7255.09 6.37
demikernel::push 8800.48 540.62 238.45 0.16
ioc::network::libos::pop;catnap::linux::transport::pop 8025.82 376.95 165.32 1.44
ioc::network::libos::pop 7817.30 13092047.21 6105833.86 25.41
demikernel::pop 7817.30 548.89 239.14 0.11
ioc::network::libos::pushto 1146.67 8369.76 3861.04 23.86
demikernel::pushto 1146.67 436.09 200.60 1.49
ioc::network::libos::pushto;catnap::linux::transport::push 1146.67 421.62 193.44 5.34
demikernel::async_close 32.50 1059.72 455.32 0.01
ioc::network::libos::connect 24.95 5985688.71 2646871.97 27.78
ioc::network::libos::connect;catnap::linux::transport::connect 24.95 81328.62 35582.40 2.32
demikernel::connect 24.95 2185.44 950.90 0.01
ioc::network::libos::close 18.35 23994.32 10554.79 0.05
ioc::network::libos::close;catnap::linux::transport::close 18.35 22692.05 9978.76 94.83
demikernel::accept 15.42 1421.09 625.77 0.00
ioc::network::libos::accept 15.39 902348269.69 404752218.33 44.45
ioc::network::libos::accept;catnap::linux::transport::accept 15.39 7359.11 3273.96 0.00
demikernel::socket 9.50 157888.87 69007.21 0.24
demikernel::socket;catnap::linux::transport::socket 9.50 155702.66 68054.56 96.72
demikernel::new 1.00 279501.19 122862.50 0.13
demikernel::bind 1.00 29959.75 13145.64 0.00
demikernel::bind;catnap::linux::transport::bind 1.00 24851.82 10913.55 83.20
demikernel::listen 1.00 15629.00 6816.51 0.00
demikernel::listen;catnap::linux::transport::listen 1.00 14666.16 6398.18 93.74
demikernel::close 0.00 nan nan 0.00

@iyzhang iyzhang force-pushed the enhancement-collections-set-defaults branch from 1a1ccc8 to 94f5af9 Compare November 13, 2024 21:34
Copy link

libos = catpowder
commit id = 1a1ccc8

collapsed_stack num_calls cycles_per_call nanoseconds_per_call percent_time
bgc::inetstack::poll_recv;inetstack::layer4_endpoint::poll_once 19160488.43 701.41 304.45 85.75
bgc::inetstack::poll_recv 9580244.22 1640.79 712.21 53.32
bgc::inetstack::tcp::established::background 17801.12 2141.43 923.10 0.35
bgc::inetstack::tcp::established::background;tcp::established::background::acknowledger 17801.12 324.16 142.40 13.96
bgc::inetstack::tcp::established::background;tcp::established::background::receiver 17792.39 740.84 316.82 31.03
bgc::inetstack::tcp::established::background;tcp::established::background::retransmitter 17763.21 441.68 190.91 18.90
bgc::inetstack::tcp::established::background;tcp::established::background::sender 17721.29 859.94 362.96 13.41
ioc::network::libos::pop 9172.10 416.93 180.95 0.04
ioc::network::libos::push;inetstack::push 8762.74 5917.32 2623.50 2.15
demikernel::sgafree 8752.79 106.53 45.84 0.01
ioc::network::libos::push 8073.71 33445573.59 16206777.93 40.83
demikernel::push 8073.71 579.69 253.11 0.05
demikernel::sgaalloc 6505.58 145.77 63.33 0.02
demikernel::pop 6038.00 594.43 257.91 0.04
bgc::inetstack::poll_recv;inetstack::poll_bg_work::for::for 5879.95 626.46 272.23 0.98
ioc::network::libos::pushto 754.33 4410.90 1924.63 2.66
ioc::network::libos::pushto;inetstack::push 754.33 3980.60 1736.80 90.24
demikernel::pushto 754.33 501.95 218.76 0.29
bgc::inetstack::poll_recv;inetstack::poll_bg_work::for::for;udp::receive 260.67 213.73 90.49 62.48
ioc::network::libos::close 47.87 5929.72 2598.47 0.08
bgc::passive_listening::poll 43.29 45235.41 19293.96 0.04
ioc::network::libos::connect 41.86 68692.65 29868.05 1.08
bgc::inetstack::tcp::passiveopen::background 41.86 27868.05 11975.54 0.02
ioc::network::libos::accept 38.07 4255.58 1823.08 0.00
demikernel::async_close 32.50 738.62 312.36 0.01
demikernel::accept 21.86 1283.50 561.03 0.00
demikernel::connect 20.93 3773.90 1689.58 0.02
demikernel::socket 10.30 5931.94 2558.20 0.00
bgc::inetstack::arp::background 6.38 1749.01 759.47 0.00
bgc::inetstack::poll_recv;inetstack::poll;inetstack::layer4_endpoint::poll_once 2.00 5900.72 2557.86 82.82
bgc::inetstack::icmp::background 1.03 3210.67 1394.01 0.00
demikernel::new 1.00 91699274.93 39720822.57 19.60
demikernel::bind 1.00 27729.06 11947.20 0.00
bgc::inetstack::poll_recv;inetstack::poll 1.00 14165.27 6142.30 0.04
demikernel::listen 1.00 10478.57 4498.71 0.00
demikernel::close 0.00 nan nan 0.00

Copy link

libos = catnip
commit id = 94f5af9

collapsed_stack num_calls cycles_per_call nanoseconds_per_call percent_time
bgc::inetstack::poll_recv;inetstack::layer4_endpoint::poll_once 29063044.57 341.09 146.81 76.61
bgc::inetstack::poll_recv;inetstack::layer4_endpoint::poll_once;catnip::runtime::receive 29063044.57 198.45 85.37 58.32
bgc::inetstack::poll_recv 14531522.28 893.56 384.51 34.77
bgc::inetstack::tcp::established::background 16583.84 1487.59 624.09 0.16
bgc::inetstack::tcp::established::background;tcp::established::background::acknowledger 16583.84 220.71 93.56 15.13
bgc::inetstack::tcp::established::background;tcp::established::background::receiver 16573.52 540.90 222.58 29.74
bgc::inetstack::tcp::established::background;tcp::established::background::retransmitter 16542.27 287.49 122.00 19.30
bgc::inetstack::tcp::established::background;tcp::established::background::sender 16500.07 336.61 136.61 9.80
ioc::network::libos::pop 9048.16 402.27 172.08 0.02
demikernel::sgafree 8781.89 87.20 37.65 0.01
ioc::network::libos::push;inetstack::push 8762.80 2048.72 910.29 0.64
ioc::network::libos::push;inetstack::push;catnip::runtime::transmit 8762.80 349.17 154.31 16.08
ioc::network::libos::push 8073.74 33450064.52 13962280.15 27.40
demikernel::push 8073.74 752.65 326.72 0.04
demikernel::sgaalloc 6539.25 156.60 67.65 0.01
demikernel::pop 6053.10 621.11 263.74 0.02
bgc::inetstack::poll_recv;inetstack::poll_bg_work::for::for 4416.75 726.50 311.90 1.33
ioc::network::libos::pushto 1268.00 1381.36 618.20 0.06
ioc::network::libos::pushto;inetstack::push 1268.00 740.06 331.08 53.56
demikernel::pushto 1268.00 502.53 224.80 0.02
ioc::network::libos::pushto;inetstack::push;catnip::runtime::transmit 1268.00 283.36 126.73 38.03
bgc::inetstack::poll_recv;inetstack::poll_bg_work::for::for;udp::receive 536.00 233.45 107.98 69.82
ioc::network::libos::close 49.45 6283.11 2709.69 0.01
ioc::network::libos::connect 41.86 67756.08 28498.43 0.13
bgc::inetstack::tcp::passiveopen::background 41.86 36130.34 15471.62 0.02
ioc::network::libos::connect;catnip::runtime::transmit 41.86 6487.25 2913.33 17.27
bgc::passive_listening::poll 39.79 63481.61 26954.09 0.02
ioc::network::libos::accept 38.18 2327.68 1023.01 0.00
demikernel::async_close 32.50 852.49 343.04 0.00
bgc::inetstack::tcp::established::background;tcp::established::background::receiver;catnip::runtime::transmit 26.64 648.70 280.76 5.14
demikernel::accept 21.86 1668.77 739.61 0.00
bgc::inetstack::tcp::passiveopen::background;catnip::runtime::transmit 20.93 13773.91 6155.77 24.49
demikernel::connect 20.93 3926.62 1756.13 0.00
bgc::inetstack::tcp::established::background;tcp::established::background::sender;catnip::runtime::transmit 20.93 669.13 287.22 11.24
demikernel::socket 10.30 3654.83 1571.06 0.00
bgc::inetstack::arp::background 6.43 2228.32 959.70 0.00
bgc::inetstack::tcp::established::background;tcp::established::background::acknowledger;catnip::runtime::transmit 5.00 1742.44 709.66 19.72
bgc::inetstack::poll_recv;inetstack::poll;inetstack::layer4_endpoint::poll_once 2.00 20362.05 8768.87 95.51
bgc::inetstack::poll_recv;inetstack::poll;inetstack::layer4_endpoint::poll_once;catnip::runtime::receive 2.00 18149.20 7818.37 89.13
bgc::inetstack::icmp::background 1.05 3130.53 1339.79 0.00
demikernel::new 1.00 1766253431.70 760084328.82 47.56
bgc::inetstack::poll_recv;inetstack::poll 1.00 42627.90 18353.86 0.17
demikernel::bind 1.00 10615.38 4579.68 0.00
demikernel::listen 1.00 10602.36 4521.56 0.00
bgc::passive_listening::poll;catnip::runtime::transmit 1.00 660.00 257.43 0.02
demikernel::close 0.00 nan nan 0.00

@iyzhang iyzhang changed the title [runtime] Enhancement: Add some defaults and inlines for collections [runtime] Enhancement: Add some reasonable defaults Nov 13, 2024
Copy link

libos = catnip
commit id = 94f5af9

collapsed_stack num_calls cycles_per_call nanoseconds_per_call percent_time
bgc::inetstack::poll_recv;inetstack::layer4_endpoint::poll_once 28886178.57 341.03 143.56 76.62
bgc::inetstack::poll_recv;inetstack::layer4_endpoint::poll_once;catnip::runtime::receive 28886178.57 197.82 83.15 58.18
bgc::inetstack::poll_recv 14443089.28 893.98 376.77 34.40
bgc::inetstack::tcp::established::background 16573.55 1419.49 588.75 0.16
bgc::inetstack::tcp::established::background;tcp::established::background::acknowledger 16573.55 234.31 97.60 15.46
bgc::inetstack::tcp::established::background;tcp::established::background::receiver 16563.18 461.69 189.53 29.17
bgc::inetstack::tcp::established::background;tcp::established::background::retransmitter 16531.77 286.06 119.57 19.46
bgc::inetstack::tcp::established::background;tcp::established::background::sender 16489.73 309.67 124.59 9.74
ioc::network::libos::pop 9046.92 396.63 166.46 0.02
demikernel::sgafree 8782.94 88.33 37.20 0.01
ioc::network::libos::push;inetstack::push 8762.80 2143.79 919.36 0.64
ioc::network::libos::push;inetstack::push;catnip::runtime::transmit 8762.80 363.99 155.83 15.97
ioc::network::libos::push 8073.74 33451673.62 13806542.59 27.70
demikernel::push 8073.74 780.90 330.00 0.04
demikernel::sgaalloc 6538.58 180.54 76.76 0.01
demikernel::pop 6054.18 599.95 250.24 0.02
bgc::inetstack::poll_recv;inetstack::poll_bg_work::for::for 4438.07 727.09 304.06 1.40
ioc::network::libos::pushto 1286.67 1318.13 565.68 0.06
ioc::network::libos::pushto;inetstack::push 1286.67 705.18 302.49 53.65
demikernel::pushto 1286.67 497.66 213.39 0.02
ioc::network::libos::pushto;inetstack::push;catnip::runtime::transmit 1286.67 261.27 112.11 36.95
bgc::inetstack::poll_recv;inetstack::poll_bg_work::for::for;udp::receive 565.67 219.59 95.28 68.89
ioc::network::libos::close 49.43 5899.73 2500.76 0.01
ioc::network::libos::connect 41.86 66354.35 28155.31 0.13
bgc::inetstack::tcp::passiveopen::background 41.86 36247.06 14997.73 0.02
ioc::network::libos::connect;catnip::runtime::transmit 41.86 6654.28 2877.40 17.84
bgc::passive_listening::poll 38.68 60937.52 25007.81 0.02
ioc::network::libos::accept 37.46 3257.19 1363.84 0.00
demikernel::async_close 32.50 750.10 298.63 0.00
demikernel::accept 21.86 1543.96 643.42 0.00
bgc::inetstack::tcp::established::background;tcp::established::background::receiver;catnip::runtime::transmit 21.04 656.92 274.32 5.27
bgc::inetstack::tcp::passiveopen::background;catnip::runtime::transmit 20.93 13544.49 5697.46 24.95
demikernel::connect 20.93 3780.28 1605.93 0.00
bgc::inetstack::tcp::established::background;tcp::established::background::sender;catnip::runtime::transmit 20.93 644.70 271.30 10.99
demikernel::socket 10.30 3950.80 1651.44 0.00
bgc::inetstack::tcp::established::background;tcp::established::background::acknowledger;catnip::runtime::transmit 9.00 3660.00 1488.53 35.16
bgc::inetstack::arp::background 6.43 2268.82 948.37 0.00
bgc::inetstack::poll_recv;inetstack::poll;inetstack::layer4_endpoint::poll_once 2.00 20248.95 8505.64 95.55
bgc::inetstack::poll_recv;inetstack::poll;inetstack::layer4_endpoint::poll_once;catnip::runtime::receive 2.00 18095.03 7601.21 89.38
bgc::inetstack::icmp::background 1.05 3044.80 1277.26 0.00
demikernel::new 1.00 1771022819.85 743507287.89 47.74
bgc::inetstack::poll_recv;inetstack::poll 1.00 42374.37 17799.49 0.17
demikernel::bind 1.00 10233.88 4240.95 0.00
demikernel::listen 1.00 10227.29 4225.14 0.00
demikernel::close 0.00 nan nan 0.00

Copy link

libos = catnap
commit id = 94f5af9

collapsed_stack num_calls cycles_per_call nanoseconds_per_call percent_time
bgc::catnap::transport::epoll 13436211.56 1979.98 858.88 32.72
demikernel::sgafree 11613.11 74.78 32.02 0.05
demikernel::sgaalloc 11424.35 128.08 54.69 0.11
ioc::network::libos::push;catnap::linux::transport::push 9066.12 648.19 282.52 3.97
ioc::network::libos::push 8800.49 16954.29 7389.53 6.50
demikernel::push 8800.49 578.71 250.06 0.17
ioc::network::libos::pop;catnap::linux::transport::pop 8053.23 390.80 168.66 3.99
ioc::network::libos::pop 7843.99 3085167.11 1340228.24 25.26
demikernel::pop 7843.99 556.06 238.74 0.11
ioc::network::libos::pushto 3611.67 7316.52 3101.69 23.90
demikernel::pushto 3611.67 436.27 183.96 1.56
ioc::network::libos::pushto;catnap::linux::transport::push 3611.67 429.62 180.98 5.97
demikernel::async_close 32.50 996.33 404.39 0.02
ioc::network::libos::connect 24.95 5520718.64 2401874.13 26.82
ioc::network::libos::connect;catnap::linux::transport::connect 24.95 77550.42 33569.87 2.81
demikernel::connect 24.95 2039.76 886.18 0.01
ioc::network::libos::close 18.35 31650.19 13750.84 0.07
ioc::network::libos::close;catnap::linux::transport::close 18.35 30375.69 13201.27 95.01
ioc::network::libos::accept 15.42 925176588.10 395546595.22 45.00
demikernel::accept 15.42 1573.98 674.20 0.00
ioc::network::libos::accept;catnap::linux::transport::accept 15.39 4887.19 2104.47 0.00
demikernel::socket 9.50 153166.39 65496.40 0.27
demikernel::socket;catnap::linux::transport::socket 9.50 150995.43 64561.39 96.68
demikernel::new 1.00 267732.74 114884.85 0.13
demikernel::bind 1.00 30263.05 12959.18 0.00
demikernel::bind;catnap::linux::transport::bind 1.00 25266.05 10819.23 83.53
demikernel::listen 1.00 14885.08 6388.71 0.00
demikernel::listen;catnap::linux::transport::listen 1.00 13917.21 5973.49 93.38
demikernel::close 0.00 nan nan 0.00

Copy link

libos = catpowder
commit id = 94f5af9

collapsed_stack num_calls cycles_per_call nanoseconds_per_call percent_time
bgc::inetstack::poll_recv;inetstack::layer4_endpoint::poll_once 18874661.83 693.08 295.85 85.81
bgc::inetstack::poll_recv 9437330.92 1618.24 690.65 54.20
bgc::inetstack::tcp::established::background 16568.41 2072.53 880.91 0.32
bgc::inetstack::tcp::established::background;tcp::established::background::acknowledger 16568.41 316.83 135.78 14.13
bgc::inetstack::tcp::established::background;tcp::established::background::receiver 16560.07 738.03 312.70 30.91
bgc::inetstack::tcp::established::background;tcp::established::background::retransmitter 16531.43 323.03 137.75 18.20
bgc::inetstack::tcp::established::background;tcp::established::background::sender 16489.50 870.02 366.53 13.84
ioc::network::libos::pop 9030.90 428.95 181.70 0.04
ioc::network::libos::push;inetstack::push 8762.80 5926.23 2571.00 2.15
demikernel::sgafree 8762.70 113.50 47.72 0.01
ioc::network::libos::push 8073.74 33463029.81 15627064.43 40.97
demikernel::push 8073.74 594.80 256.70 0.05
demikernel::sgaalloc 6530.54 215.52 95.11 0.02
demikernel::pop 6036.37 600.22 254.54 0.04
bgc::inetstack::poll_recv;inetstack::poll_bg_work::for::for 5280.92 630.10 269.62 0.90
ioc::network::libos::pushto 929.00 4342.70 1938.74 3.29
ioc::network::libos::pushto;inetstack::push 929.00 3916.92 1748.52 90.20
demikernel::pushto 929.00 479.45 213.54 0.36
bgc::inetstack::poll_recv;inetstack::poll_bg_work::for::for;udp::receive 252.00 229.62 97.98 62.54
ioc::network::libos::close 47.48 6252.23 2671.95 0.09
bgc::passive_listening::poll 43.82 45354.99 19321.40 0.04
ioc::network::libos::connect 41.86 71359.85 30090.08 1.22
bgc::inetstack::tcp::passiveopen::background 41.86 29185.57 12498.86 0.02
ioc::network::libos::accept 38.43 5089.61 2172.03 0.00
demikernel::async_close 32.50 722.04 302.73 0.01
demikernel::accept 21.86 1321.26 575.40 0.00
demikernel::connect 20.93 3840.67 1646.76 0.02
demikernel::socket 10.30 4408.58 1840.05 0.00
bgc::inetstack::arp::background 6.38 1855.27 795.06 0.00
bgc::inetstack::poll_recv;inetstack::poll;inetstack::layer4_endpoint::poll_once 2.00 5418.47 2318.17 81.99
bgc::inetstack::icmp::background 1.03 3135.87 1340.71 0.00
demikernel::new 1.00 92937037.82 39741567.07 18.55
demikernel::bind 1.00 26098.94 11162.72 0.00
bgc::inetstack::poll_recv;inetstack::poll 1.00 13162.77 5630.19 0.03
demikernel::listen 1.00 10434.07 4495.10 0.00
demikernel::close 0.00 nan nan 0.00

@iyzhang iyzhang merged commit 9639ebb into dev Nov 14, 2024
14 checks passed
@iyzhang iyzhang deleted the enhancement-collections-set-defaults branch November 14, 2024 00:08
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.

2 participants