-1

I'm developing an app (Python) which uses face recognition and OpenCV libraries. I can see even after the app finished processing one of the cores keeps running full on for another 10 mins or so.

Python has built-in garbage collection to keep up with unused variables and to wipe them out to free memory.

Are there any extra steps I may need to do ? I can't have this in production.

below I'm sharing CPU consumption as well as overview of process manager which isn't revealing any outstanding heavy processes.

one core is running 100% for about 10 mins after finished using features

Processe manager isn't revealing any outstanding CPU consumption

Thank you.

Mark
  • 101
  • 1
  • 1
  • 5

1 Answers1

0

Clearly, your system monitor doesn't show everything.

Use top or one of its alternatives to see which process is using your processor.

BTW it's strange, that the loaded processor is not cycled by kernel. It should be as one of the processors is loaded then is periodically changed to the next in the queue.

tansy
  • 141
  • 3
  • I find it odd too. I'm gonna install `top` to see if it will give me some insight into what's happening. – Mark Apr 25 '21 at 19:15
  • OK joke is on me because it's `timeshift`. It's still weird though because it supposed to be running only once a day. – Mark Apr 25 '21 at 19:19
  • I don't know what you're using but top is super standard and never seen it not installed "onboard". – tansy Apr 25 '21 at 19:31
  • Yeah I didn't know it already came with Ubuntu. I just typed in `top` into terminal and it showed me that `timeshift` was eating up one of my cores periodically. We learn every day, don't we ? – Mark Apr 25 '21 at 19:39