Could I ask for processor advice, please?

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 3.33 out of 5)
Loading...
By Oliver (AKA the Admin) on 27 comments
in Categories: Just Talking

Hey guys, this is a question for the people with hardware skills :)

Please, if you know stuff about CPUs, hang in there a bit longer, thank you!! ;)

First I explain the context,
And then, at the bottom, I ask my actual question.

The context of my question: the dedicated server on which Hentairules is hosted, among other websites for the family, friends and me, is growing old. Just this morning, the motherboard died and was replaced by the web host, and two weeks ago, it was one of the RAM modules. I have started looking at dedis again, this summer or as september comes, I’ll do the switch.

However, while I trust my judgement for most hardware matters, I have a huge problem to tell the worth of CPUs.
Hearts, cores, threading capability, clock, benchmarks judging this or that… It’s quite complicated – for me.

Worse, you’ll hardly find benchmarks focused on WEB SERVER USAGE.
Because fuck Minecraft or video compression, this is an entirely different sort of activity, serving thousands of requests per second or minute, processing stuff for Apache (yeah, sorry, no nginX, let’s keep things simple and more broadly compatible ^^) and the php fcgi/fpm and mysql engines, helped by cache when possible, it’s not the same, and benchmarks focused on pure computing power might give false advice.

In terms of usage, the current CPU of my dedi is more than half of the time close to (or over) maximum load and I observe the slowdown. I’m confident enough to tell there are no other system specs (ram, mysql fine-tuned config, disk usage, network) causing any sort of bottleneck whatsoever. In other words, you could say that my dedi’s current bottleneck is the CPU, it’s the weakest component for the moment.

I must thus choose a dedi with a CPU that will be at least as good as the current one, and ideally slightly better.

In this context, please, would you manage to tell if:
a Xeon D-1520 (the one in the dedi I got my eye on) would do slightly better than an Opteron 4334 (my current CPU), or not?

Sorry to ask you guys, but me, I simply don’t find reliable information on which I’d be willing to rely before spending hundreds of euros on a regular basis.
Take this google #1 result for instance, it’s so NOT detailed you can’t tell what tests were made, if they were even remotely web server related or if it consisted in trying to compress a video stream or whatever, it only says “Benchmark performance using all cores“, I have no idea if that is reliable or relevant. This other test leaves me nonplussed, each has good points, fucked if I know how it would perform IRL. This third test would tell the Opteron has faster cores if you take them individually but the Xeon has two more cores which should make up for it with a bonus, or wouldn’t it?

As you can see, it’s basically rule of thumb at this point, I should manage to do better than that, so if you have better links for info, or you can explain dumb me how to “decipher” and find the relevant info to judge between CPUs when choosing a dedi, I will be more than grateful :)
This way, maybe in the coming months I’ll choose something entirely different from this one, but then I’ll be able to tell with confidence I’m making the right choice, with your help ;)

(Alternatively, another CPU that this time I know would be much better, but would also imply a significantly superior price, would be a Xeon E3-1270v6 – 4c/8t – 3,8GHz /4,2GHz . I’m not wrong, that one would be significantly better, right, I’m not misreading anything, as there are both more cores, threads and more nominal power? Edit: the Xeon still has a disadvantage, it may have more power per core, 1 additional core and 2 additional threads, it still has much less L2+L3 cache, 9 MB instead of 14 MB, hmmm…. Still, it would be a pity, as the price would be significantly higher.)

Subscribe
Notify of
guest

27 Comments
oldest
newest most voted
Inline Feedbacks
View all comments
Pavlov
Pavlov
5 years ago

I can’t advise you much at the hardware level but I did come across a forum where they were talking about this exact issue. I’ve got a headache right now so I didn’t drill down in the site much, but they seem to have a low asshole-to-geek ratio! Hope it helps.

http://www.webhostingtalk.com/showthread.php?t=1077683

Pavlov
Pavlov
5 years ago

Since my brain was melting like your CPU, I couldn’t really search for specific help. I was actually hoping that the forum itself would be useful to you, so I’m glad you said that! And when I saw at least 2 people apologizing to each other in that thread, I figured it was a good place to start. Although it looks like people here started giving you interactive assistance after I fired off my half-assed attempt!

MiloTheFirst
MiloTheFirst
5 years ago

Here is my two cents

forgive me is this was too obvious but firs and foremost unless you are planning to also buy a new motherboard then you will have to choose the CPU that actually fits in the socket of such motherboard. but well, in case you have some degree of flexibility in this purchase this is what you should know
What you wants for a server CPU is more cores over individual core speed, where you want more speed is in the instant memory cache of the cpu. keep that in mind. while server CPU’s are usually state of the art and more expensive than consumer tier ones, they actually devalue at a more drastic rate, so you could buy a bad-ass top of the line Opteron processor from a couple generations back and aside from maximum clock speed it would be otherwise as powerful as a middle tier ryzen 7 (as far as spec goes) for less than a third of the price… there is a catch though, advancements in microprocessors don’t end up in the hardware, nowadays plenty of jumps in performance are actually brought by algorithm and code prediction technology improvements, which as you might have guessed needs to be compatible with the CPU architecture in order to be implemented. so buying an old yet powerful cpu might end up not being the best option if it doesn’t know how to be the most efficient and up to date with the server infrastructure it is running.

since your server is mostly storage and (as far as i know) not used for high speed data transfer such as streaming. prioritize more core and threads over clock speed, then make sure that the server infrastructure you are running is able to actually exploit the resources incorporated in the CPU, the toolbox might be there but if the software doesn’t know how to use all of them, it might as well not be worth the value.

Invet
Invet
5 years ago

Unfortunately, price is king in the CPU market right now. With the Bitcoin fever still going crazy, everything that’s more than half decent is quite expensive. If you’re still satisfied with your current CPU, you’ll probably find out that the difference in performance is not worth the price gap.

DarriansCard
DarriansCard
5 years ago

Ok, lets keep this simple. Web content is often nothing more than moving/coping file via the Internet. So I would agree that high clock speed is not really that important, however handling thousands of request a does put strain on the memory controller and internal cache. So having a larger cache size and faster memory can improve this a lot. Cores over clock speed should be your focus also as it will divide the work out more. SMT and hyperthreading is nice and all but is not the same as real cores.

What this really boils down to is price( how much is your budget )?, and form-factor( does this need to be in a server blade/rack)?

ps. the IPC or instruction per clock is just over about half on AMD older cpus. This means that if all things being equal (same number of core at the same clock speed) intel is 45% faster, current generation intel is about 3-5% faster for ryzen/epic.

DarriansCard
DarriansCard
5 years ago

IPC and clock speed are not the same thing, to compare it to a motor in a car, clock speed is the rpm’s and IPC is horsepower (a measure of work). IPC is the measure of work done per one clock cycle. In the past Intel has higher IPC and Higher clocks which is why they have controlled the market for so long.

I think the Xeon will do you better, though I am unsure has to how much better it will be. I believe the system memory on the xeon will be ddr4 2133. Can you move up a step to xeon D-1540?

I can understand why your having trouble picking, limited data out there and they seem very close in performance. GOOD LUCK! :)

guest
guest
5 years ago

server need good gpu too right? ppl mining bitcoin use high end gpu

Allan
Allan
5 years ago
Reply to  guest

Nope, not relevant in this case and not relevant in most cases. Bitcoin miners use high end GPUs because modern video cards can do their own processing separate to the CPU and they have a lot of memory which is what bitcoin mining programs require.

Web servers don’t use GPU’s for processing as a rule as the CPU is enough. It is possible in theory and I would assume there are some servers which are configured this way for fairly specific high end processing tasks.

Daemoniak
Daemoniak
5 years ago

Unfortunately, without any additional information on WHY your current Opteron is overloaded, it will be difficult to choose. It is difficult, just looking at CPU load, to distinguish CPU-bound workloads from memory-bound workloads: that is, whether the problem is lack of throughput or cache size. A cache miss may result in the CPU spinning waiting for the memory (one of the use case of hyper-threading is that the other “twin” thread can go to work during this period).

If you have the opportunity, I would suggest trying to use diagnosis tools during the high-load periods (depends on your OS, I am no specialist myself) to check what the exact bottleneck is.

Otherwise, by default these days I would opt for a large cache. Memory access speed did not keep up with CPU frequency, so larger caches help tremendously for most workloads.

So, in order of preference:
1. Xeon E3-1270v6
2. Opteron 4334
3. Xeon D-1520

PS: If the price of the first is an issue, you may consider a fundraiser on HentaiRules ;)

Dafen
Dafen
5 years ago

Beware: in the same regard as frequency in not on its own a factor for choosing, cache can’t be used in comparing 2 CPUs because they are not used in the same way depending on architecture.

Opteron detailled technical sheet
http://www.cpu-world.com/CPUs/Bulldozer/AMD-Opteron%204334%20-%20OS4334WLU6KHK.html

Xeon detailled technical sheet
http://www.cpu-world.com/CPUs/Xeon/Intel-Xeon%20E3-1270%20v6.html

Distribution of cache between L2 and L3 depends on the architecture but basically if your clock is quick enough so that it can process all the instructions and not need the full cache, basically less is still better.

But if you need information to stay in cache for long periods, more is better.

All that being said, the tests I’ve seen seem to indicate the Opteron is better than the E3 so either way, I’d go with the Opteron.

Jamie
Jamie
5 years ago

Hey Oliver,

from what I read from your comments a CPU upgrade will help, but will not solve your issue. Over the 15 years I send on servers, I definitly can confirm something you mentioned earlier: The L2 and L3 Caches are very important if you run multiple threads/processes that switch often.
In terms of CPU the Xeon-E3 12xx V4 upwards are great. If you could get your hands on a E5 that would be golden, but expensive. But seeing the Xeon-D at https://ark.intel.com/de/products/series/87041/Intel-Xeon-D-Processor, well hell yeah!
In your grand scheme it aint about GHz, but cores –> More cores -> more paralell -> less load :-D
Also get some SSD or at least server grade harddrives, especially for the DB and php file reads that does a fair deal.

Otherwise I do not know what kind of setup you have, but I have good expirence with the stack nginx + php7-fgci (way better than php5!!, but you need to check compatibilty). I do not have heavy loads on my personal sites and business stuff is always something different, but I would recommend you a Cache like Redis etc. https://de.wordpress.org/plugins/redis-cache/ cuz this boosts performance a lot if a page can be retrieved from cache, and your posts don’t change much ;-)

Have a blast
p.s. Ever thought about creating your own page type for wordpress?

Jamie
Jamie
5 years ago

Well you could upgrade Debian. Also you could run PHP5 for older sides and PHP7 for newer once. Google for PHP-FPM (best way to squeeze Performance from PHP. FCGI ait that good did a mistake in the above post!)

Also regarding the load on the Server, did you configure the Memory for MySQL etc. right? Because if the DB has not enough memory, it needs to hit the HDD a lot, etc. etc.

By the way if you would like to discuss a setup I’d be happy to spare with you on the topic.

EDIT: Just found the Hoster you are renting the server from and gotta say its a great deal for the Xeon-D price! Consider the Hybrid with HDD and SSD!

Jamie
Jamie
5 years ago

Well you did good in hiding! So I will not tell here!

You got mail :-)

Jamie
Jamie
5 years ago

I did send it to the .com instead of .net …