Duty Free!!

SQL Write-Ahead Overhead…

Lightweight Thread Pooling / Fibre Mode

One of the rare tweaks that one would do on a SQl Server when excessive Context switches are found on SQLservr.exe, is to apply the Fibre mode. In this Fibre mode there is a higher probability that SQl Server gets hung or some applications doesnt work as they are supposed to. These applications might not be fibre-safe. Infact, though  SQL Server runs in fibre-mode, at the OS level still the process called SQL Server executes in thread mode. It is just that internal to the process the thread is finely used as a set of fibres that are light weight, meaning – not heavy in terms of their possessions so the context switching between fibres doesnt eat much of the resources. 

An application thats using datastructures pertaining to a thread like Thread  Local Storage, shall not be called “fibre-safe” and are prone to errors in fibre mode. 

Ken Henderson’s blog on msdn gives an insight into this in particular detail. One can find it here.


January 20, 2009 - Posted by | SQL Server

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: