DeepStack icon indicating copy to clipboard operation
DeepStack copied to clipboard

CPU resource consumption while idle

Open wadebenson opened this issue 4 years ago • 6 comments

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

wadebenson avatar Mar 13 '21 05:03 wadebenson

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

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

jaredmcqueen avatar Jul 14 '21 04:07 jaredmcqueen

+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

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..)

ocsele avatar Sep 02 '21 12:09 ocsele

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 .

+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.

Shreyas-R avatar Nov 28 '21 15:11 Shreyas-R