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

Increases events.shared-stacksize to 2K #9239

Merged
merged 1 commit into from
Jan 7, 2019
Merged

Increases events.shared-stacksize to 2K #9239

merged 1 commit into from
Jan 7, 2019

Conversation

VeijoPesonen
Copy link
Contributor

@VeijoPesonen VeijoPesonen commented Jan 3, 2019

This has become as an issue at least with ESP8266.

Description

ESP8266 driver started to use global event queue to handle some AT parsing and call Socket::sigio() events.
It turned out that when running DNS tests, or Pelion Client, the stack space (1kB) is not enough for the purpose.

Therefore we propose that this is raised to 2kB, as the assumption is that event loop should allow as equivalently complex code than any other threads.

In Mbed OS, the default Thread stack size is 4kB, but we assume 2kB to be enough for non-blocking event purposes.

Pull request type

[X] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@kjbracey-arm
@SeppoTakalo

@0xc0170 0xc0170 requested review from kjbracey and geky January 3, 2019 15:00
@cmonr
Copy link
Contributor

cmonr commented Jan 3, 2019

@VeijoPesonen Out of curiosity, what was causing the current size to be insufficient?

@VeijoPesonen
Copy link
Contributor Author

VeijoPesonen commented Jan 4, 2019

@cmonr unfortunately I don't know what takes the stack space, I only know that the driver will crash to memory exhaustion with the default 1K.

@SeppoTakalo
Copy link
Contributor

That is not the correct answer..

Correct answer is that ESP8266 driver started to use global event queue to handle some AT parsing and call Socket::sigio() events.
It turned out that when running DNS tests, or Pelion Client, the stack space (1kB) is not enough for the purpose.

Therefore we propose that this is raised to 2kB, as the assumption is that event loop should allow as equivalently complex code than any other threads.

In Mbed OS, the default Thread stack size is 4kB, but we assume 2kB to be enough for non-blocking event purposes.

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 4, 2019

@VeijoPesonen Would that be good to be added to the commit msg (^^ answer above) ?

ESP8266 driver started to use global event queue to handle some AT
parsing and call Socket::sigio() events. It turned out that when
running DNS tests, or Pelion Client, the stack space (1kB) is not
enough for the purpose.

Therefore we propose that this is raised to 2kB, as the assumption
is that event loop should allow as equivalently complex code than
any other threads.

In Mbed OS, the default Thread stack size is 4kB, but we assume 2kB
to be enough for non-blocking event purposes.
@VeijoPesonen
Copy link
Contributor Author

@0xc0170 , copied @SeppoTakalo's description to the commit message.

@mbed-ci
Copy link

mbed-ci commented Jan 4, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

@cmonr
Copy link
Contributor

cmonr commented Jan 4, 2019

CI restarted.
Updated commit message changed the SHA of the last commit

@mbed-ci
Copy link

mbed-ci commented Jan 7, 2019

Test run: FAILED

Summary: 1 of 7 test jobs failed
Build number : 2
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-GCC_ARM

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 7, 2019

We are experiencing CI node failures, few jobs were aborted. We are investigating, will restart the jobs once fixed.

cc @ARMmbed/mbed-os-test

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 7, 2019

Ci restarted

@mbed-ci
Copy link

mbed-ci commented Jan 7, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 3
Build artifacts

@0xc0170 0xc0170 merged commit 8c55b0a into ARMmbed:master Jan 7, 2019
@VeijoPesonen VeijoPesonen deleted the events_shared-stacksize_2K branch January 8, 2019 06:47
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.

5 participants