johnolafenwa / DeepStack

The World's Leading Cross Platform AI Engine for Edge Devices
Apache License 2.0
692 stars 108 forks source link

CPU resource consumption while idle #96

Open wadebenson opened 3 years ago

wadebenson commented 3 years ago

docker stats shows 7a562f8019ed deepstack 10.09% 189.2MiB / 7.75GiB 2.38% 5.33kB / 1.74kB 151MB / 4.1kB 15

This should only be using resources when processing a request. 10% CPU when idle is really high.

I am using the latest docker image. deepquestai/deepstack

somebody-somewhere-over-the-rainbow commented 3 years ago

can confirm issue on cpu version of docker image (latest) - also it creates a zombie redis process (do not know if this is related though). my setup: latest docker on ubuntu 20.04.1 / Xeon E-2224G / 32GB Ram

jaredmcqueen commented 3 years ago

+1 redis defunct. I run in kubernetes and don't even need the load balancing, can we remove entirely?

somebody-somewhere-over-the-rainbow commented 3 years ago

+1 redis defunct. I run in kubernetes and don't even need the load balancing, can we remove entirely?

agree should be a separate, optional container

ocsele commented 3 years ago

hi, is this problem solved? I also see around 6-10% CPU utilisation during idle state (Ubuntu 20.04, latest docker, latest CPU deepstack image).

If this is not solved, is there anything possible to do to reduce this idle load? (perhaps some parameters to set in ENV during starting the container, etc..)

somebody-somewhere-over-the-rainbow commented 3 years ago

I was not able to reduce the load with any ENV variables ... does also not seem fixed yet.

ocsele ***@***.***> hat am 02.09.2021 14:20 geschrieben:

hi, is this problem solved? I also see around 6-10% CPU utilisation during idle state (Ubuntu 20.04, latest docker, latest CPU deepstack image).

If this is not solved, is there anything possible to do to reduce this idle load? (perhaps some parameters to set in ENV during starting the container, etc..)

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/johnolafenwa/DeepStack/issues/96#issuecomment-911614202 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYW57ADDGYYDVS4QSLUKY3T75TYJANCNFSM4ZDORYJQ .
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .
Shreyas-R commented 2 years ago

+1

I'm running latest CPU version of deepstack on Odroid HC4 ARM64 SBC. While no requests are being made to deepstack, it'll still be consuming 8-12% of CPU. Here's reference from HTOP htop

Edit: Also, noticed redis-server consuming 2-5% of CPU further in idle. So, totally deepstack is consuming 10-15% in idle. I initially thought it might be due to a previous API request but restarting the docker container also doesn't solve the issue. As soon as deepstack container starts, it starts consuming CPU without any API request as well.