In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Environment introduction
The server where the client program resides is windows,4 core CPU
The server database server is linux,16 core CPU
Experimental phenomenon
The client has a program window with 5 threads corresponding to the process. The phenomenon is as follows
There are 5 process in the database server, each process consumes CPU 100%. The duration of the first 4 process is 5 minutes, the last process is 3 minutes, and the duration of all the process in the database server is 10 minutes.
The client has a program window with 4 threads corresponding to the process. The phenomenon is as follows.
There are 4 process on the database server, and each process consumes CPU 100%. The running time of the 4 process on the database server is up to 4 minutes.
The summary is as follows:
The client only has 4 cores of CPU. If there are 5 threads, the client can only run 4 threads and then the remaining thread. Each thread has an exclusive core CPU, which takes up the same amount of CPU time. In this way, running 4 threads on the client is half the time of running 5 threads, and running 8 threads is the same as running 5 threads.
But on the database server linux, there are five process,4 process running at once, and then the last process. When the process on the server is finished, the client program is also finished.
The number of threads should first be less than the number of cpu cores on the server, and then it is better to be less than or equal to the number of cpu cores of the client (if it is more than the cpu core of the client, then the client itself is in the waiting queue)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.