in Education by
I am using gunicorn with two worker to run a Flask API for deploying an ML model. And I open Htop and press F5. It show like below: and I expand process with PID 246598. It show like below: I wonder that are child processes with PID: 247243, 247161,... is actually child threads of father process with PID 246598? And I see that these child processes use 0.2% MEM each, so each of them actually use 0.2% MEM or only the father process use 0.2% MEM and other child processes don't use that much. Because I scare that if Gunicorn clone identical processes so many times like that, it would use so many ram. Thanks you so much! JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
I would suggest using the free command to see the total used memory on the machine before and after starting the server. Looking at things like top can be misleading because a lot of the memory is shared (cloned) between threads or even processes and shared libraries. If you really want to dive deep, cat /proc/meminfo to get super detailed stats on all memory usage in the system like kernel caches, and do a before and after server startup comparison. And yes linux is annoying because many tools don't distinguish threads vs processes... a thread on linux is just a process with a few tweaks, both are started by clone(2)

Related questions

0 votes
    I have written an application which does lots of calculation on huge floating point numbers that makes the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    My CPU usage is 100% most of the the time in Windows Server 2008-R2 with my own vps, vmware, ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 4, 2022 in Education by JackTerrance
0 votes
    I need to react in a main process to random events happening in a child process. I have implemented ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 27, 2022 in Education by JackTerrance
0 votes
    Differentiate between process and thread?...
asked Jan 19, 2021 in Technology by JackTerrance
0 votes
    I was asked below two questions in an software engineer interview but could not answer. I did goggle search ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 2, 2022 in Education by JackTerrance
0 votes
0 votes
    Why modern computers contain both Dynamic RAM (DRAM) and Static RAM (SRAM)? Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    c) A computer system was designed to have a good latest processor and I/O devices, however the designer of the ... in support of your Select the correct answer from above options...
asked Nov 28, 2021 in Education by JackTerrance
0 votes
    What are router command that is used to display RAM content and NVRAM Content?...
asked Aug 22, 2021 in Technology by JackTerrance
0 votes
    Multiple containers running on a single machine all share the same resources such as the operating system kernel for instant boot and ... ? 1. True 2. False 3. Doesn't make sense...
asked Jun 22, 2021 in Technology by JackTerrance
0 votes
    7-RAM contains BIOS of system – (2 POINT) 1 TRUE 2 OTHER Select the correct answer from above options...
asked Dec 29, 2021 in Education by JackTerrance
0 votes
    Q 14. RAM is an O An Input Device O Memory Device O Display Device O 0 An Output Device Select the correct answer from above options...
asked Dec 23, 2021 in Education by JackTerrance
0 votes
    निम्नलिखित में से कौन माध्यमिक (secondary) भंडारण उपकरण का उदाहरण नहीं है? Hard disks (हार्डडिस्क) RAM (रैम) Magnetic ... ) CD(सी डी) Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    When the computer is swichted on, the content disappear from RAM.Is it true Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    increasing the RAM of the computer which increase the performance of the computer ( True or false) Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
...