Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing-VLFs accurate to 73728MB only #303

Open
walterse-leidos opened this issue Nov 7, 2023 · 0 comments
Open

Fixing-VLFs accurate to 73728MB only #303

walterse-leidos opened this issue Nov 7, 2023 · 0 comments

Comments

@walterse-leidos
Copy link

Growing the tlog size by 8192MB and predicting 16 new VLFs for each growth increment is only accurate up to 73728MB. After that, each new growth increment results in 1 new VLF. Therefore, the Potential VLFs begins to diverge from Actual VLFs quickly. At 122880MB, the script Potential VLFs is 240. However, the Actual VLFs achieved from growing the log from 1M to 122880MB in 8192MB increments is about 153.

This is because, "In SQL Server 2014 (12.x) and later versions, if the next growth is less than 1/8 of the current log physical size, then create 1 VLF that covers the growth size."

73728 * 1/8 = 9216
9216 < 8192 then create 1 VLF

Reference:
https://learn.microsoft.com/en-us/sql/relational-databases/sql-server-transaction-log-architecture-and-management-guide?view=sql-server-2016#virtual-log-file-creation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant