mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
Unevictable LRU Page Statistics
Report unevictable pages per zone and system wide. Kosaki Motohiro added support for memory controller unevictable statistics. [[email protected]: fix printk in show_free_areas()] [[email protected]: fix units in /proc/vmstats] Signed-off-by: Lee Schermerhorn <[email protected]> Signed-off-by: Rik van Riel <[email protected]> Signed-off-by: KOSAKI Motohiro <[email protected]> Debugged-by: Hiroshi Shimamoto <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
bbfd28eee9
commit
7b854121eb
5 changed files with 37 additions and 2 deletions
|
|
@ -70,6 +70,9 @@ static ssize_t node_read_meminfo(struct sys_device * dev,
|
|||
"Node %d Inactive(anon): %8lu kB\n"
|
||||
"Node %d Active(file): %8lu kB\n"
|
||||
"Node %d Inactive(file): %8lu kB\n"
|
||||
#ifdef CONFIG_UNEVICTABLE_LRU
|
||||
"Node %d Noreclaim: %8lu kB\n"
|
||||
#endif
|
||||
#ifdef CONFIG_HIGHMEM
|
||||
"Node %d HighTotal: %8lu kB\n"
|
||||
"Node %d HighFree: %8lu kB\n"
|
||||
|
|
@ -99,6 +102,9 @@ static ssize_t node_read_meminfo(struct sys_device * dev,
|
|||
nid, K(node_page_state(nid, NR_INACTIVE_ANON)),
|
||||
nid, K(node_page_state(nid, NR_ACTIVE_FILE)),
|
||||
nid, K(node_page_state(nid, NR_INACTIVE_FILE)),
|
||||
#ifdef CONFIG_UNEVICTABLE_LRU
|
||||
nid, K(node_page_state(nid, NR_UNEVICTABLE)),
|
||||
#endif
|
||||
#ifdef CONFIG_HIGHMEM
|
||||
nid, K(i.totalhigh),
|
||||
nid, K(i.freehigh),
|
||||
|
|
|
|||
Loading…
Reference in a new issue