Question About LAMP Processor Choice

l3ll10tt

Junior Member
Jul 18, 2014
5
0
16
I'm thinking about building a cheap server for some LAMP development. I was trying to decide between a FX-4300 and Pentium G3450. The AMD would go in a AM3+ motherboard so I could upgrade later, and the Pentium will go in a H97 motherboard for the same reasons. All the rest of the configurations are the same.
 

v8envy

Platinum Member
Sep 7, 2002
2,720
0
0
Wife's starting to complain about the AMD Phenom 820 in her LAMP dev box, so I've got some of the same kind of thinking going on.

I started with looking at the G3258 ($60 at microcenter) and the cheapest 1150 board I could find for a total of about $100. AMD is straight out, for single core performance even the Pentium G620 is faster than the FX-4100, the G3258 should be about 30% faster -- and that's before overclocking. I'm not sure the FX-4100 would be a perceptible improvement over the 820 she's starting to complain about.

However, after noodling it over I'm just not going to go there. Microcenter has some decent cpu + board deals, so I'm just going to go all out and splurge for a 4690K and Z97 board for her. Not because I think it'll work that much better, but because when it's invariably not enough I can say "well, at 4.5 ghz there's not much faster you can buy."
 

jpiniero

Lifer
Oct 1, 2010
14,842
5,457
136
People actually overclock their development machines? That's just a bad idea.
I'd say i3 tbh.
 

Cerb

Elite Member
Aug 26, 2000
17,484
33
86
Why not just get an SSD and another 8+GB RAM for a desktop? With a good desktop, you shouldn't need a separate physical computer.

<- E3-1230V3, 16GB RAM, M500 480GB
 

Cogman

Lifer
Sep 19, 2000
10,278
126
106
Why build a server when doing some cloud hosting is crazy cheap now-a-days.

For example, you can get a pretty decent server for just $5 a month at

https://www.digitalocean.com

Even the google app services is pretty darn cheap

https://cloud.google.com/products/


That being said, if you are dead set on a server I would try and balance # of cores with price. More cores is probably a better thing to code against than faster cores.
 

v8envy

Platinum Member
Sep 7, 2002
2,720
0
0
i3 is $140, not a stretch from there to a higher clocked and unlocked i5 for $199. And yes, plenty of people overclock their dev boxes. If you don't go nuts with the OC the productivity gains from a 20% faster compile or load add up. I'm not talking about setting an OC record, I'm talking about being way within the engineering safety margins of the chip. Production server or continuous integration server? Yeah, bad idea. Dev box? No problem.

In her case she also uses that box not only as the server but also the client. SSD won't do anything but speed up load times, with any amount of RAM at all the entire server, OS, php and every file worked on will be in the RAM disk cache.

Using the existing desktop advice is sound though. I use Windows in a VM for the few times I need to run Windows on my machine, I don't see how doing the reverse (running Linux guest on a Windows host) would be bad if you have a manly enough desktop.

EDIT: php dev is a single core sort of activity. When CPU is required I saw one core at 100%, other 3 idle. 99.9% idle, but that .1% sometimes takes several seconds!
 

Headfoot

Diamond Member
Feb 28, 2008
4,444
641
126
So is it a server, or a developing environment, or both? If it does both then RAM and IO are going to be most important, given that the bottlenecked part of process is usually the DB IO.

The best solution though is to profile your code and see what is holding you back. We don't know your application. If its basic framework-based web dev, the DB will be holding you back 90% of the time you're bottlenecked. Processor is going to be pretty irrelevant between those two choices, get whatever is cheaper and allows a good amount of RAM (16gb probably)
 

v8envy

Platinum Member
Sep 7, 2002
2,720
0
0
That's a very good point, how big is your typical development data set? For most PHP dev I've seen the databases are quite small, on the order of a couple hundred megs. If that's true than RAM performance and CPU performance will be your bottlenecks (all the disk pages for your whole DB will be cached in RAM, Linux uses all unused RAM as a read-through disk cache). Relational ops with all the data in RAM are sorts and copies, which is limited only by CPU and RAM bandwidth.

For my wife's app the data set is several gigabytes, but everything still fits into the 15 or so gigs of free RAM. Relational ops, whether indexed or table scan backed are what soaks up all available single core cycles for lengthy operations. PHP and Apache themselves use next to no resources compared to that, and linux (the kernel) runs on some amazingly feeble hardware.

If your app isn't doing very much DB work then you'll be good with something as low oomph as a raspberry pi as your server. http://www.penguintutor.com/linux/raspberrypi-webserver is a thing.

So, your answer is: fire up a VM with 4 to 8 virtual cores and varying amounts of RAM. Run your app. Do some dev work and use the plethora of monitoring tools to determine whether your bottleneck is RAM, I/O or CPU (and how many). Based on that either buy whatever is cheapest (pi or cloud included) or decide where you need to spend the $: start I/Os (SSD), memory or CPU.
 

Headfoot

Diamond Member
Feb 28, 2008
4,444
641
126
Yeah, the bottleneck can shift very quickly depending on whether your dataset fits in memory, if its mostly reads, mostly writes, etc...
 

l3ll10tt

Junior Member
Jul 18, 2014
5
0
16
I'm just trying to learn PHP & java script, possibly some ruby. So I wanted a development server that I could learn how to build applications & things.
 

jhu

Lifer
Oct 10, 1999
11,918
9
81
I'm just trying to learn PHP & java script, possibly some ruby. So I wanted a development server that I could learn how to build applications & things.

In that case, can't go wrong with either. You could also save your money and run all that on your current computer and have that do both client and server duties.
 

Headfoot

Diamond Member
Feb 28, 2008
4,444
641
126
If you're just learning, nearly anything will do.

In fact, I advocate that you intentionally use the slower server. When you have a huge hardware budget it allows you to get sloppy in optimization. When I started learning I wrote all my code on a 10 inch netbook running the original atom and an old pentium 4 laptop for the server. I was learning web development like yourself. Ruby, perl, python, some .net.

Running on slower stuff allows you to see when the program is slowing down a little better, imo. You'll notice when a CPU heavy routine causes a particular page to load slower than the others and you can address it, as opposed to waiting until it gets hit with a number of users and then the performance issues creep up after you've put it out somewhere less accessible than your development environment.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |