Processor being displayed incorrectly

000

Well-Known Member
Jun 3, 2008
242
8
68
Hello.

This is my NEW server:
aaaa.png


and this is my OLD server:
aaaa.png


OLD server = cPanel + CentOs 6 + TomCat + 80 webs...
NEW server = cPanel + CentOs 7 + 0 webs, (only one domain to tests...)

I run "My_Script_test_speed.php" in both servers...

The result is very strange to me:

OLD SERVER = 2.25513386726
NEW SERVER = 2.87969398498

( seconds )

... how this is possible!! ??

2 CORE + 80 webs + TomCat + CentOs 6 with Intel(R) Xeon(R) CPU X3440 @ 2.53GHz
vs
8 CORE + 0 webs + CentOs 7 with Intel(R) Pentium(R) CPU G6950 @ 2.80GHz


I am very confused...

1// is possible check health of processor ?
2// some script to test processor from SHELL and no from PHP ?
3// is possible processor mistake ?
4// by logic, Xeon X3440 with 8 CORE; I am mistake ?


Thanks by your help to clarify this doubts.
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
457
113
UK
cPanel Access Level
Root Administrator
Probably not directly related to cPanel

You would possibly get better advice from a specialist forum that deals with benchmarking.

I wonder if the new server has the Spectre/Meltdown microcodes applied that are reported to slow the processor speed down ?

And you might be interested in the full spec for the X3440 that can be found HERE
 
Last edited:

vacancy

Well-Known Member
Sep 20, 2012
410
127
93
Turkey
cPanel Access Level
Root Administrator
There is a problem with the test program you are using.

X3440 3 times better processor. (multi core power)

What kind of disk is used on your old and new server?
 
Last edited:

000

Well-Known Member
Jun 3, 2008
242
8
68
This is more of a question for your Host providing the hardware don't you think? :)
no, I think maybe this old procesor can do tested with some commands...

By this I write here, no in "support - company"
 

LucasRolff

Well-Known Member
Community Guide Contributor
May 27, 2013
141
84
78
cPanel Access Level
Root Administrator
The script you're using is possibly doing a test on a single core, and because the frequency of your CPU is 2.53Ghz on the new one and 2.80Ghz on the old one, you'll end up with slower single core performance.

snaps.trollcdn.com/LZPPo8A8CKhfNw1ACZjCLpEeACsf8eBjBHgLFQJc2e.png
 
Last edited by a moderator:
  • Like
Reactions: vacancy

000

Well-Known Member
Jun 3, 2008
242
8
68
I wonder if the new server has the Spectre/Meltdown microcodes applied that are reported to slow the processor speed down ?
thanks.

¿what command show this info? ( I unknow all about this )
 

000

Well-Known Member
Jun 3, 2008
242
8
68
What kind of disk is used on your old and new server?
thanks.
Here info:

NEW server:
aaaa.png

OLD server:
aaaa.png

but becouse "My_Script_test_speed.php" run only in RAM (memory),
I believe this no is important, what do you think?
 

000

Well-Known Member
Jun 3, 2008
242
8
68
The script you're using is possibly doing a test on a single core...
thanks,
excellent point!.

That makes sense to me, how I can confirm that?
when the 8 cores is useds?
I can force some config to all time the 8 cores is useds?



"My_Script_test_speed.php" samplely run:

PHP:
       $k = 100000000;
       $tiempo_inicio = microtime(true);
       for($i = 0; $i < $k; $i ++);
       $tiempo = microtime(true) - $tiempo_inicio;
       echo ceil($tiempo);
in this time OLD server: 2.22271609306
in this time NEW server: 2.8849511146545
sunday 08:30 ( time USA ) = little requests, little trafic

remember
NEW server = CentOs 7 + cPanel + 0 webs
OLD server = CentOs 6 + cPanel + TomCat + 80 webs



thanks by your help with this...
 
Last edited:

LucasRolff

Well-Known Member
Community Guide Contributor
May 27, 2013
141
84
78
cPanel Access Level
Root Administrator
Apparently I have to attach images, and can't use the "Image" button in the forum :) oh well, so my previous image is attached to this post.

thanks,
excellent point!.

That makes sense to me, how I can confirm that?
when the 8 cores is useds?
I can force some config to all time the 8 cores is useds?



"My_Script_test_speed.php" samplely run:

PHP:
       $k = 100000000;
       $tiempo_inicio = microtime(true);
       for($i = 0; $i < $k; $i ++);
       $tiempo = microtime(true) - $tiempo_inicio;
       echo ceil($tiempo);
You're running a PHP script, which is single threaded. If you want to benchmark 8 cores, run the script in parallel using for example parallel.

With that said, the benchmark you're doing is absolutely pointless, there's no good coming out of it. You're basically counting how fast the CPU can loop through numbers.

Your single threaded performance will be worse purely based on the frequency of the CPU (2.53Ghz vs 2.80Ghz), however, you're having a total of 8 threads to work with, so your server will be able to handle more traffic.

Do keep in mind, that both CPUs are quite ancient.
 

Attachments

000

Well-Known Member
Jun 3, 2008
242
8
68
Hi @000 let us know if the advice provided helped you...
Oh sure!

this info helpme to clearify mi "mental issue" :)

I was mistake becouse my "My_Script_test_speed.php" is obsolet to test CPU, "My_Script_test_speed.php" only test ONE CORE each time...

However, [2 core = 80 webs + TomCat] vs [8 core = 0 webs] and winner (over 1 CORE) is... {2 CORE with 80 webs!!!}

My mind no can process this.... xD

May be I need do:

blog.programster.org/ubuntu16-04-cpu-benchmarking

what do you think?
is correct do this over a server cPanel?
know you other [test-CPU-program]?


regards
 
Last edited by a moderator: