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

[Darwin] MTRDeviceController getSessionForNode: to use subscription pool as needed #33856

Conversation

jtung-apple
Copy link
Contributor

@jtung-apple jtung-apple commented Jun 11, 2024

This change makes MTRDeviceController's -getSessionForNode:completion: also participate in the subscription pool when there is an MTRDevice associated with the nodeID, and is also known to use Thread.

With this change, MTRBaseDevice and MTRBaseClusters reads/subscriptions for devices using Thread would also get the CASE session establishment gated by the subscription pool, and help avoid congesting the Thread network when a controller starts and tries to get status for all its Thread devices.

Copy link

github-actions bot commented Jun 11, 2024

PR #33856: Size comparison from bfa3e6f to e479b8b

Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section bfa3e6f e479b8b change % change
bl602 lighting-app bl602 FLASH 1268298 1268298 0 0.0
RAM 95424 95424 0 0.0
bl602+mfd FLASH 1282576 1282576 0 0.0
RAM 95576 95576 0 0.0
bl602+rpc FLASH 1307256 1307256 0 0.0
RAM 103856 103856 0 0.0
bl702 lighting-app bl702 FLASH 1088938 1088938 0 0.0
RAM 14897 14897 0 0.0
bl702+mfd FLASH 1099888 1099888 0 0.0
RAM 15049 15049 0 0.0
bl702+rpc FLASH 1179018 1179018 0 0.0
RAM 23925 23925 0 0.0
bl706-eth FLASH 872114 872114 0 0.0
RAM 27016 27016 0 0.0
bl706-wifi FLASH 1124146 1124146 0 0.0
RAM 14349 14349 0 0.0
bl702l lighting-app bl702l FLASH 1076080 1076080 0 0.0
RAM 21468 21468 0 0.0
bl702l+mfd FLASH 1087342 1087342 0 0.0
RAM 21628 21628 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 797596 797596 0 0.0
RAM 103184 103184 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 813392 813392 0 0.0
RAM 113664 113664 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 802756 802756 0 0.0
RAM 107784 107784 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 755244 755244 0 0.0
RAM 101884 101884 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 740900 740900 0 0.0
RAM 102132 102132 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 604846 604846 0 0.0
RAM 204608 204608 0 0.0
lock CC3235SF_LAUNCHXL FLASH 650634 650634 0 0.0
RAM 204868 204868 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 661253 661253 0 0.0
RAM 74608 74608 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 681105 681105 0 0.0
RAM 77240 77240 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 681105 681105 0 0.0
RAM 77240 77240 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 638033 638033 0 0.0
RAM 69676 69676 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 603429 603429 0 0.0
RAM 70312 70312 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 623073 623073 0 0.0
RAM 72864 72864 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 623073 623073 0 0.0
RAM 72864 72864 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619221 619221 0 0.0
RAM 73328 73328 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 638945 638945 0 0.0
RAM 75880 75880 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 638945 638945 0 0.0
RAM 75880 75880 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 587469 587469 0 0.0
RAM 67296 67296 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 607313 607313 0 0.0
RAM 69928 69928 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 607313 607313 0 0.0
RAM 69928 69928 0 0.0
efr32 lighting-app BRD4187C FLASH 887832 887832 0 0.0
RAM 183520 183520 0 0.0
lock-app BRD4338a FLASH 701672 701664 -8 -0.0
RAM 242804 242804 0 0.0
window-app BRD4187C FLASH 968748 968740 -8 -0.0
RAM 167952 167952 0 0.0
esp32 all-clusters-app c3devkit DRAM 88420 88420 0 0.0
FLASH 1466214 1466214 0 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 114892 114892 0 0.0
FLASH 1535419 1535419 0 0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4576 4576 0 0.0
FLASH 2532240 2532240 0 0.0
RAM 129104 129104 0 0.0
all-clusters-app debug unknown 5344 5344 0 0.0
FLASH 5568590 5568590 0 0.0
RAM 482296 482296 0 0.0
all-clusters-minimal-app debug unknown 5264 5264 0 0.0
FLASH 5052616 5052616 0 0.0
RAM 236888 236888 0 0.0
bridge-app debug unknown 5232 5232 0 0.0
FLASH 4477768 4477768 0 0.0
RAM 216816 216816 0 0.0
chip-tool debug unknown 5744 5744 0 0.0
FLASH 11489463 11489463 0 0.0
RAM 533474 533474 0 0.0
chip-tool-ipv6only arm64 unknown 19728 19728 0 0.0
FLASH 10632852 10632852 0 0.0
RAM 581464 581464 0 0.0
fabric-admin debug unknown 5600 5600 0 0.0
FLASH 11259575 11259575 0 0.0
RAM 527058 527058 0 0.0
fabric-bridge-app debug unknown 5240 5240 0 0.0
FLASH 4347352 4347352 0 0.0
RAM 208864 208864 0 0.0
lighting-app debug+rpc+ui unknown 5864 5864 0 0.0
FLASH 5366002 5366002 0 0.0
RAM 225424 225424 0 0.0
lock-app debug unknown 5184 5184 0 0.0
FLASH 4543272 4543272 0 0.0
RAM 204240 204240 0 0.0
ota-provider-app debug unknown 4552 4552 0 0.0
FLASH 4177528 4177528 0 0.0
RAM 193200 193200 0 0.0
ota-requestor-app debug unknown 4488 4488 0 0.0
FLASH 4301976 4301976 0 0.0
RAM 197840 197840 0 0.0
shell debug unknown 4112 4112 0 0.0
FLASH 2799949 2799949 0 0.0
RAM 154424 154424 0 0.0
thermostat-no-ble arm64 unknown 9160 9160 0 0.0
FLASH 4149604 4149604 0 0.0
RAM 234616 234616 0 0.0
tv-app debug unknown 5472 5472 0 0.0
FLASH 5586952 5586952 0 0.0
RAM 345672 345672 0 0.0
tv-casting-app debug unknown 5104 5104 0 0.0
FLASH 9537926 9537926 0 0.0
RAM 351968 351968 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1497748 1497748 0 0.0
RAM 226168 226168 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 873828 873828 0 0.0
RAM 139225 139225 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 948512 948512 0 0.0
RAM 137653 137653 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 821804 821804 0 0.0
RAM 138123 138123 0 0.0
nxp contact k32w0+release FLASH 575220 575220 0 0.0
RAM 70120 70120 0 0.0
k32w1+release FLASH 590464 590464 0 0.0
RAM 74152 74152 0 0.0
light k32w0+release FLASH 609216 609216 0 0.0
RAM 69596 69596 0 0.0
k32w1+release FLASH 673648 673648 0 0.0
RAM 82904 82904 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1610156 1610156 0 0.0
RAM 207228 207228 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1534356 1534356 0 0.0
RAM 204132 204132 0 0.0
light cy8ckit_062s2_43012 FLASH 1460652 1460652 0 0.0
RAM 197412 197412 0 0.0
lock cy8ckit_062s2_43012 FLASH 1462948 1462948 0 0.0
RAM 224476 224476 0 0.0
qpg lighting-app qpg6105+debug FLASH 650216 650216 0 0.0
RAM 104652 104652 0 0.0
lock-app qpg6105+debug FLASH 610196 610196 0 0.0
RAM 99328 99328 0 0.0
stm32 light STM32WB5MM-DK FLASH 472124 472124 0 0.0
RAM 141748 141748 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 625098 625098 0 0.0
RAM 49952 49952 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 600692 600692 0 0.0
RAM 130384 130384 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 770308 770308 0 0.0
RAM 110148 110148 0 0.0
bridge-app tlsr9258a FLASH 668228 668228 0 0.0
RAM 94768 94768 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 626850 626850 0 0.0
RAM 49996 49996 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 712688 712688 0 0.0
RAM 76588 76588 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 557830 557830 0 0.0
RAM 126640 126640 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 792896 792896 0 0.0
RAM 99996 99996 0 0.0
lock-app-dfu tlsr9528a FLASH 660154 660154 0 0.0
RAM 69276 69276 0 0.0
ota-requestor-app tlsr9258a FLASH 686564 686564 0 0.0
RAM 94492 94492 0 0.0
pump-app tlsr9518adk80d FLASH 609050 609050 0 0.0
RAM 56376 56376 0 0.0
pump-controller-app tlsr9518adk80d FLASH 599398 599398 0 0.0
RAM 56176 56176 0 0.0
shell tlsr9518adk80d FLASH 462618 462618 0 0.0
RAM 71852 71852 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 633244 633244 0 0.0
RAM 51624 51624 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 642236 642236 0 0.0
RAM 59812 59812 0 0.0
thermostat tlsr9518adk80d FLASH 618300 618300 0 0.0
RAM 56500 56500 0 0.0
window-covering tlsr9118bdk40d FLASH 464616 464616 0 0.0
RAM 82272 82272 0 0.0
tizen all-clusters-app arm unknown 1552 1552 0 0.0
FLASH 1613128 1613128 0 0.0
RAM 45460 45460 0 0.0
chip-tool-ubsan arm unknown 2360 2360 0 0.0
FLASH 15705266 15705266 0 0.0
RAM 6889008 6889008 0 0.0

Copy link

github-actions bot commented Jun 12, 2024

PR #33856: Size comparison from bfa3e6f to 08bb265

Increases above 0.2%:

platform target config section bfa3e6f 08bb265 change % change
linux chip-tool debug RAM 533474 535202 1728 0.3
chip-tool-ipv6only arm64 unknown 19728 19792 64 0.3
RAM 581464 583200 1736 0.3
fabric-admin debug RAM 527058 528786 1728 0.3
tv-casting-app debug FLASH 9537926 9559046 21120 0.2
RAM 351968 352800 832 0.2
Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section bfa3e6f 08bb265 change % change
bl602 lighting-app bl602 FLASH 1268298 1267948 -350 -0.0
RAM 95424 95424 0 0.0
bl602+mfd FLASH 1282576 1282226 -350 -0.0
RAM 95576 95576 0 0.0
bl602+rpc FLASH 1307256 1306906 -350 -0.0
RAM 103856 103856 0 0.0
bl702 lighting-app bl702 FLASH 1088938 1088588 -350 -0.0
RAM 14897 14897 0 0.0
bl702+mfd FLASH 1099888 1099538 -350 -0.0
RAM 15049 15049 0 0.0
bl702+rpc FLASH 1179018 1178668 -350 -0.0
RAM 23925 23925 0 0.0
bl706-eth FLASH 872114 872188 74 0.0
RAM 27016 27016 0 0.0
bl706-wifi FLASH 1124146 1123784 -362 -0.0
RAM 14349 14349 0 0.0
bl702l lighting-app bl702l FLASH 1076080 1075730 -350 -0.0
RAM 21468 21468 0 0.0
bl702l+mfd FLASH 1087342 1086992 -350 -0.0
RAM 21628 21628 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 797596 797636 40 0.0
RAM 103184 103184 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 813392 813440 48 0.0
RAM 113664 113664 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 802756 802804 48 0.0
RAM 107784 107784 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 755244 755292 48 0.0
RAM 101884 101884 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 740900 740940 40 0.0
RAM 102132 102132 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 604846 604902 56 0.0
RAM 204608 204608 0 0.0
lock CC3235SF_LAUNCHXL FLASH 650634 650690 56 0.0
RAM 204868 204868 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 661253 661149 -104 -0.0
RAM 74608 74608 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 681105 681001 -104 -0.0
RAM 77240 77240 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 681105 681001 -104 -0.0
RAM 77240 77240 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 638033 637937 -96 -0.0
RAM 69676 69676 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 603429 603325 -104 -0.0
RAM 70312 70312 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 623073 622969 -104 -0.0
RAM 72864 72864 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 623073 622969 -104 -0.0
RAM 72864 72864 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619221 619117 -104 -0.0
RAM 73328 73328 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 638945 638841 -104 -0.0
RAM 75880 75880 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 638945 638841 -104 -0.0
RAM 75880 75880 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 587469 587365 -104 -0.0
RAM 67296 67296 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 607313 607209 -104 -0.0
RAM 69928 69928 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 607313 607209 -104 -0.0
RAM 69928 69928 0 0.0
efr32 lighting-app BRD4187C FLASH 887832 887760 -72 -0.0
RAM 183520 183520 0 0.0
lock-app BRD4338a FLASH 701672 701568 -104 -0.0
RAM 242804 242804 0 0.0
window-app BRD4187C FLASH 968748 968628 -120 -0.0
RAM 167952 167952 0 0.0
esp32 all-clusters-app c3devkit DRAM 88420 88420 0 0.0
FLASH 1466214 1466124 -90 -0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 114892 114892 0 0.0
FLASH 1535419 1535363 -56 -0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4576 4568 -8 -0.2
FLASH 2532240 2531824 -416 -0.0
RAM 129104 129072 -32 -0.0
all-clusters-app debug unknown 5344 5344 0 0.0
FLASH 5568590 5568382 -208 -0.0
RAM 482296 483000 704 0.1
all-clusters-minimal-app debug unknown 5264 5264 0 0.0
FLASH 5052616 5052168 -448 -0.0
RAM 236888 236792 -96 -0.0
bridge-app debug unknown 5232 5232 0 0.0
FLASH 4477768 4477496 -272 -0.0
RAM 216816 216752 -64 -0.0
chip-tool debug unknown 5744 5744 0 0.0
FLASH 11489463 11511063 21600 0.2
RAM 533474 535202 1728 0.3
chip-tool-ipv6only arm64 unknown 19728 19792 64 0.3
FLASH 10632852 10649252 16400 0.2
RAM 581464 583200 1736 0.3
fabric-admin debug unknown 5600 5600 0 0.0
FLASH 11259575 11281207 21632 0.2
RAM 527058 528786 1728 0.3
fabric-bridge-app debug unknown 5240 5240 0 0.0
FLASH 4347352 4347112 -240 -0.0
RAM 208864 208800 -64 -0.0
lighting-app debug+rpc+ui unknown 5864 5864 0 0.0
FLASH 5366002 5365538 -464 -0.0
RAM 225424 225392 -32 -0.0
lock-app debug unknown 5184 5184 0 0.0
FLASH 4543272 4542840 -432 -0.0
RAM 204240 204208 -32 -0.0
ota-provider-app debug unknown 4552 4552 0 0.0
FLASH 4177528 4177320 -208 -0.0
RAM 193200 193200 0 0.0
ota-requestor-app debug unknown 4488 4488 0 0.0
FLASH 4301976 4301784 -192 -0.0
RAM 197840 197840 0 0.0
shell debug unknown 4112 4112 0 0.0
FLASH 2799949 2799949 0 0.0
RAM 154424 154392 -32 -0.0
thermostat-no-ble arm64 unknown 9160 9160 0 0.0
FLASH 4149604 4149604 0 0.0
RAM 234616 234584 -32 -0.0
tv-app debug unknown 5472 5472 0 0.0
FLASH 5586952 5587128 176 0.0
RAM 345672 345640 -32 -0.0
tv-casting-app debug unknown 5104 5104 0 0.0
FLASH 9537926 9559046 21120 0.2
RAM 351968 352800 832 0.2
mbed lock-app-release cy8cproto_062_4343w FLASH 1497748 1497404 -344 -0.0
RAM 226168 226168 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 873828 873856 28 0.0
RAM 139225 139225 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 948512 948556 44 0.0
RAM 137653 137653 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 821804 821832 28 0.0
RAM 138123 138123 0 0.0
nxp contact k32w0+release FLASH 575220 575260 40 0.0
RAM 70120 70120 0 0.0
k32w1+release FLASH 590464 590384 -80 -0.0
RAM 74152 74152 0 0.0
light k32w0+release FLASH 609216 609224 8 0.0
RAM 69596 69596 0 0.0
k32w1+release FLASH 673648 673552 -96 -0.0
RAM 82904 82904 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1610156 1610052 -104 -0.0
RAM 207228 207228 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1534356 1534260 -96 -0.0
RAM 204132 204132 0 0.0
light cy8ckit_062s2_43012 FLASH 1460652 1460548 -104 -0.0
RAM 197412 197412 0 0.0
lock cy8ckit_062s2_43012 FLASH 1462948 1462844 -104 -0.0
RAM 224476 224476 0 0.0
qpg lighting-app qpg6105+debug FLASH 650216 650128 -88 -0.0
RAM 104652 104652 0 0.0
lock-app qpg6105+debug FLASH 610196 610116 -80 -0.0
RAM 99328 99328 0 0.0
stm32 light STM32WB5MM-DK FLASH 472124 472028 -96 -0.0
RAM 141748 141748 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 625098 625172 74 0.0
RAM 49952 49952 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 600692 600770 78 0.0
RAM 130384 130384 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 770308 770382 74 0.0
RAM 110148 110148 0 0.0
bridge-app tlsr9258a FLASH 668228 668302 74 0.0
RAM 94768 94768 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 626850 626924 74 0.0
RAM 49996 49996 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 712688 712762 74 0.0
RAM 76588 76588 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 557830 557908 78 0.0
RAM 126640 126640 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 792896 792970 74 0.0
RAM 99996 99996 0 0.0
lock-app-dfu tlsr9528a FLASH 660154 660228 74 0.0
RAM 69276 69276 0 0.0
ota-requestor-app tlsr9258a FLASH 686564 686638 74 0.0
RAM 94492 94492 0 0.0
pump-app tlsr9518adk80d FLASH 609050 609124 74 0.0
RAM 56376 56376 0 0.0
pump-controller-app tlsr9518adk80d FLASH 599398 599472 74 0.0
RAM 56176 56176 0 0.0
shell tlsr9518adk80d FLASH 462618 462614 -4 -0.0
RAM 71852 71852 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 633244 633318 74 0.0
RAM 51624 51624 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 642236 642310 74 0.0
RAM 59812 59812 0 0.0
thermostat tlsr9518adk80d FLASH 618300 618374 74 0.0
RAM 56500 56500 0 0.0
window-covering tlsr9118bdk40d FLASH 464616 464694 78 0.0
RAM 82272 82272 0 0.0
tizen all-clusters-app arm unknown 1552 1548 -4 -0.3
FLASH 1613128 1612836 -292 -0.0
RAM 45460 45412 -48 -0.1
chip-tool-ubsan arm unknown 2360 2360 0 0.0
FLASH 15705266 15735450 30184 0.2
RAM 6889008 6902388 13380 0.2

Copy link

github-actions bot commented Jun 13, 2024

PR #33856: Size comparison from bfa3e6f to 643ffcb

Increases above 0.2%:

platform target config section bfa3e6f 643ffcb change % change
linux chip-tool debug FLASH 11489463 11513047 23584 0.2
RAM 533474 535202 1728 0.3
chip-tool-ipv6only arm64 unknown 19728 19816 88 0.4
RAM 581464 583200 1736 0.3
fabric-admin debug FLASH 11259575 11283191 23616 0.2
RAM 527058 528786 1728 0.3
thermostat-no-ble arm64 unknown 9160 9184 24 0.3
tv-casting-app debug FLASH 9537926 9561030 23104 0.2
RAM 351968 352800 832 0.2
Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section bfa3e6f 643ffcb change % change
bl602 lighting-app bl602 FLASH 1268298 1268236 -62 -0.0
RAM 95424 95328 -96 -0.1
bl602+mfd FLASH 1282576 1282514 -62 -0.0
RAM 95576 95480 -96 -0.1
bl602+rpc FLASH 1307256 1307194 -62 -0.0
RAM 103856 103760 -96 -0.1
bl702 lighting-app bl702 FLASH 1088938 1088876 -62 -0.0
RAM 14897 14897 0 0.0
bl702+mfd FLASH 1099888 1099826 -62 -0.0
RAM 15049 15049 0 0.0
bl702+rpc FLASH 1179018 1178956 -62 -0.0
RAM 23925 23925 0 0.0
bl706-eth FLASH 872114 872476 362 0.0
RAM 27016 27016 0 0.0
bl706-wifi FLASH 1124146 1124174 28 0.0
RAM 14349 14349 0 0.0
bl702l lighting-app bl702l FLASH 1076080 1076018 -62 -0.0
RAM 21468 21468 0 0.0
bl702l+mfd FLASH 1087342 1087280 -62 -0.0
RAM 21628 21628 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 797596 797864 268 0.0
RAM 103184 103088 -96 -0.1
lock-ftd LP_EM_CC1354P10_6 FLASH 813392 813668 276 0.0
RAM 113664 113568 -96 -0.1
lock-mtd LP_EM_CC1354P10_6 FLASH 802756 803056 300 0.0
RAM 107784 107688 -96 -0.1
pump-app LP_EM_CC1354P10_6 FLASH 755244 755552 308 0.0
RAM 101884 101788 -96 -0.1
pump-controller-app LP_EM_CC1354P10_6 FLASH 740900 741184 284 0.0
RAM 102132 102036 -96 -0.1
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 604846 605378 532 0.1
RAM 204608 204512 -96 -0.0
lock CC3235SF_LAUNCHXL FLASH 650634 651166 532 0.1
RAM 204868 204772 -96 -0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 661253 661413 160 0.0
RAM 74608 74512 -96 -0.1
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 681105 681265 160 0.0
RAM 77240 77144 -96 -0.1
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 681105 681265 160 0.0
RAM 77240 77144 -96 -0.1
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 638033 638201 168 0.0
RAM 69676 69580 -96 -0.1
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 603429 603589 160 0.0
RAM 70312 70216 -96 -0.1
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 623073 623233 160 0.0
RAM 72864 72768 -96 -0.1
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 623073 623233 160 0.0
RAM 72864 72768 -96 -0.1
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619221 619373 152 0.0
RAM 73328 73232 -96 -0.1
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 638945 639097 152 0.0
RAM 75880 75784 -96 -0.1
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 638945 639097 152 0.0
RAM 75880 75784 -96 -0.1
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 587469 587629 160 0.0
RAM 67296 67200 -96 -0.1
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 607313 607473 160 0.0
RAM 69928 69832 -96 -0.1
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 607313 607473 160 0.0
RAM 69928 69832 -96 -0.1
efr32 lighting-app BRD4187C FLASH 887832 888024 192 0.0
RAM 183520 183424 -96 -0.1
lock-app BRD4338a FLASH 701672 702040 368 0.1
RAM 242804 242708 -96 -0.0
window-app BRD4187C FLASH 968748 969084 336 0.0
RAM 167952 167856 -96 -0.1
esp32 all-clusters-app c3devkit DRAM 88420 88324 -96 -0.1
FLASH 1466214 1466428 214 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 114892 114796 -96 -0.1
FLASH 1535419 1535555 136 0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4576 4568 -8 -0.2
FLASH 2532240 2533808 1568 0.1
RAM 129104 129072 -32 -0.0
all-clusters-app debug unknown 5344 5344 0 0.0
FLASH 5568590 5570398 1808 0.0
RAM 482296 483000 704 0.1
all-clusters-minimal-app debug unknown 5264 5264 0 0.0
FLASH 5052616 5054184 1568 0.0
RAM 236888 236792 -96 -0.0
bridge-app debug unknown 5232 5232 0 0.0
FLASH 4477768 4479496 1728 0.0
RAM 216816 216752 -64 -0.0
chip-tool debug unknown 5744 5744 0 0.0
FLASH 11489463 11513047 23584 0.2
RAM 533474 535202 1728 0.3
chip-tool-ipv6only arm64 unknown 19728 19816 88 0.4
FLASH 10632852 1065152 18672 0.2
RAM 581464 583200 1736 0.3
fabric-admin debug unknown 5600 5600 0 0.0
FLASH 11259575 11283191 23616 0.2
RAM 527058 528786 1728 0.3
fabric-bridge-app debug unknown 5240 5240 0 0.0
FLASH 4347352 4349096 1744 0.0
RAM 208864 208800 -64 -0.0
lighting-app debug+rpc+ui unknown 5864 5864 0 0.0
FLASH 5366002 5367554 1552 0.0
RAM 225424 225392 -32 -0.0
lock-app debug unknown 5184 5184 0 0.0
FLASH 4543272 4544872 1600 0.0
RAM 204240 204208 -32 -0.0
ota-provider-app debug unknown 4552 4552 0 0.0
FLASH 4177528 4179352 1824 0.0
RAM 193200 193200 0 0.0
ota-requestor-app debug unknown 4488 4488 0 0.0
FLASH 4301976 4303768 1792 0.0
RAM 197840 197840 0 0.0
shell debug unknown 4112 4112 0 0.0
FLASH 2799949 2801933 1984 0.1
RAM 154424 154392 -32 -0.0
thermostat-no-ble arm64 unknown 9160 9184 24 0.3
FLASH 4149604 4151860 2256 0.1
RAM 234616 234584 -32 -0.0
tv-app debug unknown 5472 5472 0 0.0
FLASH 5586952 5589160 2208 0.0
RAM 345672 345640 -32 -0.0
tv-casting-app debug unknown 5104 5104 0 0.0
FLASH 9537926 9561030 23104 0.2
RAM 351968 352800 832 0.2
mbed lock-app-release cy8cproto_062_4343w FLASH 1497748 1497660 -88 -0.0
RAM 226168 226072 -96 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 873828 874184 356 0.0
RAM 139225 139129 -96 -0.1
nrf7002dk_nrf5340_cpuapp FLASH 948512 948776 264 0.0
RAM 137653 137557 -96 -0.1
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 821804 822156 352 0.0
RAM 138123 138027 -96 -0.1
nxp contact k32w0+release FLASH 575220 575436 216 0.0
RAM 70120 70024 -96 -0.1
k32w1+release FLASH 590464 590552 88 0.0
RAM 74152 74056 -96 -0.1
light k32w0+release FLASH 609216 609384 168 0.0
RAM 69596 69500 -96 -0.1
k32w1+release FLASH 673648 673744 96 0.0
RAM 82904 82808 -96 -0.1
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1610156 1610508 352 0.0
RAM 207228 207132 -96 -0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1534356 1534716 360 0.0
RAM 204132 204036 -96 -0.0
light cy8ckit_062s2_43012 FLASH 1460652 1460988 336 0.0
RAM 197412 197316 -96 -0.0
lock cy8ckit_062s2_43012 FLASH 1462948 1463300 352 0.0
RAM 224476 224380 -96 -0.0
qpg lighting-app qpg6105+debug FLASH 650216 650352 136 0.0
RAM 104652 104556 -96 -0.1
lock-app qpg6105+debug FLASH 610196 610404 208 0.0
RAM 99328 99232 -96 -0.1
stm32 light STM32WB5MM-DK FLASH 472124 472260 136 0.0
RAM 141748 141652 -96 -0.1
telink air-quality-sensor-app tlsr9528a_retention FLASH 625098 625418 320 0.1
RAM 49952 49904 -48 -0.1
all-clusters-app tlsr9118bdk40d FLASH 600692 601012 320 0.1
RAM 130384 130288 -96 -0.1
all-clusters-minimal-app tlsr9528a FLASH 770308 770624 316 0.0
RAM 110148 110052 -96 -0.1
bridge-app tlsr9258a FLASH 668228 668544 316 0.0
RAM 94768 94672 -96 -0.1
contact-sensor-app tlsr9528a_retention FLASH 626850 627170 320 0.1
RAM 49996 49948 -48 -0.1
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 712688 713008 320 0.0
RAM 76588 76540 -48 -0.1
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 557830 558150 320 0.1
RAM 126640 126544 -96 -0.1
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 792896 793212 316 0.0
RAM 99996 99900 -96 -0.1
lock-app-dfu tlsr9528a FLASH 660154 660474 320 0.0
RAM 69276 69228 -48 -0.1
ota-requestor-app tlsr9258a FLASH 686564 686880 316 0.0
RAM 94492 94396 -96 -0.1
pump-app tlsr9518adk80d FLASH 609050 609370 320 0.1
RAM 56376 56328 -48 -0.1
pump-controller-app tlsr9518adk80d FLASH 599398 599718 320 0.1
RAM 56176 56128 -48 -0.1
shell tlsr9518adk80d FLASH 462618 462614 -4 -0.0
RAM 71852 71852 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 633244 633552 308 0.0
RAM 51624 51576 -48 -0.1
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 642236 642556 320 0.0
RAM 59812 59764 -48 -0.1
thermostat tlsr9518adk80d FLASH 618300 618620 320 0.1
RAM 56500 56452 -48 -0.1
window-covering tlsr9118bdk40d FLASH 464616 464934 318 0.1
RAM 82272 82224 -48 -0.1
tizen all-clusters-app arm unknown 1552 1548 -4 -0.3
FLASH 1613128 1614168 1040 0.1
RAM 45460 45412 -48 -0.1
chip-tool-ubsan arm unknown 2360 2360 0 0.0
FLASH 15705266 15741802 36536 0.2
RAM 6889008 6906152 17144 0.2

@mergify mergify bot merged commit f0bf341 into project-chip:master Jun 13, 2024
68 checks passed
@@ -2055,194 +2061,195 @@ - (void)_setupSubscriptionWithReason:(NSString *)reason
});
}

// Call directlyGetSessionForNode because the subscription setup already goes through the subscription pool queue
Copy link
Contributor

Choose a reason for hiding this comment

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

So I was figuring we would stop putting the subscription setup in there and just call getSessionForNode and have that get queued.... why are we not doing that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Subscriptions on controller startup can cause a thundering herd issue with many Thread devices. If we only use the N-pool for getSessionForNode, then as soon as session is established, another device subscription can move forward, and we can get into a situation where many subscriptions and their priming reports are in the air at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants