This latch is needed when user processes try to scan the LRU (least recently used) chain containing blocks in the buffer cache. This latch must be acquired before the block can be inserted into (when the block is read in from the disk) or taken out of the LRU chain (when the block is written down to the disk).
Solutions
- Consider implementing multiple buffer pools to reduce contention on this latch.
- Increase the number of LRU latches with the parameter DB_BLOCK_LRU_LATCHES. Generally the default value works.
- Reduce data blocks visited by a query and thereby reduce LRU latch requests in the buffer pool by tuning the SQL.
转载于:https://blog.51cto.com/maclean/1277884
本文探讨了当用户尝试扫描包含缓冲缓存中最近最少使用的块的LRU链时,需要使用latch的原因。建议通过实现多个缓冲池、增加LRUlatches参数值或调整SQL来减少查询对缓冲池的LRU链路请求,从而优化性能。
923

被折叠的 条评论
为什么被折叠?



