Mel Gorman
72403b4a0f
mm: numa: return the number of base pages altered by protection changes
...
Commit 0255d49184 ("mm: Account for a THP NUMA hinting update as one
PTE update") was added to account for the number of PTE updates when
marking pages prot_numa. task_numa_work was using the old return value
to track how much address space had been updated. Altering the return
value causes the scanner to do more work than it is configured or
documented to in a single unit of work.
This patch reverts that commit and accounts for the number of THP
updates separately in vmstat. It is up to the administrator to
interpret the pair of values correctly. This is a straight-forward
operation and likely to only be of interest when actively debugging NUMA
balancing problems.
The impact of this patch is that the NUMA PTE scanner will scan slower
when THP is enabled and workloads may converge slower as a result. On
the flip size system CPU usage should be lower than recent tests
reported. This is an illustrative example of a short single JVM specjbb
test
specjbb
3.12.0 3.12.0
vanilla acctupdates
TPut 1 26143.00 ( 0.00%) 25747.00 ( -1.51%)
TPut 7 185257.00 ( 0.00%) 183202.00 ( -1.11%)
TPut 13 329760.00 ( 0.00%) 346577.00 ( 5.10%)
TPut 19 442502.00 ( 0.00%) 460146.00 ( 3.99%)
TPut 25 540634.00 ( 0.00%) 549053.00 ( 1.56%)
TPut 31 512098.00 ( 0.00%) 519611.00 ( 1.47%)
TPut 37 461276.00 ( 0.00%) 474973.00 ( 2.97%)
TPut 43 403089.00 ( 0.00%) 414172.00 ( 2.75%)
3.12.0 3.12.0
vanillaacctupdates
User 5169.64 5184.14
System 100.45 80.02
Elapsed 252.75 251.85
Performance is similar but note the reduction in system CPU time. While
this showed a performance gain, it will not be universal but at least
it'll be behaving as documented. The vmstats are obviously different but
here is an obvious interpretation of them from mmtests.
3.12.0 3.12.0
vanillaacctupdates
NUMA page range updates 1408326 11043064
NUMA huge PMD updates 0 21040
NUMA PTE updates 1408326 291624
"NUMA page range updates" == nr_pte_updates and is the value returned to
the NUMA pte scanner. NUMA huge PMD updates were the number of THP
updates which in combination can be used to calculate how many ptes were
updated from userspace.
Signed-off-by: Mel Gorman <[email protected] >
Reported-by: Alex Thorlton <[email protected] >
Reviewed-by: Rik van Riel <[email protected] >
Cc: <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2013-11-13 12:09:11 +09:00
..
backing-dev.c
mm/backing-dev.c: check user buffer length before copying data to the related user buffer
2013-09-11 15:58:03 -07:00
balloon_compaction.c
mm: introduce a common interface for balloon pages mobility
2012-12-11 17:22:26 -08:00
bootmem.c
mm/bootmem.c: remove unused local `map'
2013-11-13 12:09:09 +09:00
bounce.c
mm/bounce.c: fix a regression where MS_SNAP_STABLE (stable pages snapshotting) was ignored
2013-09-30 14:31:02 -07:00
cleancache.c
mm: cleancache: clean up cleancache_enabled
2013-04-30 17:04:01 -07:00
compaction.c
mm/compaction.c: update comment about zone lock in isolate_freepages_block
2013-11-13 12:09:03 +09:00
debug-pagealloc.c
dmapool.c
dmapool: make DMAPOOL_DEBUG detect corruption of free marker
2012-12-11 17:22:24 -08:00
fadvise.c
teach SYSCALL_DEFINE<n> how to deal with long long/unsigned long long
2013-03-03 22:46:22 -05:00
failslab.c
filemap.c
mm: memcg: handle non-error OOM situations more gracefully
2013-10-16 21:35:53 -07:00
filemap_xip.c
lift sb_start_write() out of ->write()
2013-04-09 14:12:56 -04:00
fremap.c
mm: save soft-dirty bits on file pages
2013-08-13 17:57:48 -07:00
frontswap.c
frontswap: fix incorrect zeroing and allocation size for frontswap_map
2013-06-12 16:29:46 -07:00
highmem.c
Some nice cleanups, and even a patch my wife did as a "live" demo for
2012-12-20 08:37:05 -08:00
huge_memory.c
mm: thp: khugepaged: add policy for finding target node
2013-11-13 12:09:06 +09:00
hugetlb.c
mm: hugetlb: initialize PG_reserved for tail pages of gigantic compound pages
2013-10-16 21:35:52 -07:00
hugetlb_cgroup.c
cgroup: pass around cgroup_subsys_state instead of cgroup in file methods
2013-08-08 20:11:24 -04:00
hwpoison-inject.c
mm/hwpoison: fix the lack of one reference count against poisoned page
2013-09-30 14:31:03 -07:00
init-mm.c
internal.h
mm: vmscan: fix do_try_to_free_pages() livelock
2013-09-11 15:58:01 -07:00
interval_tree.c
mm: add CONFIG_DEBUG_VM_RB build option
2012-10-09 16:22:42 +09:00
Kconfig
mem-hotplug: introduce movable_node boot option
2013-11-13 12:09:09 +09:00
Kconfig.debug
kmemcheck.c
kmemleak-test.c
kmemleak.c
mm: kmemleak: avoid false negatives on vmalloc'ed objects
2013-11-13 12:09:07 +09:00
ksm.c
ksm: remove redundant __GFP_ZERO from kcalloc
2013-11-13 12:09:02 +09:00
list_lru.c
mm: list_lru: fix almost infinite loop causing effective livelock
2013-10-30 12:57:46 -07:00
maccess.c
madvise.c
mm/hwpoison: fix traversal of hugetlbfs pages to avoid printk flood
2013-09-30 14:31:02 -07:00
Makefile
list: add a new LRU list type
2013-09-10 18:56:30 -04:00
memblock.c
mm/memblock.c: introduce bottom-up allocation mode
2013-11-13 12:09:08 +09:00
memcontrol.c
memcg, kmem: use cache_from_memcg_idx instead of hard code
2013-11-13 12:09:10 +09:00
memory-failure.c
mm/memory-failure.c: move set_migratetype_isolate() outside get_any_page()
2013-11-13 12:09:04 +09:00
memory.c
mm: remove obsolete comments about page table lock
2013-11-13 12:09:03 +09:00
memory_hotplug.c
mem-hotplug: introduce movable_node boot option
2013-11-13 12:09:09 +09:00
mempolicy.c
mm/mempolicy: use NUMA_NO_NODE
2013-11-13 12:09:06 +09:00
mempool.c
mm/mempool.c: convert kmalloc_node(...GFP_ZERO...) to kzalloc_node(...)
2013-09-11 15:58:14 -07:00
migrate.c
Merge branch 'linus' into sched/core
2013-11-01 08:24:41 +01:00
mincore.c
swap: make each swap partition have one address_space
2013-02-23 17:50:17 -08:00
mlock.c
mm/mlock.c: prevent walking off the end of a pagetable in no-pmd configuration
2013-09-30 14:31:02 -07:00
mm_init.c
mm: numa: Change page last {nid,pid} into {cpu,pid}
2013-10-09 14:47:45 +02:00
mmap.c
mm: factor commit limit calculation
2013-11-13 12:09:11 +09:00
mmu_context.c
mm: remove old aio use_mm() comment
2013-05-07 18:38:27 -07:00
mmu_notifier.c
treewide: relase -> release
2013-06-28 14:34:33 +02:00
mmzone.c
mm: numa: Change page last {nid,pid} into {cpu,pid}
2013-10-09 14:47:45 +02:00
mprotect.c
mm: numa: return the number of base pages altered by protection changes
2013-11-13 12:09:11 +09:00
mremap.c
mm: revert mremap pud_free anti-fix
2013-10-16 21:35:53 -07:00
msync.c
nobootmem.c
mm/nobootmem.c: have __free_pages_memory() free in larger chunks.
2013-11-13 12:09:04 +09:00
nommu.c
mm: factor commit limit calculation
2013-11-13 12:09:11 +09:00
oom_kill.c
mm: memcg: handle non-error OOM situations more gracefully
2013-10-16 21:35:53 -07:00
page-writeback.c
writeback: fix negative bdi max pause
2013-10-16 21:35:53 -07:00
page_alloc.c
mm/page_alloc.c: fix comment in zlc_setup()
2013-11-13 12:09:11 +09:00
page_cgroup.c
memcontrol: use N_MEMORY instead N_HIGH_MEMORY
2012-12-12 17:38:32 -08:00
page_io.c
aio: Kill aio_rw_vect_retry()
2013-07-30 11:53:12 -04:00
page_isolation.c
mm: memory-hotplug: enable memory hotplug to handle hugepage
2013-09-11 15:57:48 -07:00
pagewalk.c
mm/pagewalk.c: fix walk_page_range() access of wrong PTEs
2013-10-30 14:27:03 -07:00
percpu-km.c
percpu-vm.c
percpu.c
mm, percpu: Make sure percpu_alloc early parameter has an argument
2012-12-02 06:23:04 -08:00
pgtable-generic.c
mm: move pgtable related functions to right place
2013-09-11 15:57:30 -07:00
process_vm_access.c
Fix: compat_rw_copy_check_uvector() misuse in aio, readv, writev, and security keys
2013-03-12 11:05:45 -07:00
quicklist.c
readahead.c
readahead: fix sequential read cache miss detection
2013-11-13 12:09:09 +09:00
rmap.c
thp: account anon transparent huge pages into NR_ANON_PAGES
2013-09-12 15:38:03 -07:00
shmem.c
initmpfs: make rootfs use tmpfs when CONFIG_TMPFS enabled
2013-09-11 15:59:37 -07:00
slab.c
memcg, kmem: rename cache_from_memcg to cache_from_memcg_idx
2013-11-13 12:09:10 +09:00
slab.h
memcg, kmem: rename cache_from_memcg to cache_from_memcg_idx
2013-11-13 12:09:10 +09:00
slab_common.c
memcg, kmem: rename cache_from_memcg to cache_from_memcg_idx
2013-11-13 12:09:10 +09:00
slob.c
mm/sl[aou]b: Move kmallocXXX functions to common code
2013-09-04 20:51:33 +03:00
slub.c
memcg, kmem: rename cache_from_memcg to cache_from_memcg_idx
2013-11-13 12:09:10 +09:00
sparse-vmemmap.c
sparse-vmemmap: specify vmemmap population range in bytes
2013-04-29 15:54:35 -07:00
sparse.c
mm/sparsemem: fix a bug in free_map_bootmem when CONFIG_SPARSEMEM_VMEMMAP
2013-11-13 12:09:06 +09:00
swap.c
mm: make lru_add_drain_all() selective
2013-09-12 15:38:02 -07:00
swap_state.c
lib/radix-tree.c: make radix_tree_node_alloc() work correctly within interrupt
2013-09-11 15:59:36 -07:00
swapfile.c
frontswap: enable call to invalidate area on swapoff
2013-11-13 12:09:07 +09:00
truncate.c
truncate: drop 'oldsize' truncate_pagecache() parameter
2013-09-12 15:38:02 -07:00
util.c
mm: factor commit limit calculation
2013-11-13 12:09:11 +09:00
vmalloc.c
mm: kmemleak: avoid false negatives on vmalloc'ed objects
2013-11-13 12:09:07 +09:00
vmpressure.c
Merge branch 'for-3.12' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
2013-09-03 18:25:03 -07:00
vmscan.c
mm/vmscan.c: don't forget to free shrinker->nr_deferred
2013-10-16 21:35:52 -07:00
vmstat.c
mm: numa: return the number of base pages altered by protection changes
2013-11-13 12:09:11 +09:00
zbud.c
mm/zbud: fix some trivial typos in comments
2013-09-11 15:57:35 -07:00
zswap.c
mm/zswap: refactor the get/put routines
2013-11-13 12:09:11 +09:00