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

Quick-fix running out of CASE sessions #17779

Merged
merged 3 commits into from
Apr 27, 2022

Conversation

tcarmelveilleux
Copy link
Contributor

Problem

Fixes #17698

Change overview

This PR cleans-up the previous sessions from same node (duplicate sessions
that should not happen). This is a bit unclean but will do to unblock
testing since it was good enough before, and the better method is not
yet implemented.

This PR also adds logging when this happens.

Testing

  • Unit tests pass
  • Cert tests pass
  • Manual run of N > 16
    for i in {1..18}; do ./out/debug/standalone/chip-tool basic read vendor-name 115566 0 ; done
    does not fail as before.

- From project-chip#17422 onwards, "previous" CASE sessions were not expired
  in terms of the session cache if sessions were constantly
  re-established.
- A root cause solution will be to solve project-chip#17568, but in the meantime,
  cert testing started failing after N (where N is session manager
  pool size) runs.

This PR cleans-up the previous sessions from same node (duplicate sessions
that should not happen). This is a bit unclean but will do to unblock
testing since it was good enough before, and the better method is not
yet implemented.

This PR also adds logging when this happens.

Fixes project-chip#17698

Testing done:
- Unit tests pass
- Cert tests pass
- Manual run of N > 16
  `for i in {1..18}; do ./out/debug/standalone/chip-tool basic read vendor-name 115566 0 ; done`
  does not fail as before.
@github-actions
Copy link

github-actions bot commented Apr 26, 2022

PR #17779: Size comparison from 6c54ab8 to fa7dfe2

Increases (32 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 6c54ab8 fa7dfe2 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 688215 688327 112 0.0
.text 586152 586264 112 0.0
lock-ftd LP_CC2652R7 (read only) 688783 689047 264 0.0
.rodata 103175 103247 72 0.1
.text 585124 585316 192 0.0
lock-mtd LP_CC2652R7 (read only) 637535 637791 256 0.0
.rodata 103055 103127 72 0.1
.text 533988 534172 184 0.0
pump-app LP_CC2652R7 (read only) 661635 661891 256 0.0
.rodata 80371 80443 72 0.1
.text 580784 580968 184 0.0
pump-controller-app LP_CC2652R7 (read only) 654523 654787 264 0.0
.rodata 83395 83467 72 0.1
.text 570648 570840 192 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 626770 626890 120 0.0
.app_xip_area 529648 529768 120 0.0
lock cyw930739m2evb_01 (read/write) 621314 621434 120 0.0
.app_xip_area 525664 525784 120 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 574150 574262 112 0.0
.app_xip_area 468856 468968 112 0.0
efr32 lighting-app BRD4161A (read only) 907612 907908 296 0.0
.text 907604 907900 296 0.0
BRD4161A+rpc (read only) 942028 942308 280 0.0
.text 942020 942300 280 0.0
window-app BRD4161A (read only) 844996 845276 280 0.0
.text 844988 845268 280 0.0
esp32 all-clusters-app c3devkit (read only) 999324 999528 204 0.0
(read/write) 1473618 1473690 72 0.0
.flash.rodata 206568 206640 72 0.0
.flash.text 999324 999528 204 0.0
m5stack (read only) 1053619 1053803 184 0.0
(read/write) 475616 475688 72 0.0
.flash.rodata 235916 235988 72 0.0
.flash.text 1048235 1048419 184 0.0
k32w light k32w061+release (read/write) 688712 688824 112 0.0
.text 599800 599912 112 0.0
lock k32w061+release (read/write) 729572 729684 112 0.0
.text 640292 640404 112 0.0
linux all-clusters-app debug (read only) 2734441 2735337 896 0.0
.rodata 233797 233861 64 0.0
.text 2326018 2326850 832 0.0
bridge-app debug+rpc (read only) 1890425 1891337 912 0.0
.rodata 159537 159601 64 0.0
.text 1608322 1609170 848 0.1
chip-tool debug (read only) 8359621 8360533 912 0.0
.rodata 452949 453013 64 0.0
.text 6825109 6825957 848 0.0
chip-tool-no-interactive-ipv6only arm64 (read only) 8221580 8222396 816 0.0
.rodata 419388 419452 64 0.0
.text 6588244 6588996 752 0.0
lighting-app debug+rpc (read only) 2325881 2326809 928 0.0
.rodata 183633 183729 96 0.1
.text 1975826 1976658 832 0.0
lock-app debug (read only) 2206265 2207193 928 0.0
.rodata 192129 192225 96 0.0
.text 1854354 1855186 832 0.0
ota-provider-app debug (read only) 2059001 2059897 896 0.0
.rodata 174171 174235 64 0.0
.text 1727538 1728370 832 0.0
ota-requestor-app debug (read only) 2090217 2091113 896 0.0
.rodata 170492 170556 64 0.0
.text 1760946 1761778 832 0.0
shell debug (read only) 2560257 2561201 944 0.0
.rodata 215538 215634 96 0.0
.text 2183026 2183874 848 0.0
thermostat-no-ble arm64 (read only) 2367676 2368492 816 0.0
.rodata 145468 145532 64 0.0
.text 1993184 1993936 752 0.0
tv-app debug (read only) 2844401 2845345 944 0.0
.rodata 215947 216043 96 0.0
.text 2446210 2447058 848 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2411508 2411772 264 0.0
.text 1374108 1374372 264 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1179243 1179487 244 0.0
rodata 150204 150272 68 0.0
text 808616 808800 184 0.0
p6 all-clusters-app default (read/write) 2526920 2527216 296 0.0
.text 1485184 1485480 296 0.0
light-app default (read/write) 2418680 2418960 280 0.0
.text 1376944 1377224 280 0.0
lock-app default (read/write) 2422856 2423136 280 0.0
.text 1381120 1381400 280 0.0
telink lighting-app tlsr9518adk80d (read/write) 807864 808144 280 0.0
text 571682 571886 204 0.0
Decreases (4 builds for cc13x2_26x2)
platform target config section 6c54ab8 fa7dfe2 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read/write) 163824 163712 -112 -0.1
lock-ftd LP_CC2652R7 (read/write) 154568 154304 -264 -0.2
pump-app LP_CC2652R7 (read/write) 182916 182660 -256 -0.1
pump-controller-app LP_CC2652R7 (read/write) 189820 189556 -264 -0.1
Full report (32 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 6c54ab8 fa7dfe2 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 688215 688327 112 0.0
(read/write) 163824 163712 -112 -0.1
.bss 75020 75020 0 0.0
.data 3396 3396 0 0.0
.rodata 101583 101583 0 0.0
.text 586152 586264 112 0.0
lock-ftd LP_CC2652R7 (read only) 688783 689047 264 0.0
(read/write) 154568 154304 -264 -0.2
.bss 73388 73388 0 0.0
.data 3220 3220 0 0.0
.rodata 103175 103247 72 0.1
.text 585124 585316 192 0.0
lock-mtd LP_CC2652R7 (read only) 637535 637791 256 0.0
(read/write) 146188 146188 0 0.0
.bss 69108 69108 0 0.0
.data 3220 3220 0 0.0
.rodata 103055 103127 72 0.1
.text 533988 534172 184 0.0
pump-app LP_CC2652R7 (read only) 661635 661891 256 0.0
(read/write) 182916 182660 -256 -0.1
.bss 73564 73564 0 0.0
.data 3252 3252 0 0.0
.rodata 80371 80443 72 0.1
.text 580784 580968 184 0.0
pump-controller-app LP_CC2652R7 (read only) 654523 654787 264 0.0
(read/write) 189820 189556 -264 -0.1
.bss 73612 73612 0 0.0
.data 3216 3216 0 0.0
.rodata 83395 83467 72 0.1
.text 570648 570840 192 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 626770 626890 120 0.0
.app_xip_area 529648 529768 120 0.0
.bss 79780 79780 0 0.0
.data 692 692 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 621314 621434 120 0.0
.app_xip_area 525664 525784 120 0.0
.bss 78340 78340 0 0.0
.data 656 656 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 574150 574262 112 0.0
.app_xip_area 468856 468968 112 0.0
.bss 87688 87688 0 0.0
.data 568 568 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 907612 907908 296 0.0
(read/write) 134908 134908 0 0.0
.bss 132864 132864 0 0.0
.data 2044 2044 0 0.0
.text 907604 907900 296 0.0
BRD4161A+rpc (read only) 942028 942308 280 0.0
(read/write) 151592 151592 0 0.0
.bss 149344 149344 0 0.0
.data 2248 2248 0 0.0
.text 942020 942300 280 0.0
window-app BRD4161A (read only) 844996 845276 280 0.0
(read/write) 132996 132996 0 0.0
.bss 131040 131040 0 0.0
.data 1956 1956 0 0.0
.text 844988 845268 280 0.0
esp32 all-clusters-app c3devkit (read only) 999324 999528 204 0.0
(read/write) 1473618 1473690 72 0.0
.dram0.bss 68176 68176 0 0.0
.dram0.data 14428 14428 0 0.0
.flash.rodata 206568 206640 72 0.0
.flash.text 999324 999528 204 0.0
.iram0.text 62020 62020 0 0.0
m5stack (read only) 1053619 1053803 184 0.0
(read/write) 475616 475688 72 0.0
.dram0.bss 73696 73696 0 0.0
.dram0.data 34168 34168 0 0.0
.flash.rodata 235916 235988 72 0.0
.flash.text 1048235 1048419 184 0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 688712 688824 112 0.0
.bss 81112 81112 0 0.0
.data 2000 2000 0 0.0
.text 599800 599912 112 0.0
lock k32w061+release (read/write) 729572 729684 112 0.0
.bss 81520 81520 0 0.0
.data 1960 1960 0 0.0
.text 640292 640404 112 0.0
linux all-clusters-app debug (read only) 2734441 2735337 896 0.0
(read/write) 172808 172808 0 0.0
.bss 83168 83168 0 0.0
.data 1984 1984 0 0.0
.data.rel.ro 81576 81576 0 0.0
.dynamic 608 608 0 0.0
.got 4464 4464 0 0.0
.init 27 27 0 0.0
.init_array 992 992 0 0.0
.rodata 233797 233861 64 0.0
.text 2326018 2326850 832 0.0
bridge-app debug+rpc (read only) 1890425 1891337 912 0.0
(read/write) 120240 120240 0 0.0
.bss 71168 71168 0 0.0
.data 3424 3424 0 0.0
.data.rel.ro 40328 40328 0 0.0
.dynamic 592 592 0 0.0
.got 4032 4032 0 0.0
.init 27 27 0 0.0
.init_array 680 680 0 0.0
.rodata 159537 159601 64 0.0
.text 1608322 1609170 848 0.1
chip-tool debug (read only) 8359621 8360533 912 0.0
(read/write) 472624 472624 0 0.0
.bss 22592 22592 0 0.0
.data 1136 1136 0 0.0
.data.rel.ro 442648 442648 0 0.0
.dynamic 624 624 0 0.0
.got 4952 4952 0 0.0
.init 27 27 0 0.0
.init_array 648 648 0 0.0
.rodata 452949 453013 64 0.0
.text 6825109 6825957 848 0.0
chip-tool-no-interactive-ipv6only arm64 (read only) 8221580 8222396 816 0.0
(read/write) 537745 537745 0 0.0
.bss 40897 40897 0 0.0
.data 1192 1192 0 0.0
.data.rel.ro 477752 477752 0 0.0
.dynamic 560 560 0 0.0
.got 14080 14080 0 0.0
.init 24 24 0 0.0
.init_array 184 184 0 0.0
.rodata 419388 419452 64 0.0
.text 6588244 6588996 752 0.0
lighting-app debug+rpc (read only) 2325881 2326809 928 0.0
(read/write) 151192 151192 0 0.0
.bss 73216 73216 0 0.0
.data 1984 1984 0 0.0
.data.rel.ro 70248 70248 0 0.0
.dynamic 608 608 0 0.0
.got 4320 4320 0 0.0
.init 27 27 0 0.0
.init_array 784 784 0 0.0
.rodata 183633 183729 96 0.1
.text 1975826 1976658 832 0.0
lock-app debug (read only) 2206265 2207193 928 0.0
(read/write) 145576 145576 0 0.0
.bss 71808 71808 0 0.0
.data 1504 1504 0 0.0
.data.rel.ro 66600 66600 0 0.0
.dynamic 592 592 0 0.0
.got 4312 4312 0 0.0
.init 27 27 0 0.0
.init_array 736 736 0 0.0
.rodata 192129 192225 96 0.0
.text 1854354 1855186 832 0.0
ota-provider-app debug (read only) 2059001 2059897 896 0.0
(read/write) 138824 138824 0 0.0
.bss 71232 71232 0 0.0
.data 1672 1672 0 0.0
.data.rel.ro 60152 60152 0 0.0
.dynamic 608 608 0 0.0
.got 4480 4480 0 0.0
.init 27 27 0 0.0
.init_array 640 640 0 0.0
.rodata 174171 174235 64 0.0
.text 1727538 1728370 832 0.0
ota-requestor-app debug (read only) 2090217 2091113 896 0.0
(read/write) 141600 141600 0 0.0
.bss 71872 71872 0 0.0
.data 1928 1928 0 0.0
.data.rel.ro 62184 62184 0 0.0
.dynamic 592 592 0 0.0
.got 4320 4320 0 0.0
.init 27 27 0 0.0
.init_array 664 664 0 0.0
.rodata 170492 170556 64 0.0
.text 1760946 1761778 832 0.0
shell debug (read only) 2560257 2561201 944 0.0
(read/write) 196776 196776 0 0.0
.bss 113768 113768 0 0.0
.data 1360 1360 0 0.0
.data.rel.ro 75912 75912 0 0.0
.dynamic 592 592 0 0.0
.got 4184 4184 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 215538 215634 96 0.0
.text 2183026 2183874 848 0.0
thermostat-no-ble arm64 (read only) 2367676 2368492 816 0.0
(read/write) 174337 174337 0 0.0
.bss 86097 86097 0 0.0
.data 1488 1488 0 0.0
.data.rel.ro 78984 78984 0 0.0
.dynamic 560 560 0 0.0
.got 4744 4744 0 0.0
.init 24 24 0 0.0
.init_array 368 368 0 0.0
.rodata 145468 145532 64 0.0
.text 1993184 1993936 752 0.0
tv-app debug (read only) 2844401 2845345 944 0.0
(read/write) 276472 276472 0 0.0
.bss 189112 189112 0 0.0
.data 4640 4640 0 0.0
.data.rel.ro 76488 76488 0 0.0
.dynamic 592 592 0 0.0
.got 4696 4696 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 215947 216043 96 0.0
.text 2446210 2447058 848 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2411508 2411772 264 0.0
.bss 205660 205660 0 0.0
.data 5848 5848 0 0.0
.text 1374108 1374372 264 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1179243 1179487 244 0.0
bss 141784 141784 0 0.0
rodata 150204 150272 68 0.0
text 808616 808800 184 0.0
p6 all-clusters-app default (read/write) 2526920 2527216 296 0.0
.bss 139040 139040 0 0.0
.data 2784 2784 0 0.0
.text 1485184 1485480 296 0.0
light-app default (read/write) 2418680 2418960 280 0.0
.bss 132520 132520 0 0.0
.data 2584 2584 0 0.0
.text 1376944 1377224 280 0.0
lock-app default (read/write) 2422856 2423136 280 0.0
.bss 132320 132320 0 0.0
.data 2544 2544 0 0.0
.text 1381120 1381400 280 0.0
telink lighting-app tlsr9518adk80d (read/write) 807864 808144 280 0.0
bss 75216 75216 0 0.0
noinit 40416 40416 0 0.0
text 571682 571886 204 0.0

Copy link
Contributor

@kghost kghost left a comment

Choose a reason for hiding this comment

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

There should a temporary solution before #17568 being fixed

Copy link
Contributor

@kghost kghost left a comment

Choose a reason for hiding this comment

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

This should be a temporary solution before #17568 being fixed

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

Successfully merging this pull request may close these issues.

Timeout error occured occasionally in the chip-tool in all apps
6 participants