Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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.

Filter by
Sorted by
Tagged with
-2 votes
0 answers
32 views

Does PLE have any relation to the backups performed? [duplicate]

Page life expectancy tells how many seconds a page remains in memory. Backup uses backup buffers which are separate to the sql server buffer pool memory. So this means that when a backup is performed, ...
user avatar
  • 2,305
0 votes
1 answer
34 views

How is the size of the buffer pool (data cache) calculated?

What is the formula for calculating the maximum size of the buffer pool (data cache) for SQL Server (when there is only one instance of the machine). Say the machine has 1 GB of physical memory, what ...
user avatar
  • 587
0 votes
1 answer
198 views

SQL Server RAM usage - how to find out where it is going?

Short Version SQL Server is using 34 GB of RAM. But when query the Memory Consumption Report, the buffer pool size, and the ad-hoc query size, it only adds up to around 2 GB. What is the other 32 GB ...
user avatar
  • 896
0 votes
3 answers
121 views

How Important is the buffer pool really?

I have been doing some testing of a new (virtual) server which is to replace an existing production server. We suspect the current production server is overspec'ed and therefore are tweaking the ...
user avatar
  • 1,450
-1 votes
1 answer
41 views

need to do some fine tuning on my Innodb Buffer

Evening all, I have a modest 6GB database running in MySQL 8.0.x.. my dedicated server is only running 4 cores and 8GB RAM and it doesn't really have any major running issues. after learning some ...
user avatar
-1 votes
1 answer
36 views

How to Create a user Dedicated innoDb Buffer pool or create a Query Dedicated innodb buffer pool

we are using 16 GB RAM and We have Allotted 4Gb space to Mysql InnoDB Buffer Pool IS there any way we can create multiple Buffer pool in INNoDB or Can we create a User Named Buffer Pool or Per Query ...
user avatar
1 vote
2 answers
61 views

MySQL:memory used by query joins does not get released

I have a MySQL db running on a 8cpu 24Gb machine. There are multiple scripts writing or reading from it at any point in time, often in parallel. My settings: [mysqld] innodb_buffer_pool_instances = 6 ...
user avatar
0 votes
1 answer
292 views

Why is InnoDB so painfully slow on full table scans even though entire data is in buffer pool?

Environment AMD Ryzen 9 5950X, 128GB 3200MHz Dual Channel Datacenter NVMe SSDs with 3GB/s+ read and write MariaDB 10.6.3 x64 Windows Server 2019 (same issue on Debian though) dedicated machine, no ...
user avatar
2 votes
2 answers
98 views

In SQL Server, what's the impact of a checkpoint to log records in log buffer?

Does checkpoint operations flush everything in the log buffer to log file? Or just the log records relating to the dirty pages that are about to be flushed? I found some inconsistent description about ...
user avatar
3 votes
1 answer
2k views

Buffer Pool scan took 10 seconds error

Using SQL server 2017 (14.0.3381.3) with Always On High Availability environment. Getting error:"Buffer Pool scan took 10 seconds: database ID 8, command 'CHECKPOINT', operation 'FlushCache', ...
user avatar
  • 184
0 votes
1 answer
100 views

Can large data deletion affect Innodb buffer pool performance? [duplicate]

At the beginning of this year we lunched a lot of massive data deletions (millions of rows per week) in our production database. Also, there is an automatic integration of new data (insert/updates) of ...
user avatar
0 votes
1 answer
87 views

Assign different RAM usage (buffer pool size) per db in mysql

I have quite some very large mysql databases (dev, production, staging, etc.) on a single server. Total size of indexes of all my databases is 64Gb. However, the InnoDB Buffer Pool is only 16Go, ...
user avatar
  • 101
1 vote
1 answer
361 views

Mysql 5.7 innodb_buffer_pool_size - zero I/O?

I have a question regarding Mysql server 5.7, put the correct value for innodb_buffer_pool_size or increase RAM. Maybe I'm wrong, I'm not an expert, but let me explain what is it about. Server ...
user avatar
0 votes
0 answers
440 views

MySQL: Configuring the right innodb_buffer_pool_instances and innodb_buffer_pool_chunk_size on RDS with huge RAM

We are on a db.r4.8xlarge MySQL (version 5.7.23) AWS RDS instance with 16 cores, 32 vCPUs, and 244GB RAM. We set the Buffer Pool Size to around 144GB at the default innodb_buffer_pool_chunk_size and ...
user avatar
3 votes
1 answer
979 views

I can´t change innodb_buffer_pool_instances

I recently updated my mariadb database to 10.5.5 and I can't set innodb_buffer_pool_instances innodb_log_file_size = 3G innodb_buffer_pool_size = 12G innodb_buffer_pool_instances = 12 But when ...
user avatar
  • 33
1 vote
1 answer
42 views

Reason for using write barrier before unlocking the buffer header in Postgresql

I was reading the source code for buffer management in Postgres. In buffer management, there is a macro to unlock the buffer header #define UnlockBufHdr(desc, s) \ do { \ ...
user avatar
0 votes
1 answer
4k views

MEMORYCLERK SQLBUFFERPOOL

SQL Buffer pool is consuming more memory in sql server 2017. Is there any way to reduce it?? or How can we find what is consuming more? We are receiving alert for low buffer cache hit ratio. ...
user avatar
  • 151
1 vote
1 answer
209 views

Sum of all Memory Clerks and Total Server Memory (KB)

I am trying to understand the memory management of SQL Server. I have a Windows Server 2019 on virtual environment with 64 GB of RAM. I also have SQL Server 2019 installed with Max Server Memory 59776 ...
user avatar
  • 1,163
1 vote
1 answer
39 views

Is filling up plan cache causes a decrease in space allocated for data cache?

SQL Server uses allocated server memory for different kind of purposes. Two of them are plan cache and data cache which are used to store execution plans and actual data correspondingly. My question: ...
user avatar
  • 1,163
2 votes
1 answer
222 views

Partitioning and the InnoDB Buffer Pool

I am trying to maintain a database that contains a table with 40 billion rows (7.2 terabytes) on a server using InnoDB as a storage engine and MariaDB with MySQL 5.5. When my database reaches about 2....
user avatar
3 votes
2 answers
640 views

New bufferpool not being used

As part of a migration, I created a new bufferpool - say BP8K - size 8K, and a tablespace using that bp, and a table in that tablespace, that is loaded with data. However, I get a: SQL1218N There ...
user avatar
  • 21.1k
2 votes
1 answer
56 views

Can we set the fixed size for both plan cache and data cache?

As far as I know, SQL Server automatically manages the size for the components of buffer pool. I wonder if it is possible to set pre-defined size for both plan cache and data cache?
user avatar
  • 1,163
3 votes
2 answers
2k views

Difference between Physical Reads and Read-Ahead Reads

I am trying to understand read-ahead reads, but it seems a bit complicated to me. I searched on the web and got the following: From Reading Pages (Microsoft documentation): Read-ahead anticipates the ...
user avatar
  • 1,163
6 votes
1 answer
107 views

At what point is a (disk-based) table removed from memory after data is read from it?

Are (disk-based, so no Hekaton) tables persisted in memory for longer than the lifespan of the query that is reading data from them? If so, what determines how long they stay in memory for? Is there ...
user avatar
  • 24.3k
1 vote
2 answers
1k views

What's the exact meaning of `innodb_max_dirty_pages_pct`, and how does it relate to the redo log?

I'm puzzled by the innodb_max_dirty_pages_pct parameter, and its relation to the redo log. The definition itself is simple: InnoDB tries to flush data from the buffer pool so that the percentage ...
user avatar
  • 327
1 vote
1 answer
102 views

Restore plan cache and buffer pool after database restore? [duplicate]

When restoring a database, is there a way to restore the plan cache so it doesn't have to be re-created during production use? Similar question: is there a way to pro-actively restore the buffer ...
user avatar
  • 435
2 votes
1 answer
133 views

Big Amount of <free_space_in_bytes> in Buffer Pool's Database Pages

We were viewing sys.dm_os_buffer_descriptors using below query select d.[name] [Database_Name], (count(file_id) * 8) / 1024 [...
user avatar
0 votes
0 answers
647 views

MySQL 5.7 isn't using new innodb buffer pool settings

I have a very tiny VM which keeps running out of memory. I believe this is due to the buffer pool size. Default appears to be 128M for innodb_buffer_pool_size and innodb_buffer_pool_chunk_size. So I'...
user avatar
  • 133
0 votes
1 answer
27 views

Amount of used cache / free cache

I need to find out how much cache is used, and if there is free cache available. Background: Queries on a production server take a lot of time when the server is under heavy load. I suspect that ...
user avatar
0 votes
2 answers
239 views

Least recently used replacement strategy - where is pin count stored?

I am reading a book on databases and a chapter in it talks about buffer manager and it's replacement strategies. The two popular replacement startegies mentioned are least recently used - LRU and ...
user avatar
  • 233
0 votes
1 answer
74 views

Direct database interaction with memory - how it works?

I am reading a book on databases and a chapter in it talks about buffer manager and it's replacement strategies. I've noticed that the DBMS interacts directly with memory, as opposed to asking OS to ...
user avatar
  • 233
8 votes
1 answer
377 views

Database Cache Memory in Performance Monitor drops down significantly after DBCC CheckDB

We have been monitoring some SQLServer: Memory Manager's metrics, and noticed that after DBCC CheckDB job, metric Database Cache Memory (KB) drops down significantly. If to be exact, it dropped ...
user avatar
1 vote
0 answers
165 views

How can I reproduce InnoDB buffer pool 'warm-up' time? What am I doing wrong with sysbench?

I've found that a large production DB experiences a severe degradation in performance, after a restart. It makes sense that this is because after a restart, the innoDB buffer pool isn't yet warmed up ...
user avatar
0 votes
0 answers
996 views

buffer overflow detected in mariadb 10.3.11

We are getting Assertion failure every time memory usage of MySQL spikes up to the overall system's memory. Example: InnoDB: Assertion failure in file /home/buildbot/buildbot/build/mariadb-10.3....
user avatar
2 votes
0 answers
340 views

SQL Server buffer cache smaller after reboot with same workload [closed]

We are hosting a SQL Server 2014 SP2 CU16 in a Windows Server 2016 64-bit environment for a customer. Performance has been fine for a long while. On March 31 at midnight, the database server ...
user avatar
0 votes
1 answer
82 views

Does Lazy Writer spend resources on flushing out pages from the buffer pool?

In MS SQL Server, does Lazy Writer spend resources to make pages out of the buffer pool after periodically checking free buffer list and marking some clean pages as free? Or free marked clean pages ...
user avatar
  • 2,006
1 vote
1 answer
548 views

How does SQL Server determine how much memory to allocate to Data cache

SQL Server Standard Edition has a limit to how much memory it can use for the data cache. With that in mind, how does Enterprise Edition decide how much memory it can use for the data cache? Lets ...
user avatar
  • 1,450
0 votes
1 answer
169 views

innodb cache duplication due to os page cache and buffer pool

We have set our innodb buffer pool 80% of total memory. Mysql page allocation gets stalled sometimes when page cache is occupying memory. Now since mysql is caching table rows and indexes and follows ...
user avatar
0 votes
1 answer
757 views

How does MySQL evict pages from the buffer pool?

I am trying to understand the internals of MySQL. I do know that MySQL's buffer pool management has an old/young page list as shows here. And I do know about the flushing of old dirty pages, such as ...
user avatar
  • 117
1 vote
1 answer
552 views

Cannot set innodb_buffer_pool_size above 1023M in my.ini

Windows server 2012 R2 with 64GB RAM, MySQL 8. The Database is about 5GB. I am using a buffer pool of 1023M, as shown below: innodb_buffer_pool_size=1023M If I enter anything above 1023M e.g. 1024M ...
user avatar
  • 11
0 votes
0 answers
352 views

MySQL connection timeout issues

We have a PXC environment with three nodes, and each node has 8GB of total RAM, with half of that (4G) dedicated to SWAP, and 3GB configured for Innodb-buffer_pool_size. Our developers have reported ...
user avatar
0 votes
2 answers
260 views

In Full recovery mode, when does the buffer/transaction log changes get applied to the database data pages?

When a change is to be made, the data page is fetched from the database data file into the buffer and changes are made to the buffer page and are also written to the transaction log. Write ahead ...
user avatar
  • 2,305
2 votes
0 answers
98 views

MySQL Queries Truncate Causing Connection Spikes

We have a MySQL Master Instance & Read (failover only) on AWS. MySQL 5.6 Aurora running Magento. Performance is great, and better than standard MySQL (we have high traffic site so see the benefits)...
user avatar
  • 21
4 votes
3 answers
5k views

Would my MySQL database benefit from increasing the InnoDB buffer pool size?

Of course, the answer is pretty much always "yes", but I'm interested in my specific situation. This is similar to Making sense of INNODB buffer pool stats but, IMO, a little more specific. First of ...
user avatar
3 votes
1 answer
2k views

getting innodb buffer usage

I am running MySQL 5.5.52 I am trying to see how much of my innodb buffer pool is used. If I run 'show engine innodb status' I see this: ---------------------- BUFFER POOL AND MEMORY -----------------...
user avatar
2 votes
0 answers
736 views

SQL Buffer Pool and Plan cache

Does SQL Buffer Pool size = Max server memory.? I have been trying to find out the reason why plan cache in my SQL server 2016 gets cleared every few hours. I have 128 GB Physical Memory. Earlier i ...
user avatar
  • 1,285
15 votes
4 answers
77k views

Memory Usage by SQL Server

How do i check memory usage by my SQL server in production box. I am using SQL Server 2016.When ever i check task manager,it shows above 90%. I don't think that is the real memory usage by sql server. ...
user avatar
  • 1,285
0 votes
1 answer
147 views

Permanent solution for Fixing buffer size

I have installed MySQL 5.7 on windows server 2016 and set the buffer pool size to 4 GB through SQL query but when the server is restarted buffer pool size getting reduced resulting in the slowness of ...
user avatar
  • 1
0 votes
1 answer
68 views

Querying MySQL InnoDB to find if the Record is in its Buffer Pool

For us, it is very important to get high response time for our website php script which queries a large database. It is essentially getting user information for the user who visited the page. There ...
user avatar
5 votes
1 answer
336 views

Dump the buffer pool to disk so it can be loaded after a restart

Is there a way to preserve the buffer pool cache so that is can be loaded in after a restart? My research suggests that other DB servers can do this but SQL Server is not one of them. I'm looking for ...
user avatar