alexbelgium / hassio-addons

My homeassistant addons
MIT License
1.55k stars 217 forks source link

[NextCloud] Addon Slow #350

Closed Neotastisch closed 2 years ago

Neotastisch commented 2 years ago

(Me again, sorry about that)

Well, ive tryed the "original" Addon and this one, i really have to say that the "original" one is way faster...

On the "original" Addon it uses about 7% of the Cpu, but this modification uses 0%, could you please try making it more so it can be faster

image

If thats not possible, you can just close this issue...

Thanks :D

alexbelgium commented 2 years ago

Hi, I see your point but it is hard to compare as 8t is not the same version of the app. Haberda is on v23 and here it is v24 so it is difficult to see if the potential slowness on your system is from the version or the modifications... I don't see what could limit cpu usage expect the app itself! On my aarch64 it works great and fast...

Neotastisch commented 2 years ago

Hi, I see your point but it is hard to compare as 8t is not the same version of the app. Haberda is on v23 and here it is v24 so it is difficult to see if the potential slowness on your system is from the version or the modifications... I don't see what could limit cpu usage expect the app itself! On my aarch64 it works great and fast...

Mhmm is there anyway to demonstrate to you? Maybe I could create an temporary account

Username: test Password: ilikenextcloud Ip: nc.neohome.tk

alexbelgium commented 2 years ago

Thanks, I've connected but actually have a limited user access so can't see the system.

I could still do some tests (your nextcloud vs mine) :

yours mine mine with haberda
Speed of site load 16.27s 14.92s 17.74s
Speed of photos page load 27.17s/26.29s/21.07s 20.07s/12.42s/11.59s 12.54s
Speed of opening the nextcloud manual 17.96s 5.47s 9.20s
SSL support yes yes self signed

The only real speed difference between us seems to be the duration of opening files...

Edit : with haberda's values

Neotastisch commented 2 years ago

Yeah, i cant give you admin access since there is private stuff on it Im pretty sure its not the tunnel since my Homeassistant page loads fast And thanks :D

alexbelgium commented 2 years ago

I've done some tests (see updated table above) but the speed difference isn't huge on my system. However, their lack of user ssl certificates prevents to perform the exact same analysis.

The only thing I see that could impact speed would be some apps that I install by default for nextcloud...

Neotastisch commented 2 years ago

Strange, i guess i have to live with it... My Apps: image

alexbelgium commented 2 years ago

Motioneye is a HUGE drain on resources in my experience... I had to delete it from my system as it made everything so slow and hot...

On my system, I have : adguard home ; Emby ; Filebrowser ; Home Assistant Google backup ; Joal ; Let's encrypt ; MariaDB ; Nginx home assistant ssl proxy ; Portainer ; Qbittorrent ; Repository updater ; Samba NAS ; SSH & web terminal ; Vaultwarden & webtrees

It works very fine with minimal load! But honestly moving from a rpi3 to rpi4b was a big impact on speed

Neotastisch commented 2 years ago

The problem is that i have a camera with motion detection on my system, im currently using an rpi3b

Neotastisch commented 2 years ago

but i guess i can live without the camera

alexbelgium commented 2 years ago

I loved the idea of motion detection but I removed it from my system due to the impact on resources... However I saw that both my camera (Dahua & tapo c310) have integrations that get the motion alarms from the camera themselves! Therefore I don't have to generate the motion verification on my own system

And I had tons of false alarms with motioneye, whenever it was raining (which happens a lot where I live) it made alarms!

Neotastisch commented 2 years ago

Yeah, i had my camera indoors so no false alarms...

Anyway, i removed MotionEye and i think its a little better now

Thanks for the help :D

alexbelgium commented 2 years ago

Thanks, and have fun with your system!

alexbelgium commented 2 years ago

BTW you can use an automation to activate motioneye at specific times,like when you are away