-
Notifications
You must be signed in to change notification settings - Fork 3k
M252KG: Fix kvstore-static_tests failing with OOM #11183
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
Conversation
@ccli8, thank you for your changes. |
static const int num_of_threads = 3; | ||
static const char num_of_keys = 3; | ||
static const char *keys[] = {"key1", "key2", "key3"}; | ||
#endif | ||
|
||
static const int heap_alloc_threshold_size = 4096; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please try if rising this value would make this device to skip the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SeppoTakalo Enlarge heap_alloc_threshold_size
to 16384 can skip the test. So I submit another PR to replace this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modify this PR to use value 4*OS_STACK_SIZE
, which is equivalent.
Then remove other modifications.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SeppoTakalo Do rebase and update as above
@ccli8, thank you for your changes. |
631234b
to
976c37a
Compare
I can see same value used in following tests as well:
If you could modify those to match as well (if the logic is the same in those). |
Astyle complains, because you need to use spaces around operators:
|
Forked 3 threads plus misc, so minimum (4 * OS_STACK_SIZE) heap are required.
976c37a
to
500221c
Compare
Fixed |
Not the same logic. Cannot determine |
Test run: SUCCESSSummary: 4 of 4 test jobs passed |
Description
This PR is split from #11176 and to fix OOM error in
kvstore-static_tests
test on NUMAKER_M252KG target. NUMAKER_M252KG just has 32KiB and meets OOM error in this test. This PR fixes it by decreasing forked threads from 3 to 2.Depends on
#11176
Pull request type