![]() Let’s look at the importance of having the right blend of speed and capacity, or faster CPU cores vs. It was clear from monitoring that although the PHP application and MySQL queries needed optimization, the issue was made even worse by the slow CPU single-thread performance. Additional CPU coresĪs mentioned, the server had 18 CPU cores, with a below-average core speed of 2.0GHz. Since PHP processes are executed per-core, a VPS with 3+GHz cores would fit your workload better.įaster CPU cores vs. You have a lot of CPU cores (18) but the core speed is only 2.0GHz. As a result, in addition to other recommendations included in my PDF audit report, the following was also recommended: In fact, during monitoring, no more than 6 – 10 cores were being used by PHP concurrently during peak traffic. With 18 cores on this low-traffic server, the server’s load average remained below 18. This makes your choice of CPU very important! If your web server has concurrent page requests, you’ll also have several PHP processes – each using a CPU core – running concurrently. This is the way PHP was designed to function. However, unlike PHP, MySQL is multithreaded, but that’s another topic. This is also the case when PHP waits for MySQL queries to complete. ![]() Therefore, each page/request is served by one PHP process, and each process locks on to one CPU core. As you may have already noticed, PHP is not designed for multithreading. PHP benefits greatly from CPU single-thread performance.īefore we get to that, let’s look at how PHP uses your web server’s CPU. As mentioned, there were other code efficiency issues, but this article will focus on CPU single-thread performance (CPU core speeds).Įach PHP-FPM process uses a single CPU core. Also, each CPU core took anywhere from 1 to 3 seconds on average to complete PHP requests. Out of the apps you list, there are none that would really show the benefits of the FX8350 over the 3570K.Upon further investigation, I found that web traffic was not enough to activate all 18 cores concurrently. The types of apps that can use the full 8 cores of the FX8350 include video editing, photo editing, modelling and simulation apps.Īlthough it's theoretically true that the 3570K is the better gaming processor, the FX8350 is certainly good enough and you would almost certainly not notice the difference. Games rarely run on more than 4 cores, so the 3570K is the better gaming processor. Software that can use 8 cores (or any more than 4) has a good chance of running faster on an FX 8350. It also means that software that runs on 4 cores or less, will also run faster on a 3570K. The 3570K has better single core performance, meaning that software that runs on only 1 core runs faster on a 3570K than on an FX8350. The FX8350 is an 8 core CPU (actually 8 modules, but no need to explain the difference here), whereas the 3570K is only 4 cores. Some can run on 2, some on 4, and some only on 1. However, not all software can take advantage of it. Modern CPUs have several cores for executing several tasks simultaneously. So there are always going to be some tradeoffs. Of course, some software just prefers the way AMD does things, and some software just prefers the way Intel does things. A lot of games struggle to effectively use more cores to run faster, so the 3570K is generally going to give you better performance. When programs or games are not able to effectively use more cores to run faster, the 3570K is usually faster.īrowsing, watching videos, listening to music - none of that is slowed down by any serious CPU these days. So when programs or games are able to effectively use more cores to run faster, the FX-8350 tends to be faster. The 3570K has significantly better single core performance, while the FX-8350 has twice as many cores. instead of using any number of available cores to run faster. It's important because not all programs or games can just run faster by using more cores some things are going to be limited by the performance of just one core, or just two cores, etc. The single core performance is the performance a CPU would have if you disabled all except one of its cores.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |