In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
What is the state of Cache buffer, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
Buffer States
The database uses internal algorithms to manage buffers in the cache. Buffers can be in any of the following mutually exclusive states:
■ Unused
The buffer is available because it has never been used or is not currently in use. This type of buffer is the easiest to use in the database.
■ Clean
This buffer has been used before and now contains a read-consistent version of the block at a point in time. The block contains data, but is "clean", so it does not need to be checked. The database can lock the block and reuse it.
■ Dirty
The buffer contains modified data that has not been written to disk. The database must check the block before reusing it.
Each buffer has an access mode: fixed or idle (unpinned). The buffer is "fixed" in the cache so that when a user session accesses it, it does not age due to insufficient memory. Multiple sessions cannot modify fixed buffers at the same time.
The database uses complex algorithms to improve buffer access efficiency. Pointers to dirty and non-dirty buffers exist in the same least recently used (LRU) list, which has a hot end and a cold end. Cold buffers are buffers that have not been used recently. Hot buffers are frequently accessed and have recently been used
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.