Home > SQL Server Tips > Database Management and Administration > SQL Server 64-bit applications and performance drawbacks
SQL Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

DATABASE MANAGEMENT AND ADMINISTRATION

SQL Server 64-bit applications and performance drawbacks


Serdar Yegulalp, Contributor
11.19.2007
Rating: -3.67- (out of 5)


Expert advice on database administration
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


There's no question that the commodity computing world is broadly transitioning from 32-bit to 64-bit architectures, especially on the server side. Conventional wisdom would have it that 64-bit is better, period: You can deal with a larger, less bounded memory space and do more with the processor itself. Why, then, would there be any incentive to continue to use a 32-bit architecture -- especially for something like SQL Server?

As it turns out, this isn't a cut –and-dried situation. On the desktop, 64-bitness isn't always the best thing, and it's not in SQL Server, either. I'd suspected something like this was the case, but I didn't come across specific reasons until I bumped into this post by the Microsoft SQL Programmability and API Development Team. They detail some of the reasons why 64-bit might not be an improvement compared to 32-bit SQL Server.

  1. The older your 64-bit processor, the less of a performance boon you'll get. Mainly, if you're using an earlier iteration of 64-bit processor that doesn't have a lot of Level 2 cache, there will be little or no performance improvement. Performance may in fact be markedly worse. Most of this is because 64-bit processing requires more memory -- when compared to 32-bit -- to accomplish many of the same things. So the same amount of processor cache will not go as far.
  2. An existing application that isn't suffering from memory constraints (what Microsoft calls "memory pressure") will probably not gain any inherent boost in performance from being ported to a 64-bit platform.
  3. Some unexpected behaviors occur when you move 32-bit applications to 64-bit. The linked article above has some more specific examples of this, which are not common but worth noting. Non-parameterized SQL statements are actually something I've run into in other contexts as well. Parameterized SQL is just that much more "professional" a way to handle things, aside from whatever impact it has on the procedure cache. In my opinion, the best long-term solution, although not always the most flexible one depending on the environment you're developing in, is stored procedures. But if most of the query programming is coming from the application side rather than the database side and there's nothing to be done about that (yet), then use parameterized SQL whenever possible.

One other thing noted by the engineers is that in the long run, 64-bit will almost certainly benefit you. Here's one example: Even if it doesn't benefit
More on 32-bit and 64-bit in SQL Server:
  • 32-bit to 64-bit SQL Server migrations
  • 32-bit vs. the 64-bit SQL Server performance surge 
  • Q&A: Making the jump to 64-bit SQL Server 2005
  • you in the scope of one particular application to go 64-bit, it becomes possible to consolidate more of these applications into the same machine. This is something that isn't as feasible or economical in the 32-bit world.

    The final piece of advice is the most perpetually relevant: Use live statistics to determine the real performance impact of moving to a 64-bit architecture. Don't use guesswork or, worse, 32-bit performance as any kind of index for how things will run in 64-bit space. If you experience performance issues, having live stats will help you determine if those issues are related to 32-/64-bit transitions or are just artifacts of a new, untuned installation.


    ABOUT THE AUTHOR:   
    Serdar Yegulalp has been writing about Windows and related technologies for more than 10 years and is a frequent contributor to various sections of TechTarget as well as other publications. He hosts the Web site Windows Insight, where he posts regularly about Windows and has an ongoing feature guide to Windows Vista for emigrants from Windows XP.
    Copyright 2007 TechTarget

    Rate this Tip
    To rate tips, you must be a member of SearchSQLServer.com.
    Register now to start rating these tips. Log in if you are already a member.




    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



    RELATED CONTENT
    SQL Server Migration Strategies and Planning
    New SQL Server 2008 R2 CTP set for November
    PASS Summit 2009 Preview
    Are data warehouses made for the cloud?
    Q&A: Moving forward with SQL Server in the cloud
    SQL Server Mailbag: Migrating down to Standard Edition
    Microsoft releases SQL Server 2008 R2 CTP
    A first look at Microsoft SQL Server 2008 R2
    Using Microsoft Hyper-V for SQL Server consolidation
    Migrating to SQL Server 2008 and leveraging new features
    The challenges of SQL Server consolidation

    Microsoft SQL Server Performance Monitoring and Tuning
    SQL Server Mailbag: CALs, witnesses and unwanted changes
    SQL Server Mailbag: Data restoration and DB property management
    Working with IntelliSense in SQL Server 2008 Management Studio
    SQL Server Mailbag: Stored procedures, triggers and SSRS reports
    Troubleshooting Distributed Transaction Coordinator errors in SQL Server
    Clearing the Windows page file and its effect on server performance
    Optimizing SQL Server indexes –- even when they're not your indexes
    Performance implications of transaction log autogrowth in SQL Server
    The short course on how SQL Server really works
    Determining the source of full transaction logs in SQL Server

    Database Management and Administration
    Meet compliance requirements with improved database security practices
    Hardening the network and OS for SQL Server security
    Securing the server and database in SQL Server
    How SQL Server 2008 components impact SharePoint implementations
    Troubleshooting Distributed Transaction Coordinator errors in SQL Server
    Achieving high availability and disaster recovery with SharePoint databases
    Clearing the Windows page file and its effect on server performance
    Deploying a SQL Server virtual appliance for Microsoft Hyper-V
    How to create SQL Server virtual appliances for Hyper-V
    Push vs. pull: Configuring SQL Server replication

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    contiguity  (SearchSQLServer.com)
    contiguous  (SearchSQLServer.com)
    drilldown  (SearchSQLServer.com)
    hashing  (SearchSQLServer.com)
    hybrid online analytical processing  (SearchSQLServer.com)

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary

    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



    SQL Server Development - .NET, C#, T-SQL, Visual Basic
    HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 2005 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts