Re: [PATCH v2 OLK-5.10 4/6] mm: swap_slots: add per-type slot cache

12 Jun
2023
12 Jun
'23
3:11 p.m.
On 2023/6/12 9:58, Kefeng Wang wrote:
之前的问题,底噪增加了多少 静态和运行态
On 2023/6/10 18:07, Liu Shixin wrote:
+static DEFINE_PER_CPU(struct swap_slots_cache [MAX_SWAPFILES], swp_type_slots); .
一个swap_slots_cache是80字节,MAX_SWAPFILES是32,按128核算,增长就是320K(80*32*128)。 每个swap_slots_cache里会挂128个swp_entry,每个8字节,MAX_SWAPFILES是32,按128核算,增长就是4M(128*8*32*128)。 这个swp_entry如果动态申请,每增加一个swap设备,就增长128K。
624
Age (days ago)
624
Last active (days ago)
0 comments
1 participants
participants (1)
-
Liu Shixin