SQL Server Blog

Memory Prices Changed – Have Your SQL Servers?

Psst – My services are likely more expensive than the memory your SQL Server needs and wants. Your CIOs and Directors need to stop thinking they are buying servers and components in 2004, or even 2010. I do all sorts of consulting gigs for all different reasons, but a lot of tuning gigs and wellness check findings lately could have been avoided (or delayed) if the “deciders” at companies diverted just a little of their services budget towards their capital budget… That’s what we’re going to talk about today – SQL Server Memory – well the prices anyway.

Evolution of Memory & Storage Prices

Not your SQL Server memory shopping list, I hope!
Not your SQL Server memory shopping list, I hope!

I’m still sort of young at 34. In High School, I was in the class of ’97. In 1997, memory prices were somewhere around $3 per MB.. Capacities were lower  and prices were higher. To get a machine with 4GB of RAM back then (Forget the machine price, that would have been a big setback by itself) you would have probably spent somewhere around $12,000. A “decent” consumer harddrive back then would have cost you somewhere around $100/GB or $400 for a slllloowww spinny, rusty-metal 4GB Hard Drive..

Today?  That same hard drive spend could probably get you two decent SATA 6 SSDs at about 256GB each and you can throw them in a mirror to present one fault tolerant drive. Over at Crucial that same memory budget could get you somewhere around 1TB of RAM – though you’d probably be better off just buying a new server, putting 96GB of RAM in it, decent processor(s) and maybe put some SSD drives in it – for about the same price.

I’m not going to play the comparison game here with different years – go look at the links I shared above. Look at the charts. Memory and Hard Drive space are less expensive.. But.. They aren’t just less expensive. The performance changes at an exponential rate. Just 13 years ago 15k drives were new and fast.  Today just one lonely SSD can blow away a handful of drives from 2000 or even 2010 in most tests.

This Isn’t News

I know.. I know.. You probably think I can file this in the “obviously!” category like my post on how SQL Server join syntax has changed… I cannot tell you how often I still bump into servers that have a lot of data on them, with pitiful amounts of memory on them (and by pitiful I mean 2013 pitiful – 8GB, 4GB, etc.) and they are suffering some performance issues because of this. The point is – it isn’t obvious. Not to the folks making decisions.

You see, though, when I went off into consulting, I sort of thought that I’d get beyond those sort of discussions. Surely out in the flashy world of big challenges and serious performance tuning gigs this wouldn’t ever rear its head, would it? Well.. It does.

Aren’t you yelling at your clients right now? No.. I’ve had this conversation with some of my clients and they’ve moved ahead in their thinking on hardware, they realize that they are pricing the heavy hitting, pretty nice complete systems (HBAs/NICs/sometimes OS, sometimes not) in the $15k range instead of the $30-45k range that higher end servers were priced at even 6 years ago. They realize that giving their servers the memory and disk performance they need is easier than it ever has been.

I’m talking to the folks who haven’t hired me.. The folks who have great staff asking for memory and disk and better IO performance.   To the managers who hear these requests but then start getting scared because they fear killing the budget with memory and drives – or even new servers with better CPUs.

You don’t need to be afraid! Go to HP’s site. Go to Dell’s site – whoever you use. Spec out a “dream server” and load it up with RAM, load it up with internal SSDs and thumb your nose at the SAN team and say “we’ll manage just fine with our umpteen and a half IOPs, thanks..” What’s the price? Not as bad as you thought, right?

SQL Server and Your Users Changed Too

We keep more data than ever before. We have more customers than ever before. People are using smart phones that have more processing power than computers did when I was in High School (and that wasn’t that long ago as we’ve already established). People are on social media. People are impatient. Latency is measured in ms not seconds. We have fast internet connections everywhere.. My phone’s data connection puts the modem I used to connect to BBSs as a nerdy geeky teenager to shame. Your customers are impatient and we should be giving our database servers the resources they deserve. The manufacturers of DBMSs are changing also. They are realizing the lay of the land and have been making their products ready to live in a world where great memory is cheaper than amazing help. New offerings like SQL Server’s Hekaton are built around this concept, too. Do yourself a favor and take a look at your hardware. How old is it? Planning on upgrading soon anyway? Why not pull out the stops and spend an extra couple thousand dollars or so and look at the memory and drives you are throwing in your next server..

You Still Need SQL Server Consultants

Now.. This isn’t my way of saying I’m becoming a RAM reseller or anything. I had this discussion with a friend of mine and also a SQL consultant (who, like me is an MVP but unlike me is a MCM – great guy!), Brent Ozar (that’s the cool thing in this space, btw.. you can link to the “competition” it’s okay because we’re all in it together.) We were talking about this in the context of a mutual client and some recommendations there. Brent said he pretty much just tells folks to go for a 128GB server and allocate 64GB to SQL (Max SQL Standard edition can hold) nowadays. My first gut check was, “really?” but when you look at the pricing, it isn’t actually that bad of a move. If not 128GB, it is at least time to get out of the mindset of scraping by with your memory calculator measuring in 4GB increments.

This doesn’t mean folks like us don’t want clients. It doesn’t mean that your developers should have hardware thrown at their problems or that you don’t need that wellness check. It just means that in 2013, hardware shouldn’t really be as much of a concern. It also may mean – and this may come out wrong – that throwing hardware at a problem as one, initial, phase of an attack may not be that bad of an idea (ducking.. it’s okay I wanted to throw something at me right there too). I am not an advocate of it, and it will eventually not work so you should address those kinks. What I am saying, though, is if you are running a DB that needs some performance tuning and development help and you are running on a server built like it was still 2005 – you might consider looking around at the hardware available nowadays, while reaching out for that helping hand on the performance tuning side.  2005 me would have laughed at 2013 me if I reported back on the 1TB to 2TB of memory I just helped a client upgrade their SQL Server to. That was “expensive” but by memory standards in 2005? Not really.

Mike Walsh
Article by Mike Walsh
Mike loves mentoring clients on the right Systems or High Availability architectures because he enjoys those lightbulb moments and loves watching the right design and setup come together for a client. He started Straight Path in 2010 when he decided that after over a decade working with SQL Server in various roles, it was time to try and take his experience, passion, and knowledge to help clients of all shapes and sizes. Mike is a husband, father to four great children, and a Christian. He’s a volunteer Firefighter and EMT in his small town in New Hampshire, and when he isn’t playing with his family, solving SQL Server issues, or talking shop, it seems like he has plenty to do with his family running a small farm in NH raising Beef Cattle, Chickens, Pigs, Sheep, Goats, Honeybees and who knows what other animals have been added!

Subscribe for Updates

Name

2 thoughts on “Memory Prices Changed – Have Your SQL Servers?”

  1. Great post, and totally relevant for people who are buying new hardware and planning to skimp out on cheap aspects like memory.

    But if I have a huge infrastructure of older machines that won’t take more memory (or are limited to certain DIMM capacity), that doesn’t necessarily help, if I’m not already in the market of replacing them. First the cost of replacing the machines and next the effort and potential downtime of migrating to the newer machines. Also more memory doesn’t always solve all of the performance problems, especially if your database is bigger than the highest capacity server you can afford.

    Depending on edition, the cost of hardware is a mere drop in the bucket compared to licensing fees. But there are still some non-financial costs involved that can’t be ignored.

    Reply
    • All great points Aaron. I’m not saying that memory alone fixes every problem – there are many that just can’t be solved this way. And even many of the problems that can be solved that way shouldn’t be 🙂

      I also agree – older infrastructure may pose a problem – but I say if you are on servers that are more than 3-5 years old, you’re missing out on more than just memory improvements. It tells me that customer is probably also on an older version of SQL, they are probably not on the best processors (which have also made amazing and substantial improvements in the past several years), don’t have the fastest bus speeds, can’t take advantage of the latest and greatest in storage technologies and are probably out of hardware support or heading there. I think the days of buying hardware that you want to last for and more than 3-7 years in the data center are probably gone – unless you are buying pretty big, and even then there are arguments to be made. And yes – migrations are a pain – but migrations are also a great opportunity to fix all the mistakes you didn’t know you made on that old OS and old hardware 🙂 I like migrations. I wouldn’t make one just for memory alone (unless you were just way under built and couldn’t increase memory) but that is typically not the only reason.

      Lots of costs involved, rack space to consider, there is virtualization to consider nowadays, there is resource time, downtime, etc. So you make great points and I thank you for those, sir 🙂

      Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Share This