Some neat buffer design information from SQL Server #465
GavinRay97
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Looks good. I'm planning an MVCC storage + txn manager for the next semester, and probably I will do more work on representing page layout... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I discovered there is a command in SQL Server you can use to get a memory dump + statistics on buffers in SQL Server
It's similar to the one that Postgres gives you, but more in depth about the layout and design of the underlying architecture + in-memory representation I think:
You can do this with:
Here is a buffer dump that corresponds to a table with the definition:
Some interesting things I noticed:
prev
andnext
pages aren't successive, even though this particular data was data created in oneINSERT
transaction.-335103495
means fortorn bits
? Is this a min value used as a toggle state maybe?Pretty neat if anyone else is interested in this stuff
Beta Was this translation helpful? Give feedback.
All reactions