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

Video playback is slowly raising the CPU load and also releases cpu ressources slowly after the video has stopped #487

Closed
szaimen opened this issue Apr 30, 2020 · 3 comments
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working needs info Not enough information provided performances Performances issues and optimisations

Comments

@szaimen
Copy link
Contributor

szaimen commented Apr 30, 2020

Describe the bug
Video playback is slowly raising the CPU load and also releases cpu ressources slowly after the video has stopped

To Reproduce

  1. mount a local external storage to a user
  2. upload a mp4 file to nextcloud with around 200MB and 1min length
  3. open that file with the viewer app and play it
  4. see the cpu load of the server slowly raising; it is doing this until the video has loaded completely in the background and the viewer window was closed. (it seems to load the complete video in the background also if the window was already closed).

Also it releases cpu processes very slowly after the video was closed - it needs around 2min to come back to normal load.

Expected behavior
the video playback with the viewer shouldn't considerably effect the cpu load of the server.

Screenshots
image
image

Desktop (please complete the following information):

  • OS: Win10
  • Browser chromium based browser
  • Version 81

Additional context
That problem doesn't appear when not using external storage. it is then only at around 2.0 max which is okay.

BTW: I have tried to disable the viewer and play it with the files_videoplayer and the cpu load much lower and not raising.

addditional info: With the viewer the php-fpm count seems to slowly raise.

Server:
ubuntu 18.04
php 7.2
nextcloud 18.0.4

@szaimen szaimen added bug Something isn't working 0. Needs triage Pending approval or rejection. This issue is pending approval. labels Apr 30, 2020
@skjnldsv
Copy link
Member

Hey! :)
I guess we would need an extensive debugging of the php process behind it. I'm unfortunately not the expert for this. I guess this is exactly the same as downloading any big file from nextcloud. I think I saw an issue passing by for this.

Do you have the knowledge for it?

@skjnldsv skjnldsv added performances Performances issues and optimisations needs info Not enough information provided labels Apr 30, 2020
@szaimen
Copy link
Contributor Author

szaimen commented Apr 30, 2020

Hi!

I have unfortunately no experience in debugging php processes.

Is there a good explanation how to do that available so that I can try that out or is there somebody who has the experience to do that and can give me an explanation how to do that or do it himself?

I mean mounting a local external storage folder and uploading a well sized mp4 video to it isn't that complicated, I would say.

@szaimen
Copy link
Contributor Author

szaimen commented Jul 27, 2020

I found out that this happens due to a cifs mount.
I could speed up the loading by a lot through a small change.
So this can be closed, imo.

@szaimen szaimen closed this as completed Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working needs info Not enough information provided performances Performances issues and optimisations
Projects
None yet
Development

No branches or pull requests

2 participants