roleoroleo / sonoff-hack

Custom firmware for Sonoff GK-200MP2B camera
GNU General Public License v3.0
200 stars 45 forks source link

Is my (slow) web performances normal? #145

Closed N0tMy4cc0unt closed 1 month ago

N0tMy4cc0unt commented 1 year ago

I'm having two of this model, looks promising, but web responsiveness is going from 3 to over 30 seconds. By "ewb responsivenes" I'mean time for .sh scripts to execute. It fill like something I'm missing as it should not be this slow (in average 8sec). PTZ responsiveness is OK, I see cameras are start moving shorty (less than 1 sec) after I initiate. Slowness of .sh scripts is most noticeable on pages where I click on "Save" button at the bottom, often it take 8sec to complete save script and then similar time wait for page to acquire new parameters. Is this behaviour normal or there is something I can do? I already enabled swap, disabled motion detection and cloud, load is around 3...

darkxst commented 1 year ago

The shell scripts themselves are quite slow, presumably due to slow file system (sd card) reads, which they do quite a lot of probing for all the different information.

roleoroleo commented 1 year ago

Did you try another SD card?

darkxst commented 1 year ago

Did you try another SD card?

I seen this on both my cams, with a few different SD Cards.

The performance of the shell scripts is generally pretty slow. df is probably the slowest call, this can take 10secs sometimes. but even get_config calls can take 0.2-0.5 secs each.

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.