Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

db autogrowth settings Expand / Collapse
Author
Message
Posted Tuesday, January 10, 2012 5:46 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, July 16, 2014 12:02 PM
Points: 46, Visits: 519
I am not a DBA but get into it on a periodically basis.

We have db size of 50G with 25.3G free or 50%. Breakdown is as follows: Data 42G allocated with 17G free or 40%. Log 8.3G with 8.2 free or 99%. DB backup every day. Trans log backup everyday from 6 am to 11 pm. Only indexes with pages > 10 and fragmentation > 10 are reindexed once per week(this should probably be changed). The current(legacy) auto-growth is set at 3% for both data and log. We do not expect rapid db growth but can setup scripts to monitor. Given these conditions should auto-growth be set to 0 for both data and log? What is the most reasonable page count and fragmentation level to do DBCC DBREINDEX for the selected table\index?
Post #1233094
Posted Tuesday, January 10, 2012 6:05 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 9:10 AM
Points: 5,437, Visits: 10,129
Probably best to monitor file size proactively but set autogrowth just in case. The fragmentation levels I've seen used most often are to reorganise indexes above 5% and rebuild above 30%. Don't really know about page count - I think maybe 1000 rows is reasonable. The exact figure shouldn't matter that much because it won't take very long at all to rebuild indexes on such small tables.
Post #1233105
Posted Tuesday, January 10, 2012 6:12 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, July 16, 2014 12:02 PM
Points: 46, Visits: 519
Thanks John. Given the free space in the files should 1% auto be ample? Isn't this forcing the free space in each file to be used? Can you suggest proper way to monitor the file sizes before alter db command is required to increase the sizes?
Post #1233113
Posted Tuesday, January 10, 2012 6:19 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Thursday, November 20, 2014 8:50 PM
Points: 20,584, Visits: 9,623
Tim Jacobs-356724 (1/10/2012)
Thanks John. Given the free space in the files should 1% auto be ample? Isn't this forcing the free space in each file to be used? Can you suggest proper way to monitor the file sizes before alter db command is required to increase the sizes?


Do you have dbs with more than 1 data file?


1% is too low, you should set this to 0.5-2 GB (whatever your system can grow without taking more than a few seconds).

But first you must monitor, autogrow should be your final, final last failsafe.



Edit, can you confirm you are on sql 2000?
Post #1233119
Posted Tuesday, January 10, 2012 6:22 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 9:10 AM
Points: 5,437, Visits: 10,129
Free space isn't relevant since autogrow is what happens when the free space runs out. It doesn't force any space to be used. 1% is probably rather low, but in any case it's usually best to use a fixed number of MB instead of a percentage (maybe 500 to 1000 given the size of your database). sp_spaceused is a good place to start for monitoring. There are more sophisticated techniques, which you should be able to read about on the internet.

John
Post #1233123
Posted Tuesday, January 10, 2012 6:36 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, July 16, 2014 12:02 PM
Points: 46, Visits: 519
I just need to understand one point. If I have free space = 99% or 40% doesn't that free space have to be consumed(or show as being reduced) before autogrowth kicks in?
Post #1233136
Posted Tuesday, January 10, 2012 6:38 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Thursday, November 20, 2014 8:50 PM
Points: 20,584, Visits: 9,623
Yes.
Post #1233138
Posted Tuesday, January 10, 2012 6:40 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 9:10 AM
Points: 5,437, Visits: 10,129
Yes, that's right. But of course once it's consumed or reduced, it's closer to 0% than to 40 or 99.

John
Post #1233140
Posted Tuesday, January 10, 2012 6:42 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, July 16, 2014 12:02 PM
Points: 46, Visits: 519
Thanks Ninja. Yes it's SQL 2000. So everyone would suggest that I change from percent to file growth in megabytes(500-2000_ but autogrowth would still be on.
Post #1233142
Posted Tuesday, January 10, 2012 6:44 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Thursday, November 20, 2014 8:50 PM
Points: 20,584, Visits: 9,623
Tim Jacobs-356724 (1/10/2012)
Thanks Ninja. Yes it's SQL 2000. So everyone would suggest that I change from percent to file growth in megabytes(500-2000_ but autogrowth would still be on.



Yes.


You need to test to make sure it can happen within 1-2 seconds so that the users don't wait on it.


Then search the internet for monitoring scripts. I have one but it's for 2K5+.
Post #1233145
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse