Linux Kernel Architecture
Chapter 18: Page Reclaim and Swapping thatrefill_inactive_zoneis among the longer functions in the kernel. It performs the follo ...
Chapter 18: Page Reclaim and Swapping Four values, whose meanings are given below, are calculated^12 : ❑ distressis the key indi ...
Chapter 18: Page Reclaim and Swapping Ultimately, the task ofshrink_active_listis to move a specific number of pages in the list ...
Chapter 18: Page Reclaim and Swapping following three conditions must apply before the page can be moved back to the start of th ...
Chapter 18: Page Reclaim and Swapping for synchronous writeout. In the first case, writeout requests are handed to the block lay ...
Chapter 18: Page Reclaim and Swapping Recall thatisolate_lru_pagesalso picks pages adjacent to the page frame of a page on the f ...
Chapter 18: Page Reclaim and Swapping Performing Page Reclaim shrink_page_listtakes a list of pages selected for reclaim and att ...
Chapter 18: Page Reclaim and Swapping the allocation order for which the current reclaim pass works must be below or equal to PA ...
Chapter 18: Page Reclaim and Swapping the swap space) inshrink_page_listafterward. Therefore the dirty bit is transferred from t ...
Chapter 18: Page Reclaim and Swapping Figure 18-18 shows the code flow diagram for the case that the page isnotdirty. Keep in mi ...
Chapter 18: Page Reclaim and Swapping 18.7 The Swap Token One of the methods to avoid page thrashing is the swap token, as brief ...
Chapter 18: Page Reclaim and Swapping faultstampcontains the value ofglobal_faultswhen the kernel tried to grab the token last. ...
Chapter 18: Page Reclaim and Swapping priority exceed the priority of the holder, then the token is taken from the holder and gi ...
Chapter 18: Page Reclaim and Swapping if (mm != current->mm && has_swap_token(mm) && rwsem_is_locked(&mm- ...
Chapter 18: Page Reclaim and Swapping Although the kernelreclaimsall pages in the same way regardless of their backing store, th ...
Chapter 18: Page Reclaim and Swapping If the page is not in the swap cache, the kernel must not only cause the page to be read, ...
Chapter 18: Page Reclaim and Swapping Page in cache? Return page read_swap_cache_async find_get_page alloc_page_vma add_to_swap_ ...
Chapter 18: Page Reclaim and Swapping corresponding mechanism for the swapping subsystem mechanism is relatively simple, as the ...
Chapter 18: Page Reclaim and Swapping 18.9.1 Periodic Reclaim with kswapd kswapdis a kernel daemon that is activated bykswap_ini ...
Chapter 18: Page Reclaim and Swapping if (order < new_order) { /* * Don’t sleep if someone wants a larger ’order’ * allocatio ...
«
51
52
53
54
55
56
57
58
59
60
»
Free download pdf