Requesting New Server at work, need help deciding what's most important

coder_t2

[H]ard|Gawd
Joined
Dec 31, 2005
Messages
1,166
Hey guys, I am requesting for a legitimate server at work to replace the desktop I use now.

Right now I am running Sql Server 2005 on a Pentium-Dual core 2.5Ghz, with 2 GB of ram. I wanted to get your guys' opinions on what is important in this new server.
Background on the server:
Currently only 1 other person logs into this server. 95% of the time I am working with tables under 10 million rows. Sometimes though I work with tables of over 300 million, which really slows my work down on this machine. The server works by pulling data from other servers in the company, and then combining the data into a useful information.

I need to know the following information:

Version of windows server?
How many processors?
How much memory?

Mostly I need help on deciding what balance of processors and memory should I have. If I need to run some statistical information on the current database, let me know.

Thanks.
 
Does your company have a business account with a Tier-1 vendor? (Dell, HP, etc.)
Are you stuck with SQL 2005, or can you do 2008?
Can you go with 64-bit OS?
Are the database hits more write-intensive or read-intensive?

Off-hand, I'd suggest:
- Server 2008, x64
- SQL 2008 R2, x64
- Xeon CPU
- 16-32 GB RAM
- Drive storage and array configuration(s) may depend on your needs, as well as other factors.

As for the SQL installation, there's lots of documentation focused on large scale considerations. Some topics really require they be implemented in the beginning, such as: NTFS cluster size set to 4K, separating logs from databases onto different spindles, etc. If you're not already familiar with these considerations, then certainly look into it; alternatively, hire a contractor to help configure and setup your SQL installation.


And on a related note... Could you explain more about your setup? I'm not sure why you need to remote into the machine for normal business needs; SSMS can connect over wire to remote SQL instances, and most apps have database connection settings that can be adjusted.

Edit: How is the data being pulled in from other servers? Knowing the current arrangement and why things are done a particular way may reveal better options for you.
 
Last edited:
Hey guys, I am requesting for a legitimate server at work to replace the desktop I use now.

Right now I am running Sql Server 2005 on a Pentium-Dual core 2.5Ghz, with 2 GB of ram. I wanted to get your guys' opinions on what is important in this new server.
Background on the server:
Currently only 1 other person logs into this server. 95% of the time I am working with tables under 10 million rows. Sometimes though I work with tables of over 300 million, which really slows my work down on this machine. The server works by pulling data from other servers in the company, and then combining the data into a useful information.

I need to know the following information:

Version of windows server?
How many processors?
How much memory?

Mostly I need help on deciding what balance of processors and memory should I have. If I need to run some statistical information on the current database, let me know.

Thanks.




Q1: Do you need more memory?
A1: What is your Page Life Expectancy? Under 300 sec and you might need to adjust your indexes, table definitions or add additional RAM. (this is a measure of how long pages last in buffer cache; i.e., when new data is loaded into cache, what was the age of the oldest item which was dropped from memory)

Q2: Do you need more cores/faster processor?
A2: Check your waits - do you see a lot of signal waits? CXPacket blocking?

Q3: How does disk i/o look? A lot of Page I/O Latch waits? If so, get faster drives (not necessarily spindle speed as that affects latency more than throughput), a larger array/different RAID setup or more arrays. (putting your tempdb, logfile, indexes, etc on separate arrays can help, depending on your utilization)

Q4: Need more than 32GB RAM? If so, just get Server 2008 Enterprise; Otherwise get Server 2008 Standard.

Q5: Do you use full-text indexing? If so, get SQL 2008 - use compatibility mode if you are require a feature that has been deprecated. (sounds unlikely). Even if not, you should probably go with SQL 2008 R2.


If you want to just blindly throw money at the issue, go with 6-drive RAID-10 arrays of 10K RPM SAS drives (OS and logfile on a 2 drive RAID-1 array of 10K RPM SAS drives), 16GB RAM, 2 quad core i7-based Xeons. (i.e., x5500 or x5600 processors - in many cases, they show significant performance improvements in many SQL operations as compared to same-clockspeed x5400 processors)
 
Does your company have a business account with a Tier-1 vendor? (Dell, HP, etc.)
Are you stuck with SQL 2005, or can you do 2008?
Can you go with 64-bit OS?
Are the database hits more write-intensive or read-intensive?

Off-hand, I'd suggest:
- Server 2008, x64
- SQL 2008 R2, x64
- Xeon CPU
- 16-32 GB RAM
- Drive storage and array configuration(s) may depend on your needs, as well as other factors.

As for the SQL installation, there's lots of documentation focused on large scale considerations. Some topics really require they be implemented in the beginning, such as: NTFS cluster size set to 4K, separating logs from databases onto different spindles, etc. If you're not already familiar with these considerations, then certainly look into it; alternatively, hire a contractor to help configure and setup your SQL installation.


And on a related note... Could you explain more about your setup? I'm not sure why you need to remote into the machine for normal business needs; SSMS can connect over wire to remote SQL instances, and most apps have database connection settings that can be adjusted.

Edit: How is the data being pulled in from other servers? Knowing the current arrangement and why things are done a particular way may reveal better options for you.

This is essentially what I was thinking of getting. Glad to see someone else suggest it. One question, would it be more worthwhile to get 32GB of RAM vs 16GB or 15k RPM drives vs 10k RPM Drives?

I'd say the server is more read-intensive, but it does do a lot of writes.

The current set up was already in place when I came to company. I am more of a developer, so a lot of the DBA stuff I have just sort of picked up along the way, although there is still a lot I don't know. To explain the setup more, essentially we have 3 servers that host the information I need. 2 oracle servers and a DB2 server. This SQL Server typically will query information from oracle1 and oracle2 and DB2 and combine the data. I then manipulate the data to get the information I need. I do a lot of adhoc reports, so I need something new everytime. Although I have localized some non-changing data, such as list of items, buildings, etc. I believe the guy before went with SQL Server because that is what he knew and it works well with Visual Studio. Aside from adhoc reporting, I program a lot of automated reports that format in excel.
 
would it be more worthwhile to get 32GB of RAM vs 16GB

Possibly! See my previous post.


or 15K RPM drives vs 10K RPM Drives?

As I mentioned before, this is definitely a possibility - but there's quite a price premium for 15K vs 10K drives; Assuming a fixed budget, you'll end up with a drive that is ~half the size (and half the platter density)... in the case of choosing a 73GB 15K RPM 2.5" drive vs a 146GB 10K RPM 2.5" drive, you'll even end up with a previous generation drive! So your latency might decrease slightly, but you'll pay dearly in overall throughput.



Like I said before, if you just want to blindly throw money at the problem or validate the decision you already made, it sounds like you're on the right track. If you want to find your bottlenecks, put (your company's) money in the right place and learn some SQL internals along the way, see my previous post.
 
SQL Profiler is also a great tool, and can assist with relevant research to calebb's comments.

The current set up was already in place when I came to company. I am more of a developer, so a lot of the DBA stuff I have just sort of picked up along the way, although there is still a lot I don't know. To explain the setup more, essentially we have 3 servers that host the information I need. 2 oracle servers and a DB2 server. This SQL Server typically will query information from oracle1 and oracle2 and DB2 and combine the data. I then manipulate the data to get the information I need. I do a lot of adhoc reports, so I need something new everytime. Although I have localized some non-changing data, such as list of items, buildings, etc. I believe the guy before went with SQL Server because that is what he knew and it works well with Visual Studio. Aside from adhoc reporting, I program a lot of automated reports that format in excel.
Have you looked into SQL Server Reporting Services?
 
SQL Profiler is also a great tool, and can assist with relevant research to calebb's comments.
Have you looked into SQL Server Reporting Services?

I have used SQL Profiler before. It is good.

SSRS is just for making pretty reports essentially, right? I prefer working in excel so the report recipients can manipulate the data themselves if needed.
 
Possibly! See my previous post.

As I mentioned before, this is definitely a possibility - but there's quite a price premium for 15K vs 10K drives; Assuming a fixed budget, you'll end up with a drive that is ~half the size (and half the platter density)... in the case of choosing a 73GB 15K RPM 2.5" drive vs a 146GB 10K RPM 2.5" drive, you'll even end up with a previous generation drive! So your latency might decrease slightly, but you'll pay dearly in overall throughput.

Ok good to know.

Like I said before, if you just want to blindly throw money at the problem or validate the decision you already made, it sounds like you're on the right track. If you want to find your bottlenecks, put (your company's) money in the right place and learn some SQL internals along the way, see my previous post.

This is basically the point of the thread, to figure out what I need and how worthwhile it is upgrade certain things. So I'll definitely be looking for my bottlenecks over the next couple weeks. Only thing is that the type of queries ran vary so much that I hope I get a good sampling. Thanks for both of your guys' help.
 
SSRS is just for making pretty reports essentially, right? I prefer working in excel so the report recipients can manipulate the data themselves if needed.
SSRS not only generates reports, but can also export data to CSV, XLS, etc.
 
Ok good to know.



This is basically the point of the thread, to figure out what I need and how worthwhile it is upgrade certain things. So I'll definitely be looking for my bottlenecks over the next couple weeks. Only thing is that the type of queries ran vary so much that I hope I get a good sampling. Thanks for both of your guys' help.

If you don't start learning today, you aren't going to have meaningful data to bring to your server upgrade planning meetings.

I generally log CPU utilization, signal waits and PLE anywhere between once per minute and once per hour on my production servers. You can go back and graph it over time at your convenience or when it's time to consider an upgrade:

I don't have my old SQL 2005 versions of these scripts handy - these will work on SQL 2008 though.



Code:
ALTER PROCEDURE [dbo].[DBA_Log_SQL_Performance] 
AS
BEGIN
	DECLARE @PLE INT, @signal_wait DECIMAL(12,2), @resource_wait DECIMAL(12,2)


	SELECT @PLE=cntr_value 
	FROM sys.dm_os_performance_counters
	WHERE OBJECT_NAME = 'SQLServer:Buffer Manager'
	AND counter_name = 'Page life expectancy'


	SELECT @signal_wait=CAST(100.0 * SUM(signal_wait_time_ms) / SUM (wait_time_ms) AS DECIMAL(12,2)),
		   @resource_wait=CAST(100.0 * SUM(wait_time_ms - signal_wait_time_ms) / SUM (wait_time_ms) AS DECIMAL(12,2))
	FROM sys.dm_os_wait_stats



	INSERT INTO DBA_SQL_PERFORMANCE_HISTORY
	(PLE, signal_wait, resource_wait)
	SELECT @PLE, @signal_wait, @resource_wait

END


Code:
ALTER PROC [dbo].[DBA_Log_CPU_History] AS
INSERT INTO DBA_CPU_HISTORY
(record_id,  SQLProcessUtilization, SystemIdle, OtherProcessUtilization, genDate)
SELECT record_id,
      SQLProcessUtilization,
      SystemIdle,
      100 - SystemIdle - SQLProcessUtilization AS OtherProcessUtilization,
      DATEADD(ms, -1 * ((SELECT cpu_ticks / (cpu_ticks/ms_ticks) FROM sys.dm_os_sys_info) - [TIMESTAMP]), GETDATE()) AS genDate
FROM (
      SELECT
            record.value('(./Record/@id)[1]', 'int') AS record_id,
            record.value('(./Record/SchedulerMonitorEvent/SystemHealth/SystemIdle)[1]', 'int') AS SystemIdle,
            record.value('(./Record/SchedulerMonitorEvent/SystemHealth/ProcessUtilization)[1]', 'int') AS SQLProcessUtilization,
            TIMESTAMP
      FROM (
            SELECT TIMESTAMP, CONVERT(XML, record) AS RECORD
            FROM sys.dm_os_ring_buffers
            WHERE ring_buffer_type = N'RING_BUFFER_SCHEDULER_MONITOR'
            AND record LIKE '%<SystemHealth>%') AS FOO
      ) AS BAR
    WHERE DATEADD(ms, -1 * ((SELECT cpu_ticks / (cpu_ticks/ms_ticks) FROM sys.dm_os_sys_info) - [TIMESTAMP]), GETDATE()) > (SELECT MAX(genDate) FROM DBA_CPU_HISTORY)
	ORDER BY record_id ASC

Just schedule them in SQL Agent & come back in a few days for some useful data. If you think your bottleneck might be I/O, you might consider adding some I/O metrics.



Here's some data from a dual hex-core X5680 (3.33GHz) with 48GB RAM and 32 spindles (8x 15K RPM, 24x 10K RPM), Server 2008 Enterprise, SQL 2008 Standard





 
If the queries you write vary greatly, then you might be better off investing in more disk than you would for more memory. It really depends on the access patterns you're causing. Memory will help cache -- data that's accessed repetitively -- while disk performance will help queries which must go to disk after they miss cache. If you're oding large sorts, hash joins, or grouping, memory can help, too.
 
I have been in discussion with one of our WinTel guys, he suggested using a blade server, with SSDs for the OS and Log files, and storing the data on a SAN. How good is the performance of SANs versus having everything locally?
 
Why does he suggest a blade server and SSDs? Just because they'll jack up his commission? Or because of some analysis he did with you about your workload? Or some other reason?

I don't mean to offend you; I just mean to get your attention: You don't seem to be very good at listening to advice, and you seem to be even worse at asking critical questions.
 
There are so many different way to configure and options to go with as far as servers go, I am still trying to wrap my head around it all.

I am listening to your guys' advice. I am running the scripts that calebb posted, as well as SQL profiler. So waiting on getting that information. The WinTel guy works for us, so I don't see him getting commission, but maybe I don't understand how that relationship works. Right now he is just getting me quotes, so I have better idea of what things cost, so I can make a better informed decision in the end. I was already in the process of doing that before starting this thread. He suggested blade because of space and power, and SSDs cause of their speed. Although I'll probably tell him to remove the SSDs in the end cause they'll probably be to expensive.

There is just a lot too consider here. And there is quite a bit of information out there on the subject, that going through it all is going to take a while.
 
There are lots of choices in life, not just as far as severs go. Making a decision involves thinking about your goals and trying to find a way to satisfy them.

Let's start from the beginning: You've already chosen to buy a "legitimate server". Why is that? What are all the benefits you expect from your investment?
 
SSD and logfiles is a nono (in general). Right now...there's not much performance you're going to gain from putting the OS and logs on a SSD.

Maybe you'd boot up faster - but on a server that usually stays up and running, that's really a non point.

Maybe he thinks they're cool tech, but that should never be the driving force behind a business decision.
 
SSD and logfiles is a nono (in general). Right now...there's not much performance you're going to gain from putting the OS and logs on a SSD.

Maybe you'd boot up faster - but on a server that usually stays up and running, that's really a non point.

Maybe he thinks they're cool tech, but that should never be the driving force behind a business decision.

"Cool costs me money!"
 
With the few details you have provided, I can already tell you, you're probably not ready to test SSD technology on your SQL server.

"Right now I am running Sql Server 2005 on a Pentium-Dual core 2.5Ghz, with 2 GB of ram."

I know so little about your current environment, your goals for the new server, etc. Once you eliminate one bottleneck, you might expose the next bottleneck in your hardware implementation.

But what I can say is that if you go with something like a 2u dual-quad core x5600 series Xeon, 16GB RAM, 8x 2.5" 10K SAS hard drives:

1. You will be lifting your CPU workload limit by more than 10-fold. (likely much more) (and since you're using a dual core 2.5GHz Pentium right now, and things are "working," you might not even notice a difference in signal waits!)

2. You're surviving with 2GB of RAM. By increasing that 8-fold, you may or may not see a performance difference related to reads from cache. You told us how many records are in your database, but you did not tell us the size per record, the size of your indexes, etc.

i.e., this script shows how much memory is in cache by object. (indexes and table data)


3. I don't know what your I/O subsystem looks like right now. Maybe you have 48 spindles with 8x RAID10 arrays? In that case, even i7 processors aren't going to help you if you replace the server & storage array with a 2u 8x spindle server.


The scripts I have posted are just some anecdotal information that I thought might be useful. As MikeBlas said, you need to ask some questions and provide a lot more details if you want to choose the right server for the task.
 
Let's start from the beginning: You've already chosen to buy a "legitimate server". Why is that? What are all the benefits you expect from your investment?

Ok I guess let's start back at the beginning. The computer I am currently using SQL Server on is literally a desktop computer. Pentium-Dual Core 2.5Ghz, 2GB ram, 80GB HDD has the OS and log files, 500GB has the other Database files. Both HDDs are 7200 rpm. This is also my work computer. Starting to see the problem? Some queries just take way too long since this is underpowered, and is basically wasting time when I could be churning out reports faster.

There is a second desktop that is a P4 2.4GHz, 2GB of RAM, 80GB HDD that is also running SQL Server. This server is used by one of my coworkers via an application I designed for him. This server accesses similar information that I access on my server, listed above.

When I create reports, I use data from 3 different servers. Often I am combining the data from these servers in order to create a report. SSIS and openqueries are extremely useful in this sense.

The goal of the new server is basically to combine both of the above servers. This will free up my desktop from chugging on queries, and I won't have to worry about excel eating up memory when SQL Server could be using it. It would reduce some redundancy on the second server as well. I do forsee additional people accessing this new server through applications I build. But I need something better than I currently have to make this happen. However, in addition to this new server, I am trying to figure out how to speed up queries from these other servers as well. I am always looking to improve.

Is that more informative?
 
Ok I guess let's start back at the beginning. The computer I am currently using SQL Server on is literally a desktop computer. Pentium-Dual Core 2.5Ghz, 2GB ram, 80GB HDD has the OS and log files, 500GB has the other Database files. Both HDDs are 7200 rpm. This is also my work computer. Starting to see the problem?
Not specifically, no. I code all day with a local instance of SQL Server and don't have much trouble.

The difference between what I do and what you do is workload. You must be doing different queries than I'm doing.


Some queries just take way too long since this is underpowered, and is basically wasting time when I could be churning out reports faster.

Isn't it possible that the queries are poorly written, or they're going against poorly indexed tables?

When you run your queries, are you I/O bound, disk bound, or memory bound?

If you built a machine with the same specs and put it in the server room, would your problem be solved? That is, is the issue that you're trying to do other work (besides the work SQL Server is doing) at the same time SQL Server is trying to do the queries for your reports?

When I create reports, I use data from 3 different servers. Often I am combining the data from these servers in order to create a report. SSIS and openqueries are extremely useful in this sense.
Yep. But they're also far slower than having all the data on the same machine.

The goal of the new server is basically to combine both of the above servers. This will free up my desktop from chugging on queries, and I won't have to worry about excel eating up memory when SQL Server could be using it. It would reduce some redundancy on the second server as well. I do forsee additional people accessing this new server through applications I build. But I need something better than I currently have to make this happen. However, in addition to this new server, I am trying to figure out how to speed up queries from these other servers as well. I am always looking to improve.

Is that more informative?
It helps, but there's still some vaguaries: better in what way? Do you think you need more storage? More IO capacity (operations per second)? More memory to cache frequently run queries, or iterated objects in memory? More help with tuning queries? More CPU power?

What measurements have you taken to support your assertions that you need more of any of those capabilities? Are you sure the problem isn't just your use of remote queries? How much disk I/O do you do when you're running your reports? How much memory and CPU are you using?
 
I hadn't considered this; How about the capabilities of the remote server, network infrastructure, etc?

This is definitely the main culprit. I've considered copying parts of the tables that I use most from the servers on a daily basis. Essentially created a copy ahead of time of the data I know I am going to use. Actual tried setting up Replication once, but ran into issues with it I was unable to resolve. But if you guys have a suggestion on how to further speed up getting data from remote servers, I am all ears.

But still, sometimes dealing with a multiple 100million+ row tables is just going to take a while, no matter how well the queries are written. That's just a lot of data to process. And I am not talking about picking out select pieces of data. I am talking about joining these tables.

It helps, but there's still some vaguaries: better in what way? Do you think you need more storage? More IO capacity (operations per second)? More memory to cache frequently run queries, or iterated objects in memory? More help with tuning queries? More CPU power?

If I end up copying the main data table from the other servers, I will need more storage. I think I would benefit from both more IO capacity and more memory and CPU power, but mostly IO. I know there are some queries I can tune better, and I am always getting better at writing them. I often read different SQL Websites to learn new tricks, but tuning will only get me so far.

What measurements have you taken to support your assertions that you need more of any of those capabilities? Are you sure the problem isn't just your use of remote queries? How much disk I/O do you do when you're running your reports? How much memory and CPU are you using?

Currently the only measurements I can go off of is Task Manager and Performance Monitor in SQL Server. But I am currently looking up how to keep track some stats, such as calebb listed earlier, so I will have a better idea of what to fix.

The remote queries are part of the problem, but the only thing I can currently think of to fix that is create a local copy of the data I use most. I actually do this with several smaller tables, and it's hugely beneficial IMO.

I am usually maxed out on memory when running reports. 10% of the time the CPU is maxed, the other 90% the hard drive is chugging.
 
Back
Top