473,785 Members | 2,309 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQL Server 2005 and file systems, any recommendations

We're planning to migrate our db to new and more disk drives, faster
RAID levels and more dedicated disk usage(e.g. placing the translog on
dedicated disks). The db server runs on Win2003.

Right now we're thinking about what file system to use on the new
drives. We opt for performance, but expect reliability as well.(Goes
without saying, IMHO ;-))
>From what I can tell, NTFS is a journaling file system, at least it
does some journaling. I'd prefer to have no journaling and sacrifice
boot time for performance, and was wondering if it either is possible
to turn journaling off in NTFS or at least move the journal to a
separate disk. Is it doable, has anyone done this and are there any
benefits? Any downside?

Are there any commonly recommended tweaks to NTFS when the server and
disk is dedicated to SQL Server? Stuff like
NTFSDisableLast AccessUpdate.

How about alternatives to to NTFS? Is FAT32 viable or do we need to
look at Veritas or others?

TIA for all comments.

Bjørn Augestad

Aug 3 '06
18 4778
David Portas wrote:
Bjørn Augestad wrote:

>>The best solution, IMHO, would be to have NTFS without journaling or
NTFS with the journal on a separate disk. If that's not possible, we'll
probably just settle for regular NTFS partitions, or maybe throw in a
couple of RamSan-400 boxes ;-)


I'm by no means an expert on NTFS but as far as I can determine
journaling applies only to file allocation, not to data. In a
well-managed environment SQL Server's storage should generally be
pre-allocated so I don't see why journaling should need to be a
performance constraint at runtime.

I'm no NTFS expert either, so I read the tech spec for NTFS at
http://technet2.microsoft.com/Window....mspx?mfr=true

Here's a quote:
NTFS Change Journal

As files, folders, and other NTFS objects are added, deleted, and
modified, NTFS enters change journal records in streams, one for each
volume on the computer.

My interpretation, hopefully wrong, is that NTFS journal entries will be
written to disk whenever a file is modified. This will lead to disk head
movement and decreased performance on a busy disk, won't it?
>
Maybe I've missed something but I have actually never heard anyone
raise a concern about this before and I've found virtually no relevant
information on it. That suggests to me that it's not an issue I need to
be concerned about. My impression is the same as Erland's: other
factors must rate as far more important determinants of DBMS
performance.
I mostly agree, but it's nice to get the disk configuration correct from
day one as it is very hard to change it later. I didn't know if it is an
issue or not, that's why I wanted to check this.

Bjørn
>
--
David Portas, SQL Server MVP

Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.

SQL Server Books Online:
http://msdn2.microsoft.com/library/m...S,SQL.90).aspx
--
Aug 7 '06 #11
Erland Sommarskog wrote:
DA Morgan (da******@psoug .org) writes:
>Erland Sommarskog wrote:
>>Correct. A binary collation comes with a price. So does raw partitions.
Would you please explain what you intend with this comment about block
devices. With any database, other apparently than Microsoft's, there is
an advantage that accrues to those who forgo file systems. Why is SQL
Server different?

I referred previously in the thread to a fellow MVP who had found a 20%
improvement with raw devices over the file system.

The price I'm talking about is the more complex administration that raw
devices buy you.

As for why they are complex... Many years ago when I worked with Sybase,
I had to travel to customer to perform a triple upgrade: upgrade HP-UX
from 8.0 to 9.0, Sybase from 4.2 to 4.9 and our own application. The
customer had adequate staff to run the OS upgrade themselves, but still
they wanted us to it. The reason: in this OS upgrade HP-UX introduced
logical volumes, having had only fixed partitions before, and the customer
did not know how to handle Sybase, where all data was on raw partitions.
Had the databases been on plain files, the OS upgrade would have been
trivial for them. But in those days, Sybase strongly discouraged you from
running production databases on file-system devices, and with a good reason,
since buffering in the file system could cause problems.
Thanks. The "price" is well understood and there are a lot of good
solutions for simplifying block device administration: Just not with
SQL Server (for example AIX makes it very easy). Thanks.
--
Daniel A. Morgan
University of Washington
da******@x.wash ington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Aug 7 '06 #12
Erland Sommarskog wrote:
DA Morgan (da******@psoug .org) writes:
>Erland Sommarskog wrote:
>>Correct. A binary collation comes with a price. So does raw partitions.
Would you please explain what you intend with this comment about block
devices. With any database, other apparently than Microsoft's, there is
an advantage that accrues to those who forgo file systems. Why is SQL
Server different?

It occurred to me that is another reason why SQL Server is different, which
is inherent in its architecture. Other engines have to support multiple
platforms and file systems, so they need to implement some abstract
interface to handle the file system. Using a raw device means that that
layer they can cirumventet.

Since SQL Server supports only Windows, it can be spared that layer of
abstraction, and thus the gain with raw devices is not equally compelling.

I like to stress that all this is pure speculation on my part.
Thanks.

I've seen this in other aspects as well. Being limited to a single
operating system, and one you control, moves many things from the
database to the operating system.

Of course if Vista shows up as a fattened pig ... that may not be such
a good thing. ;-) Again Thanks.
--
Daniel A. Morgan
University of Washington
da******@x.wash ington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Aug 7 '06 #13
Bjørn Augestad wrote:
>

I'm no NTFS expert either, so I read the tech spec for NTFS at
http://technet2.microsoft.com/Window....mspx?mfr=true

Here's a quote:
NTFS Change Journal

As files, folders, and other NTFS objects are added, deleted, and
modified, NTFS enters change journal records in streams, one for each
volume on the computer.

My interpretation, hopefully wrong, is that NTFS journal entries will be
written to disk whenever a file is modified. This will lead to disk head
movement and decreased performance on a busy disk, won't it?

The point of NTFS journaling is to protect the integrity of file system
META-DATA - avoiding the integrity issues inherent with FAT. NTFS
doesn't guarantee data consistency. For that SQL Server relies on the
transaction log. Your transaction logs can and should be placed on
separate drives to avoid disk contention.

"The Windows NT Filesystem (NTFS) is a journaling, or transactional
file system. This means that any I/O that alters the file system data
or meta-data (directory structure, etc.) is completed atomically so
that either all of the changes are completed"
http://www.microsoft.com/technet/arc....mspx?mfr=true

"NTFS does not do data journaling"
http://www.cs.wisc.edu/adsl/Publicat...a-usenix05.pdf

"An important feature of NTFS is journaling. Before a change is made to
the metadata of a file, a transaction is logged in the $LOGFILE."
http://www.mcmillan.cx/ntfs.html

--
David Portas, SQL Server MVP

Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.

SQL Server Books Online:
http://msdn2.microsoft.com/library/m...S,SQL.90).aspx
--

Aug 7 '06 #14
boa
* David Portas wrote, On 07.08.2006 20:33:
Bjørn Augestad wrote:
>>
I'm no NTFS expert either, so I read the tech spec for NTFS at
http://technet2.microsoft.com/Window....mspx?mfr=true

Here's a quote:
NTFS Change Journal

As files, folders, and other NTFS objects are added, deleted, and
modified, NTFS enters change journal records in streams, one for each
volume on the computer.

My interpretation, hopefully wrong, is that NTFS journal entries will be
written to disk whenever a file is modified. This will lead to disk head
movement and decreased performance on a busy disk, won't it?
[snip]
>
"NTFS does not do data journaling"
http://www.cs.wisc.edu/adsl/Publicat...a-usenix05.pdf
Excellent, that's exactly what I needed to know. Thanks. So standard
NTFS is what I'll use.

While we're at it, any thoughts on the registry setting
NTFSDisableLast AccessUpdate?
Bjørn

[snip]
Aug 7 '06 #15

"boa" <bo*****@gmail. comwrote in message
news:mq******** ************@te lenor.com...
>
While we're at it, any thoughts on the registry setting
NTFSDisableLast AccessUpdate?
None other than you're probably over thinking the problem.

Seriously, any performance gains, etc. you're almost certainly better off
looknig elsewhere.

>
Bjørn

[snip]

Aug 8 '06 #16
Greg D. Moore (Strider) wrote:
"boa" <bo*****@gmail. comwrote in message
news:mq******** ************@te lenor.com...
>>While we're at it, any thoughts on the registry setting
NTFSDisableLa stAccessUpdate?


None other than you're probably over thinking the problem.

Seriously, any performance gains, etc. you're almost certainly better off
looknig elsewhere.
Sorry if I've given you the impression that we're not looking elsewhere.
Right now we are 5 guys rewriting queries and client applications, as
well as adding memory, servers, more spindles and everything else that
may improve performance, and the profiler and dta runs 24/7(Almost...).

Maybe it's just me, but I enjoy knowing these things, and if MSFT added
NTFSDisableLast AccessUpdate(ak a unix noatime) I presume they did it for
a reason. It would be nice to know that reason ;-)

Bjørn
>
>>Bjørn

[snip]


Aug 8 '06 #17

"Bjørn Augestad" <bj************ @gmail.comwrote in message
news:eb******** **@bat-news01.banetele .basefarm.net.. .
Greg D. Moore (Strider) wrote:
"boa" <bo*****@gmail. comwrote in message
news:mq******** ************@te lenor.com...
>While we're at it, any thoughts on the registry setting
NTFSDisableLas tAccessUpdate?

None other than you're probably over thinking the problem.

Seriously, any performance gains, etc. you're almost certainly better
off
looknig elsewhere.

Sorry if I've given you the impression that we're not looking elsewhere.
Right now we are 5 guys rewriting queries and client applications, as
well as adding memory, servers, more spindles and everything else that
may improve performance, and the profiler and dta runs 24/7(Almost...).

Maybe it's just me, but I enjoy knowing these things, and if MSFT added
NTFSDisableLast AccessUpdate(ak a unix noatime) I presume they did it for
a reason. It would be nice to know that reason ;-)
I can definitely understand curiousity. :-)
My point is simply that any performance gains here are probably miniscule
compared to what you can make elsewhere.

>
Bjørn

>Bjørn

[snip]

Aug 9 '06 #18
On Wed, 09 Aug 2006 02:18:46 GMT, "Greg D. Moore \(Strider\)"
<mo************ ****@greenms.co mwrote:
>My point is simply that any performance gains here are probably miniscule
compared to what you can make elsewhere.
I would add that exploring settings that are not commonly used is an
opportunity to discover problems that have not yet been found.

There are no magic bullets.

Roy Harvey
Beacon Falls, CT
Aug 9 '06 #19

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1761
by: tiacux | last post by:
Tech Associates is recruiting for: A SQL Server Database Systems Administrator for Jacksonville, Florida. Salary to $75,000. Description The Database Systems Administrator's role is to direct, evaluate, review, and manage database resources and services across the organization while ensuring high levels of performance and availability. This individual is also responsible for developing,
9
34146
by: Water Cooler v2 | last post by:
There are two datatypes for storing binary data type in the SQL Server: 1. binary - for fixed length binary data 2. varbinary - for variable length data My question is: how is data inserted into them? Do they have any delimiters that go into the insert statement like strings and datetimes have? What format (hex/decimal?) do they accept data in? Can you please give me an insert statement example?
4
23733
by: AlexDP | last post by:
My program has to access an SQL Server DB file that is in the same folder as the executable. i dont want to setup a server. i was able to do this on my own computer, the program would access any sql server db file without it being attached to the server. When i take it to another system it fails to run. All systems have SQL Server Express and SQL Server 2005 installed. Can someone please direct me through the steps to fix this problem? ...
9
2484
by: dotnetfellow | last post by:
The system has worked for two years. SQL Server 2000 runs on Windows 2000 Server "A". Another instance of SQL Server 2000 was moved from Windows 2000 Server "B" old to Windows 2003 Server "B" new, by restoring a backed up copy from old to new. The system has cross server updates, where Server "A" is updating records in very large tables on Server "B".
2
6968
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
14
3042
by: Developer | last post by:
Hello All, i have recently installed VS2005 and was trying to install SQL sever 2000. I have Win XP' SP2. But when I tried installing, it only installed client tools and not the database. Can anyone please help me with this as I want to install SQL server and also wouold be grateful, if you can suggest me any workaround to dealwith this problem.(Like should I install any new OS etc). Any help would be appreciated.
0
12902
Coldfire
by: Coldfire | last post by:
Since i cannot show the differences in a two-column like table. I am first putting MS SQL Server 2005 and then MySQL 5.x. MS SQL Server 2005 Brief Overview - SQL Server is a full-fledged database system developed specifically for large enterprise databases. All advanced features of a relational database are fully implemented. - Once you purchase the product, you are only limited to the Sybase-derived engine.
0
9484
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10350
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10157
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10097
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8983
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7505
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6742
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4055
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.