Buffer Pool scan took 25 seconds:

udhayan d 181 Reputation points
2023-02-19T11:30:03.0533333+00:00

Hi,

I had recently faced an issue. My AWS EC2 instance CPU suddenly started hitting 100% and it did not come down for sometime. Only option I had was to reboot the node so that all DBs failed over to mirror partner.

I could see this multiple abnormal buffer pool scan messages in SQL server log recorded during the issue period.

Buffer Pool scan took 25 seconds: database ID 22, command 'CHECKPOINT', operation 'FlushCache', scanned buffers 3126941, total iterated buffers 26200740, wait time 918 ms. See 'https://go.microsoft.com/fwlink/?linkid=2132602' for more information.

Could not get much details about this error. Its the same usual workload and nothing changed in the application. I did check my workload at that time in foglight PI and most of the queries were waiting for the CPU, so I dont think any workload is a culprit here and my queries were just the victim of this issue, just waiting for the CPU in runnable state.

Does this error severely impact the host and max out the CPU? If this is an issue how can I address this one?

Thanks

Community Center | Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
    2023-02-19T12:47:24.4166667+00:00

    If you had actually tried the link in the error message, you would have gotten a good summary of this message.

    In your case, I guess you got this message because you decided to fail over. This is a situation where the need to scan the buffer pool to find dirty buffers.

    As the article says, on SQL 2019 and earlier you will have to live with this state of affairs. In SQL 2022, they have improved the situation by making the buffer pool scan a parallel operation.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.