The first installment in this series introduced several data structures in the kernel's swap subsystem and described work to replace some of those with a new "swap table" structure. The work did not stop there, though; there is more modernization of the swap subsystem queued for an upcoming development cycle, and even more for multiple kernel releases after that. Once that work is done, the swap subsystem will be both simpler and faster than it is now.
本系列的第一篇文章介绍了内核交换(swap)子系统中的若干数据结构,并描述了用一种新的“swap table”结构来替换其中部分结构的工作。不过,这项工作并未止步于此;在即将到来的开发周期中,还有更多针对交换子系统的现代化改造排队等待合入,而且在之后的多个内核版本中也将继续推进。一旦这些工作完成,交换子系统将比现在更加简单,也更加高效。
The data structures introduced thus far include the swap cluster, which represents a 2MB set of swap slots within a swap file, and the new swap table, stored within the swap cluster, that tracks the state of each swap slot. The introduction of the swap table allowed the removal of entire arrays of XArray structures that were, prior to the 6.18 kernel relea
956




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



