SQL Server 2012 Diagnostic Information Queries (September 2012)

Here is the September 2012 version of my SQL Server 2012 Diagnostic Information Queries, with some minor tweaks and improvements to a number of the existing queries. To go with it is an updated, blank SQL Server 2012 results spreadsheet, where the tabs in the spreadsheet are labeled and in the same order as the queries.

The idea is that you can run these queries one by one, click on the top left square of the results grid, and then right-click and select “Copy with Headers” to select and copy the results of the query and then paste them into the matching tab of the results spreadsheet.

Many of these queries only work on SQL Server 2012, although some will work on older versions of SQL Server. If you are using an older version of SQL Server, you should use the version of my diagnostic queries for that version of SQL Server.

As always, I welcome any feedback you may have about these queries.

Posted in SQL Server 2012 | Tagged | 1 Comment

Interview on RunAsRadio #281 with Richard Campbell

I recently had a chance to record a 33 minute podcast interview on RunAs Radio #281 with Richard Campbell, where I talked about the licensing changes in SQL Server 2012 and how to select your new hardware to minimize your licensing costs. I also talked about Intel versus AMD processors, and talked about which Intel processors were good and bad choices for different workloads on SQL Server 2012. RunAs Radio has been putting out weekly podcasts since April of 2007, and they have a lot of good content available there!

Posted in Computer Hardware, Haswell, Processors, Sandy Bridge, SQL Server 2012, Windows Server 2012 | Tagged , , | Leave a comment

SQL Server 2012 RTM Cumulative Update 3

Microsoft has released SQL Server 2012 RTM Cumulative Update 3, which is Build 11.00.2332. There are 36 fixes (by my count) in the public fix list.  Since SQL Server 2012 RTM is still fairly new, there are still quite a few hotfixes showing up in these early Cumulative Updates.

I think this is a good thing, since it improved the performance and reliability of SQL Server 2012, and it is evidence of the good work being done by the SQL Server Sustained Engineering Team. As you probably know, I am a pretty strong advocate of staying current with Cumulative Updates rather than just waiting for Service Packs to be released.

Posted in Microsoft, SQL Server 2012 | Tagged | 1 Comment

Upcoming Speaking Events

I will be the inaugural speaker for the Northern Colorado Database Professionals on September 17, in Loveland, CO. I will be presenting a preview version of my PASS Summit 2012 session about how to migrate to SQL Server 2012. The abstract is below:

Migrating to SQL Server 2012
How do you design and implement a safe and successful migration from an older
version of SQL Server to SQL Server 2012, with no data loss and virtually no
downtime? What if you have a limited hardware budget for the upgrade effort, and
you are worried about the new core-based licensing in SQL Server 2012? How can
you choose your hardware wisely in light of the new licensing model?
This session will cover several different methods for migrating your
data to SQL Server 2012 while meeting these objectives and minimizing your
hardware and licensing costs. You will also learn how to help make the case that
an upgrade makes good sense from a business perspective.

 

The following week, I will be at SQLSaturday #169 on September 22, in Denver, CO. I will be presenting an updated version of DMV Emergency Room!, about how to use a special set of DMV queries to help identify and troubleshoot performance issues in an emergency. The abstract is below:

DMV Emergency Room!

If you have ever been responsible for a mission critical database, you have probably been faced with a high stress, emergency situation where a database issue is causing unacceptable application performance, resulting in angry users and hovering managers and executives. If this hasn’t happened to you yet, thank your lucky stars, but start getting prepared for your time in the hot seat. This session will show you how to use DMV queries to quickly detect and diagnose the problem, starting at the server and instance level, and then progressing down to the database and object level. Based on the initial assessment of the problem, different types of DMV queries will help you narrow down and identify the problem. This session will show you how to assemble and use an emergency DMV toolkit that you can use to save the day the next time a sick database shows up on your watch in the Database ER!

 

On October 13, 2012, I will be at SQLSaturday #145 in Nashville, TN. I will be presenting Hardware 301: A deeper Dive into Database Hardware. The abstract is below:

Hardware 301: Diving Deeper into Database Hardware

Making the right hardware selection decisions is extremely important for database scalability. Having properly sized and configured hardware can both increase application performance and reduce capital expenses dramatically. Unfortunately, there are so many different choices and options available when it comes to selecting hardware and storage subsystems, it is very easy to make bad choices based on outmoded conventional wisdom. This session will give you a framework for how to pick the right hardware and storage subsystem for your workload type. You will learn how to evaluate and compare key hardware components, such as processors, chipsets, and memory.

 

 

Finally, I will be speaking at the PASS Summit 2012 during the week of Nov 6-9, 2012, in Seattle, WA.  The abstract for this session is shown below:

Migrating to SQL Server 2012

How do you design and implement a safe and successful migration from an older version of SQL Server to SQL Server 2012, with no data loss and virtually no downtime? What if you have a limited hardware budget for the upgrade effort, and you are worried about the new core-based licensing in SQL Server 2012? How can you choose your hardware wisely in light of the new licensing model?  This session will cover several different methods for migrating your data to SQL Server 2012 while meeting these objectives and minimizing your hardware and licensing costs. You will also learn how to help make the case that an upgrade makes good sense from a business perspective.

All three of these events should be a lot of fun, and I am looking forward to seeing a lot of people at the venues!

Posted in Microsoft, SQL Server 2012, Teaching | Tagged , , | 3 Comments

Intel Haswell-EP Processor Rumors

Intel releases a new processor microarchitecture every two years, which is called a Tock release. One year later, they take that same microarchitecture and move it to a new, smaller manufacturing process, along with adding some minor feature improvements. This is called a Tick release.  Table 1 shows the recent and upcoming Tick-Tock releases.

Process Size Code Name Release Type
45nm Nehalem Tock
32nm Westmere Tick
32nm Sandy Bridge Tock
22nm Ivy Bridge Tick
22nm Haswell Tock
14nm Rockwell Tick

Table 1: Tick-Tock Release Milestones

Figure 1 shows the Tick-Tock release relationship, with the Tocks in blue and the Ticks in orange.

The Tick-Tock model through the years

Figure 1: Tick-Tock Model

The next major Tock processor release from Intel will be Haswell. Haswell is the next Tock release after Sandy Bridge. Haswell is supposed to be released for the desktop and mobile space in the March-June 2013 time-frame. Based on past experience, that probably means that we will see the server oriented Haswell-EP and Haswell-EN server microprocessors show up one to two quarters later in 2013.

According to various Intel roadmap slides that have been leaked, Haswell-EP will have 10-14 CPU cores, with 2.5MB of L3 cache per each core, for a total of up to 35MB of shared L3 cache for the entire processor.  The Haswell-EP processors will also have a quad-channel DDR4 memory controller, supporting transfer speeds 1333, 1600, 1866 and 2133 MT/s. They will also have two quick path interconnect (QPI) channels, and PCI Express 3.0 with 40 lanes on Haswell-EP, and 24 lanes on Haswell-EN. They will also support Hyper-Threading and Turbo Boost.

If this is true, you could see up to 28 physical cores or 56 logical cores in a two socket server with Haswell-EP. If Intel continues what they started with Sandy Bridge-EP, there will also be a four socket version of Haswell-EP that would have 56 physical cores or 112 logical cores in a commodity four socket server by late 2013!

Since Haswell is a Tock release, we can expect a big performance boost over Sandy Bridge. Historically, Tock releases have shown anywhere from a 50-100% performance increase for various workload types. Haswell requires a new processor socket and different chipset, so the server vendors will have to release new model servers (for example a Dell PowerEdge R730) to accommodate it.  This is pretty exciting stuff!

Posted in Computer Hardware, Haswell, Intel, Processors | Tagged , | 4 Comments

SQL Server 2005 Diagnostic Information Queries (August 2012)

Here is the August 2012 version of my SQL Server 2005 Diagnostic Information Queries, with some minor tweaks and improvements. To go with it is an updated, blank results spreadsheet, where the tabs in the spreadsheet are labeled and in the same order as the queries.

The idea is that you can run these queries one by one, click on the top left square of the results grid, and then right-click and select “Copy with Headers” to select and copy the results of the query and then paste them into the matching tab of the results spreadsheet. With the SQL Server 2005 version of SQL Server Management Studio (SSMS), you will want to enable the “Copy with Headers” option under Tools, Options,Query Results, SQL Server, Results to Grid in order to be able copy the results with headers.

These queries are designed to work on SQL Server 2005, although many of them will also work on newer versions of SQL Server. If you have a newer version of SQL Server you are really better off getting the proper version of these queries that matches your version of SQL Server.

All of the recent versions of my DMV diagnostic queries can be found here.

Posted in SQL Server 2005 | Tagged , | 6 Comments

Choosing a Mobile Workstation

I get a lot of e-mail and Twitter requests for advice about what laptop someone should buy. I don’t mind this too much (I actually sort of like it, to be honest), but it probably makes some sense to summarize my general advice about this subject.

There are a lot of available good choices for high end mobile workstations and choosing one comes down to several main factors:

    1. Your intended usage
    2. Your budget
    3. Your tolerance for size and weight
    4. Your desired screen resolution
    5. Your vendor preference

A common usage request in the SQL Server community is that someone wants to be able able to run multiple, concurrent virtual machines on a laptop so that they can start learning about SQL Server 2012 AlwaysOn Availability Groups.

From this usage description, you would want a relatively powerful multi-core machine with lots of RAM and multiple drive bays if possible. This means you will need a 15″ or 17″ laptop that will be pretty large and heavy (6-8lbs). These larger machines will usually have four memory slots instead of two, and they will have two or three internal drive bays instead of one. The HD4000 integrated graphics in the Intel Ivy Bridge processor will be more than sufficient for this scenario. Using integrated graphics will give you more battery life than discrete graphics.

Remember, you are going to be stuck with the screen that you pick and with the processor that you select for the life of the laptop. Unless you choose an Ultrabook, it should not be too difficult to upgrade your RAM and to install a fast SSD.

A single fast 6Gbps SATA III SSD would probably have more than enough performance (both random and sequential) to support this scenario, but you might be worried about disk space unless you get a larger and more expensive SSD, such as a 512GB model.

The latest models will have 22nm Intel Ivy Bridge (3rd Generation Core) processors, with 6Gbps SATA III and USB 3.0 support, and support for up to 32GB of RAM (with four memory slots). You will also want a 1080P screen (1920 x 1080), rather than a 720P screen (1366 x 768).

I think the sweet spot for mobile processors right now is the Intel Core i7-3820QM. Going for the top of the line, Intel Core i7-3920XM does not make economic sense, since it is double the cost of the i7-3820QM while only offering maybe 10% more performance.

Rather than ordering a machine fully populated with RAM from the system vendor, you should just get a single 2GB stick of RAM from the system vendor and then buy 8GB sticks of RAM from someplace like NewEgg. This will save you several hundred dollars. Here are some 16GB memory kits from NewEgg.

Depending on your comfort level with hardware and whether you want to install a fresh copy of an OS, you should consider buying your own SSD(s) from NewEgg instead of buying them from the system vendor. This would save you even more money, plus you can pick the SSD that you want. The 256GB OCZ Vertex 4 is one of the better choices right now.

Vendor selection comes down to personal preference, really. Most people (including myself) actually only have anecdotal experience and evidence regarding vendor and specific model selection. For example, perhaps you bought a Dell laptop a few years ago, and you had some problems with it, so you are not likely to be a Dell fan. I would argue that your personal  experience is only anecdotal (unless you were a desktop support technician, and your company bought 100 of that model laptop, and a high percentage of them had problems). Even then, your experience would be only be valid for that particular model.

Ideally, you would want to be able to actually play with the specific model before you ordered it, to check the build quality, the ergonomics, etc. That is usually not possible with Windows laptops, since most brick and mortar retailers only carry poor quality, entry level laptops. That is one huge advantage that Apple has, since you can go into an Apple store and play around with the latest model MBP before you buy it.

Here are a few candidate, workstation class laptops:
Dell Precision M4700
Dell Precision M6700
Lenovo W530

Posted in Computer Hardware, Dell, Intel, Ivy Bridge, Laptops, Processors | Tagged , | 20 Comments

Three Generations of Toshiba Portege Laptops Compared

Since I am a bit of a hardware enthusiast, I tend to buy new computer hardware a little more often than the average person (probably too often)! I like to have a smaller laptop for teaching and presentations, that is thin and light, but not an actual Ultrabook.

Most current Ultrabooks use the low power versions of Intel processors (such as the Intel Core i5-3317U) which generate less heat and provide better battery life than the standard voltage models such as the Intel Core i5-3210M. On the downside, those low voltage models also give you significantly less performance than the standard voltage models. Another issue with most Ultrabooks is that they only have 4GB (or in some cases 8GB) of RAM, which cannot be upgraded. Finally, many Ultrabooks use small capacity mSATA SSD drives that are difficult or nearly impossible to upgrade.

On the upside, most modern Ultrabooks have higher quality, high resolution screens (often 1600 x 900 or 1920 x 1080), and they are very thin and light (less than 3.3 lbs). They also tend to have higher build quality than lower cost Windows laptops, along with a higher cost.

A couple of years ago, I bought a Toshiba Portege R705-P25 with a 32nm 2.26GHz Intel Core i3-350M “Arrandale” processor and Intel integrated graphics. About a year ago, I bought an externally identical Toshiba Portege R835-P55X with a 32nm 2.3GHz Intel Core i5-2410M “Sandy Bridge” processor, with improved Intel integrated graphics.  Finally, a few weeks ago, I bought another externally identical Toshiba Portege R935-P330 with a 22nm 2.5GHz Intel Core i5-3210M “Ivy Bridge” processor, with even better Intel integrated graphics.

Overall, I have been pretty happy with these machines. They have all been special OEM versions that were not configured exactly how I would have preferred, but they have been hundreds of dollars less expensive than the same configuration would have been if I had custom ordered it directly from Toshiba. The biggest weakness in these machines is their pretty mediocre 1366 x 768 screen. I would have happily paid more money for a better quality 1600 x 900 or 1920 x 1080 screen.

In each case, I eventually modified these machines from their original stock configuration by adding more memory, and installing a fresh copy of Windows 7 on a solid state drive (SSD). The older R705-P25  does not have SATA III support, so its disk performance is somewhat reduced with the current 6Gbps SATA III SSDs. Here is the Windows 7 Windows Experience Index (WEI) scores for these three systems after my modifications:

image

Figure 1: Toshiba Portege R705-P25 with 8GB of RAM and 128GB OCZ Agility 4 SSD

image

Figure 2: Toshiba Portege R835-P55X with 16GB of RAM and 180GB Intel 520 SSD

image

Figure 3: Toshiba Portege R935-P330 with 16GB of RAM and 256GB OCZ Vertex 4 SSD

This chart summarizes the WEI scores for all three systems:

System Processor Memory Graphics Gaming Disk
R705 6.1 6.3 4.6 5.2 7.4
R835 6.9 7.4 5.9 6.2 7.8
R935 7.1 7.5 6.5 6.5 7.9

Table 1: Windows Experience Scores on Modified Systems

On Windows 7, the WEI score has a maximum value of 7.9. The disk score is limited to 5.9 unless you have an SSD installed.

For comparison’s sake, here are the CPU-Z screenshots for all three systems:

image

Figure 4: CPU-Z CPU screen for Toshiba Portege R705-P25

 

image

Figure 5: CPU-Z CPU screen for Toshiba Portege R835-P55X

 

image

Figure 6: CPU-Z CPU screen for Toshiba Portege R935-P330

The newer Sandy Bridge and Ivy Bridge processors handle power management differently (and better) than older Intel processors such as the Arrandale.  Even when the High Performance power plan is used, the newer Sandy Bridge and Ivy Bridge processors will not run at full speed when they are not under any load, but they will throttle up much more quickly to full speed when they do see a processor load. There is much less of a performance difference between the default Balanced power plan and the High Performance power plan.

Again for comparison’s sake, I ran the 32-bit version of Geekbench 2.3.4 on all three systems. Geekbench only measures processor and memory performance, but it is a useful, quick benchmark for a system, whether it is a laptop or a database server.

image

Figure 7: Geekbench 2.3.4 score for Toshiba Portege R705-P25

 

image

Figure 8: Geekbench 2.3.4 score for Toshiba Portege R835-P55X

 

image

Figure 9: Geekbench 2.3.4 score for Toshiba Portege R935-P330

What I find interesting about this is the very large jump from the Arrandale in the R705 to the Sandy Bridge in the R835 (at roughly the same clock speed), showing the effects of a full  Intel Tock release. Moving from the Sandy Bridge in the R835 to the Ivy Bridge in the R935 is much smaller, and a good portion of this small improvement is due to the increased 2.5GHz clock speed in the Ivy Bridge compared to the 2.3GHz clock speed in the Sandy Bridge. Intel calls the Ivy Bridge a “Tick plus” release, since they made more substantial improvements in the integrated graphics performance in Ivy Bridge.

System Geekbench Score % Increase
R705-P25 3911  
R835-P55X 5894 50.7%
R935-P330 6620 12.3%

Table 2: Geekbench score comparison

Finally, I ran CrystalDiskMark 3.0.1 on all all three systems, using the default file size of 1000MB. Figure 10 shows the results for the Toshiba Portege R705-P25. Note: I made a mistake when I typed in the model of the SSD in Figure 10. It is actually a 128GB OCZ Agility 4 SSD that is plugged into a slower SATA II port, which limits its sequential read and write performance.

image

Figure 10: CrystalDiskMark for 128GB OCZ Agility 4 SSD in SATA II port

 

image

Figure 11: CrystalDiskMark for 180GB Intel 520 SSD in SATA III port

Figure 11 shows the results for the Toshiba Portege R835-P55X. Note that the Intel 520 SSD uses the SandForce 2281 controller which compresses data before it is written. The default setting in CrystalDiskMark uses a data file which is filled with random data, which does not compress well, which affects the performance quite a bit in this test.

 

image

Figure 12: CrystalDiskMark for 256GB OCZ Vertex 4 SSD in SATA III port

Figure 12 shows the results for the Toshiba Portege R935-P330. The controller used in the OCZ Vertex 4 SSD does not use compression. This particular SSD was updated to use the latest 1.5 firmware. This SSD is showing much better performance in this bench mark that the other two SSDs.

In case you are wondering why I have three externally identical laptops, it turns out that I have recently given the older R705-P25 to one of my nieces, and I will probably give the R835-P55X to another niece. Sometimes my family jokes that my hand-me-down computers are better than many people’s new machines.

Posted in Computer Hardware, Ivy Bridge, Laptops, Processors, Sandy Bridge | Tagged , | 15 Comments

SQL Server 2012 Diagnostic Information Queries (August 2012)

Here is the August 2012 version of my SQL Server 2012 Diagnostic Information Queries, with some minor tweaks and improvements to a number of the existing queries. To go with it is an updated, blank SQL Server 2012 results spreadsheet, where the tabs in the spreadsheet are labeled and in the same order as the queries.

The idea is that you can run these queries one by one, click on the top left square of the results grid, and then right-click and select “Copy with Headers” to select and copy the results of the query and then paste them into the matching tab of the results spreadsheet.

Many of these queries only work on SQL Server 2012, although some will work on older versions of SQL Server. If you are using an older version of SQL Server, you should use the version of my diagnostic queries for that version of SQL Server.

The August 2012 version for SQL Server 2005 will be available in the next day or so. As always, let me know what you think of these queries.

Finally, keep your eye out for SQL Server 2012 RTM CU3, which should be released within the next couple of weeks (probably by August 18).

Posted in SQL Server 2012 | Tagged , | 1 Comment

SQL Server 2008 Diagnostic Information Queries (August 2012)

Here is the August 2012 version of my SQL Server 2008 Diagnostic Information Queries, with some minor tweaks and improvements to a number of the existing queries, and one new query. To go with it is an updated, blank 2008 results spreadsheet, where the tabs in the spreadsheet are labeled and in the same order as the queries. The idea is that you can run these queries one by one, click on the top left square of the results grid, and then right-click and select “Copy with Headers” to select and copy the results of the query and then paste them into the matching tab of the results spreadsheet.

These queries will work on both SQL Server 2008 and SQL Server 2008 R2 (although some of them will only work on SQL Server 2008 R2 SP1 or later). This is indicated in the instructions for each query.

Posted in SQL Server 2008, SQL Server 2008 R2 | Tagged , | 8 Comments