Questions tagged [buffer-pool]
A place in system memory that is used for caching table and index data pages as they are modified or read from disk.
114 questions
4
votes
2
answers
733
views
Is MEMORYCLERK_SQLBUFFERPOOL how much RAM I'm actually using or how much I could be using?
This lovely query of Glenn Berry's lets you see what is in your buffer pool.
SELECT fg.name AS [Filegroup Name], SCHEMA_NAME(o.Schema_ID) AS [Schema Name],
OBJECT_NAME(p.[object_id]) AS [Object Name], ...
0
votes
1
answer
120
views
Mysql huge table vs small ram allocation
We have a percona mysql database where one of the table which is touching almost 26.8Gb in size. The server is just 4Gb but its specifically only hosting mysql. Now when I am trying to run a simple ...
0
votes
3
answers
272
views
OS memory usage is high, but MS Sql server has plenty of free memory
On sql server 2019, I occasionally get "Physical Memory pressure" alert.
When I check the memory usage, I get two different cases.
There is a large memory in free pages.
Can anyone explain ...
3
votes
1
answer
640
views
Is sys.dm_os_memory_clerks a good source to use when setting max server memory (MB)?
According to sys.dm_os_memory_clerks, the total RAM usage of my server was 30 GB. Using this information, I set max server memory (MB) to 31,000. I was shocked to then see sys.dm_os_memory_clerks ...
0
votes
1
answer
87
views
Problem with saving data SQL
For some time now I have had a problem with saving data in the database.
The problem is that after a sudden shutdown of the server, the data that was sent a minute earlier from the application was not ...
0
votes
1
answer
160
views
Do stolen pages (as in sys.dm_os_performance_counters) report anything that sys.dm_os_memory_clerks does not?
I have been under the misconception that SELECT * FROM sys.dm_os_performance_counters WHERE counter_name LIKE 'Stolen Server Memory%'; shows how much memory the OS is stealing from SQL Server. The ...
0
votes
1
answer
66
views
Is Monitoring Buffer Pages Too Noisy To Be Useful?
I quite like dbatools, so I gave Get-DbaDbMemoryUsage (docs here) a try on my production SQL Server 2019 server. Specifically, I ran this
Get-DbaDbMemoryUsage -SqlInstance [MyProdServer] -...
0
votes
1
answer
109
views
76% of the RAM usage on my server is TEXT_MIX_PAGE in tempdb. What does this indicate?
I quite like dbatools, so I gave Get-DbaDbMemoryUsage (docs here) a try on my test SQL Server 2019 server. Specifically, I ran this
Get-DbaDbMemoryUsage -SqlInstance [MyServer] -IncludeSystemDbs |
...
1
vote
1
answer
442
views
Trying to understand the buffer pool usage - actual usage greatly exceeds the total from
I am reviewing the buffer pool size and usage on a setup that was recently moved to a machine with more RAM (new machine has 256 GiB). MySQL server version is 5.7.42.
The total data size in the DB (...
1
vote
2
answers
431
views
Why does MySQL puts ANALYZE queries into `System Lock` state, when there is intense I/O
On MySQL 8.0.33, I'm experiencing a form of contention (reproduced on multiple instances) that is not explained by the documentation.
As example:
I boot an instance
on a console client, I invoke a ...
1
vote
1
answer
179
views
View memory usage by database on an SQL server
My team (no DBAs in the team) is responsible for a database hosted on an SQL server with multiple other databases used by other areas of the business. Memory usage has recently been spiking to 100% on ...
2
votes
4
answers
119
views
Buffer Pool caching in Sql clarification
I might sound a little naive to ask this question but I couldn’t find out the answer anywhere.
So my understanding is that the buffer in a sql db maintains disk pages in cache so that when a query ...
2
votes
2
answers
914
views
How to identify if my innodb buffer pool is choking ? (and should i increase it ?)
We have a mysql box where i do rigorous scans/aggregations every few minutes (~ 35GB of data). Innodb buffer pool is ~ 1.5GB.
Off late i have started noticing a few latent queries, where the 'read ...
1
vote
1
answer
65
views
What is the Rule of thumb for alerting on`mysql.innodb.buffer_pool_reads / mysql.innodb.buffer_pool_read_requests`?
Is there a rule of thumb for monitoring mysql.innodb.buffer_pool_reads / mysql.innodb.buffer_pool_read_requests?
I am using the following formula, but I'm starting to think it's too sensitive.
(mysql....
1
vote
1
answer
732
views
SQL Server - Find Memory ALLOCATED vs. Memory ACTUALLY USED
I want to find average Memory USED per day.
SQL server caches as much data as possible in RAM (Buffer Cache) - this is ALLOCATED RAM
But how much of this data does it actually read subsequently - this ...