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

High CPU usage with version 0.3.0 #6

Open
MortenKoppel opened this issue Jan 16, 2023 · 2 comments
Open

High CPU usage with version 0.3.0 #6

MortenKoppel opened this issue Jan 16, 2023 · 2 comments

Comments

@MortenKoppel
Copy link

It seems that python consumes most cores of any machine. Is it by design or might be a bug?

Screenshot where kiirkirjutaja python takes 1400% CPU (Intel Xeon E5-2680 v3):
top_python

The startup command is similar to the following:
docker run --shm-size 20GB --name kiirkirjutaja-test --rm alumae/kiirkirjutaja:0.3.0 python main.py --youtube-caption-url http://upload.youtube.com/closedcaption?cid.... rtmp://....stream

@alumae
Copy link
Owner

alumae commented Jan 16, 2023

It's not by design. Will investigate.

@alumae
Copy link
Owner

alumae commented Jan 20, 2023

Reproduced the problem. Workaround is to start the container using --env OMP_NUM_THREADS=1 switch, e.g.

docker run --env OMP_NUM_THREADS=1 --shm-size 2GB --name kiirkirjutaja --rm -d -t alumae/kiirkirjutaja:0.3.0`. 

Will make a new image that sets this automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants