-
Notifications
You must be signed in to change notification settings - Fork 7.4k
CivetWeb HTTP Sample - reduce RAM usage #28376
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
CivetWeb HTTP Sample - reduce RAM usage #28376
Conversation
@erwango Please review and test it. |
add "Fixes #21179" into your commit message |
@Nukersson I'm not able to build
This isn't linked with your PR, nor the board. I'm seeing this also on master and on other board. Do I miss something ? |
Thanks for the testing. Yes, you're missing latest civetweb. Just add it to west.yaml file and provide west update. This change comes with my other PR (see #28323). Sorry, I did not expected this error in this case. If you want we can skype - then I will give you more explanations. Please let me know your test result of this PR. |
59656b0
to
9aadfbd
Compare
@erwango I've just added updated west.yml file and corresponding PR for it. Thus, compiling this PR should work. |
9aadfbd
to
6295ab2
Compare
Done |
I'm not able to test, but I can confirm the reduction of memory consumption.
After:
|
Under |
Server doesn't start indeed, but I'm at home with limited test possibilities, so I haven't checked much more. |
Probably following advice would be helpful for you: My observations shows, that civetweb server samples needed too much time to start up (sometimes about > 30 sec.). This behavior can be seen on current master's branch civetweb implementation and also on implementation of this PR. P.S.: The fastest browser on my MacBook was Chrome. The Safari needed much more time to load pages from embedded CivetWeb server on my NUCLEO-H745ZI-Q board running @480MHz. Mozilla were not properly tested by me. |
6295ab2
to
e353a82
Compare
Had some more tries today, but can't connect to the board anyhow. I don't blame the samples though, as heavily controlled corporate machines might now help. |
Have you tested this PR on dev board connected to your local machine's Eth port, s.t. you can provide proper IPv4 to your board? If you want I can give you support over TeamViewer or so. Or we can Skype anytime tomorrow or today evening. P.S.: My board runs connected to my local network router. |
@lochej Can you test the sample also please? |
@Nukersson I performed a I changed the IP config to accomodate for my static IP local ethernet link settings:
So far so good, the sample runs fine and displays the CivetWeb sample for each routes correctly: Also network performance is pretty good:
Edit: |
@Nukersson, I finally made it on nucleo_f429zi.
|
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.
LGTM, Works on Nucleo-H743ZI
@Nukersson Thanks to this PR. I'm adding the V2.5.0 milestone as this doesn't exactly fit the criteria to be merged in V2.4.0 release stabilization period (not strictly a "bug" fix). |
I am very happy. Thank you for testing it also. Yes, I am agree - it should be merged into v2.5. |
a39a1aa
to
0549fcc
Compare
���@erwango Have you observed ping between system startup and ping answer on your F4 board? How much time does it took, if yes? |
No, I haven't. If finding spare time today, I'll have a new try, but do not rely on it. |
19264aa
to
13cce24
Compare
@pfalcon @tbursztyka Please provide review. |
13cce24
to
906d7ed
Compare
996a9eb
to
fedc4c2
Compare
abef31b
to
5fa3152
Compare
adjust configuration so that civetweb uses less memory fixes zephyrproject-rtos#21179 Signed-off-by: Alexander Kozhinov <[email protected]>
5fa3152
to
2092095
Compare
Reduce RAM memory usage by the CivetWeb HTTP sample
This PR solves #21179