Solved

percent filegrowth settings

Posted on 2014-04-10
4
215 Views
Last Modified: 2014-04-16
can I ask what risks/issues are caused by using percent filegrowth settings? Please keep answer tech free management freindly if possible? Healthcheck scanners say this setting can lead to out of control filegrowth, why so?
0
Comment
Question by:pma111
4 Comments
 
LVL 35

Assisted Solution

by:YZlat
YZlat earned 125 total points
ID: 39991656
it's not bad for small databases, but when database is rather large, even 10-15% growth can cause performance issues
0
 
LVL 10

Assisted Solution

by:PadawanDBA
PadawanDBA earned 125 total points
ID: 39991658
I usually recommend actual size amounts (512 MB, 1024 MB, etc.).  The reason for this being that as the database grows larger it will grow by larger and larger amounts.  If you don't have some settings set on your database server (what's called instant file initialization), this can cause all activity in the database to stop until it is done growing the file(s).

My best advice is to make the size of the data files as large as they need to be to handle growth up to a point in time where you would migrate the database(s) to new hardware and allow for the filegrowth as a last resort.  I say last resort because I absolutely don't advise anyone to disable filegrowth because it will essentially offline your database if you hit the limit and it can't grow.

Edit:

Forgot to mention that when you decide how much you want your database to grow in the event that it needs to autogrow, you introduce physical fragmentation every time it auto grows, so you will want to make it grow by a large enough size that it doesn't happen often (or at least gives you time to address the issue)
0
 
LVL 22

Accepted Solution

by:
Steve Wales earned 125 total points
ID: 39991789
The reason it can cause out of control file growth is because it's not growing by a percentage of the size of the file at the time it was created, but by the current size.

So you start with 100GB with 10% growth.  After the first grow, you're at 110GB.  Next time you're at 121 GB, then 132.1 GB etc.  Each growth gets a little larger.

If you set larger growth percentages, it's obviously worse:

100 GB at 50% - 150 GB - 225 GB - 332.5 GB etc.

As mentioned above, not so much of an issue on smaller databases, but on larger databases with larger growth percentages it can be an issue.

Autogrowth vs No autogrowth is also an argument I've seen discussed many times in both the SQL Server and Oracle technical forums.

I always monitor freespace in my databases carefully so that I can control growth on my terms in a manner and timeframe that suits me - so I try to avoid databases auto growing by themselves - but the feature is still turned on.
0
 
LVL 69

Assisted Solution

by:Scott Pletcher
Scott Pletcher earned 125 total points
ID: 39992062
I suggest never using percentage growth.  I've found it to be slower than a fixed amount.

Change the size settings on the model db to a fixed amount of what a "typical" db in your environment would need.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
convert in derived column 7 27
Webservices in T-SQL 3 30
SqlServer no dupes 25 34
Find results from sql within a time span 11 29
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question