U
U
un1t2019-03-07 11:51:14
Django
un1t, 2019-03-07 11:51:14

Why are only 12 processors out of 24 loaded?

There are 24 processors on the server, but only 12 of them are used.
The uwsgi lists 48 processes, no threads are used.
Config for UWSGI - myproject.ini

[uwsgi]
plugins=python3
virtualenv=/home/myproject
module=project.wsgi
callable=application
pythonpath=/home/myproject
chdir=/home/myproject
processes=48

htop:
5c80d7e3afb8d497833385.png
An example of graphs from a loaded and unloaded processor.
5c80d7ed0fe62462991140.png
There seems to be enough memory.
5c80d7f304d85486144189.png
dstat -v
5c80dacee9072568423380.png
Why is half of the processors not being used?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Victor Ganeles, 2019-03-14
@un1t

And this is not aix for an hour?
They do it this way: The
processor is divided into cores The cores are divided into
threads (it's like hyper trading there, such vCPUs)
So, the first vCPU on each core is loaded there first. When the first one is 80% loaded, the second one starts loading, and so on.

B
Boris Korobkov, 2019-03-07
@BorisKorobkov

If you have a virtual machine, then it's just the hoster that blocked some of the cores for you. Well, or you just configured your virtual machine incorrectly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question