-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
CPU time usage by versions 2.0.* #2149
Comments
I'm preparing another config and will post it later.
|
I've created a sample branch with more complex configs here. 2.0For version 2.0.2 config looks like this
Also the whole docker container build environment is located here. 1.4For version 1.4.4 config looks the same, except I use
and a custom CPU time and other metricsI've recorded CPU consumption metrics
|
I'm gonna close this one for now. We identified some performances issues with our new handling of bigarray of floats in OCaml that were fixed with the release of I am still investigation the other report of increasing memory usage. This seems like an increase of "legit" memory usage, i.e. not a proper memleak ala C but somehow a large, increased used of memory on the OCaml side. This will also entail degradation of the CPU usage as the GC has to move and allocate more and more memory but this will be fixed as a side-effect of the underlying issue. |
I think this is still an issue. Simple1.4.4
2.0.3
Result
Some processing1.4.4
2.0.3
Result
Mixing inputs1.4.4
2.0.3
Result
Encoding sample streams1.4.4
2.0.3
Result
Production with a lot of playlists on a remote server1.4.4
2.0.3
Results
|
Note, cpu and memory are different on local environment and on remote server. |
Thanks. I'm reopening this. We switched to a different representation in memory of audio samples with the |
Thanks for these scripts, they are really useful! I have pushed two branches with some optimizations related to memory allocation. Any chance you could try them and report if that helps?
You should be able to simply checkout each branch and do: |
Just done some testing.
|
Thanks for checking it! I think I got to the bottom of it! You will need:
I have applied a shitload of optimizations there. As far as I can tell, the CPU profile is now indistinguishable from the |
Thank you for your attention to this problem. Though I'm looking for |
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. |
Describe the bug
In issue #2146 I noticed that at startup the average cpu time used by version 2.0.*, approximately 1.5-2 times more than 1.4.4.
I used this command
To Reproduce
Expected behavior
I'm not sure if it's expected behavior, or not.
But if the config is more advanced then CPU usage could be a serious problem.
Version details
ubuntu:20.04
in docker2.0.2
Install method
Deb package from liquidsoap ci artifacts at github
Common issues
N/A
The text was updated successfully, but these errors were encountered: