Skip to contentSkip to conversation

incoming

DISCUSSION Andrew Morton 4 participants 7 messages Sep 23, 2019 – Sep 25, 2019 Memory management

lore
Share & tools
lore

Andrew Morton

author maintainer
#0 lore raw

- a few hot fixes

- ocfs2 updates

- almost all of -mm, as below.

134 patches, based on 619e17cf75dd58905aa67ccd494a6ba5f19d6cc6:

Subsystems affected by this patch series:

hotfixes
ocfs2
slab-generic
slab
slub
kmemleak
kasan
cleanups
debug
pagecache
memcg
gup
pagemap
memory-hotplug
sparsemem
vmalloc
initialization
z3fold
compaction
mempolicy
oom-kill
hugetlb
migration
thp
mmap
madvise
shmem
zswap
zsmalloc

Subsystem: hotfixes

OGAWA Hirofumi <[email protected]>:
fat: work around race with userspace's read via blockdev while mounting

Vitaly Wool <[email protected]>:
Revert "mm/z3fold.c: fix race between migration and destruction"

Arnd Bergmann <[email protected]>:
mm: add dummy can_do_mlock() helper

Vitaly Wool <[email protected]>:
z3fold: fix retry mechanism in page reclaim

Greg Thelen <[email protected]>:
kbuild: clean compressed initramfs image

Subsystem: ocfs2

Joseph Qi <[email protected]>:
ocfs2: use jbd2_inode dirty range scoping
jbd2: remove jbd2_journal_inode_add_[write|wait]

Greg Kroah-Hartman <[email protected]>:
ocfs2: further debugfs cleanups

Guozhonghua <[email protected]>:
ocfs2: remove unused ocfs2_calc_tree_trunc_credits()
ocfs2: remove unused ocfs2_orphan_scan_exit() declaration

zhengbin <[email protected]>:
fs/ocfs2/namei.c: remove set but not used variables fs/ocfs2/file.c: remove set but not used variables fs/ocfs2/dir.c: remove set but not used variables

Markus Elfring <[email protected]>:
ocfs2: delete unnecessary checks before brelse()

Changwei Ge <[email protected]>:
ocfs2: wait for recovering done after direct unlock request
ocfs2: checkpoint appending truncate log transaction before flushing

Colin Ian King <[email protected]>:
ocfs2: fix spelling mistake "ambigous" -> "ambiguous"

Subsystem: slab-generic

Waiman Long <[email protected]>:
mm, slab: extend slab/shrink to shrink all memcg caches

Subsystem: slab

Waiman Long <[email protected]>:
mm, slab: move memcg_cache_params structure to mm/slab.h

Subsystem: slub

Qian Cai <[email protected]>:
mm/slub.c: fix -Wunused-function compiler warnings

Subsystem: kmemleak

Nicolas Boichat <[email protected]>:
kmemleak: increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE default to 16K

Catalin Marinas <[email protected]>:
Patch series "mm: kmemleak: Use a memory pool for kmemleak object:
mm: kmemleak: make the tool tolerant to struct scan_area allocation failures
mm: kmemleak: simple memory allocation pool for kmemleak objects
mm: kmemleak: use the memory pool for early allocations

Qian Cai <[email protected]>:
mm/kmemleak.c: record the current memory pool size mm/kmemleak: increase the max mem pool to 1M

Subsystem: kasan

Walter Wu <[email protected]>:
kasan: add memory corruption identification for software tag-based mode

Mark Rutland <[email protected]>:
lib/test_kasan.c: add roundtrip tests

Subsystem: cleanups

Christophe JAILLET <[email protected]>:
mm/page_poison.c: fix a typo in a comment

YueHaibing <[email protected]>:
mm/rmap.c: remove set but not used variable 'cstart'

Matthew Wilcox (Oracle) <[email protected]>:
Patch series "Make working with compound pages easier", v2:
mm: introduce page_size()

"Matthew Wilcox (Oracle)" <[email protected]>:
mm: introduce page_shift()

Matthew Wilcox (Oracle) <[email protected]>:
mm: introduce compound_nr()

Yu Zhao <[email protected]>:
mm: replace list_move_tail() with add_page_to_lru_list_tail()

Subsystem: debug

Vlastimil Babka <[email protected]>:
Patch series "debug_pagealloc improvements through page_owner", v2:
mm, page_owner: record page owner for each subpage
mm, page_owner: keep owner info when freeing the page mm, page_owner, debug_pagealloc: save and dump freeing stack trace

Subsystem: pagecache

Konstantin Khlebnikov <[email protected]>:
mm/filemap.c: don't initiate writeback if mapping has no dirty pages mm/filemap.c: rewrite mapping_needs_writeback in less fancy manner

"Matthew Wilcox (Oracle)" <[email protected]>:
mm: page cache: store only head pages in i_pages

Subsystem: memcg

Chris Down <[email protected]>:
mm, memcg: throttle allocators when failing reclaim over memory.high

Roman Gushchin <[email protected]>:
mm: memcontrol: switch to rcu protection in drain_all_stock()

Johannes Weiner <[email protected]>:
mm: vmscan: do not share cgroup iteration between reclaimers

Subsystem: gup

[11~From: John Hubbard <[email protected]>:
Patch series "mm/gup: add make_dirty arg to put_user_pages_dirty_lock()",:
mm/gup: add make_dirty arg to put_user_pages_dirty_lock()

John Hubbard <[email protected]>:
drivers/gpu/drm/via: convert put_page() to put_user_page*() net/xdp: convert put_page() to put_user_page*()

Subsystem: pagemap

Wei Yang <[email protected]>:
mm: remove redundant assignment of entry

Minchan Kim <[email protected]>:
mm: release the spinlock on zap_pte_range

Nicholas Piggin <[email protected]>:
Patch series "mm: remove quicklist page table caches":
mm: remove quicklist page table caches

Mike Rapoport <[email protected]>:
ia64: switch to generic version of pte allocation
sh: switch to generic version of pte allocation
microblaze: switch to generic version of pte allocation
mm: consolidate pgtable_cache_init() and pgd_cache_init()

Kefeng Wang <[email protected]>:
mm: do not hash address in print_bad_pte()

Subsystem: memory-hotplug

David Hildenbrand <[email protected]>:
mm/memory_hotplug: remove move_pfn_range()
drivers/base/node.c: simplify unregister_memory_block_under_nodes() drivers/base/memory.c: fixup documentation of removable/phys_index/block_size_bytes driver/base/memory.c: validate memory block size early drivers/base/memory.c: don't store end_section_nr in memory blocks

Wei Yang <[email protected]>:
mm/memory_hotplug.c: prevent memory leak when reusing pgdat

David Hildenbrand <[email protected]>:
Patch series "mm/memory_hotplug: online_pages() cleanups", v2:
mm/memory_hotplug.c: use PFN_UP / PFN_DOWN in walk_system_ram_range() mm/memory_hotplug: drop PageReserved() check in online_pages_range() mm/memory_hotplug: simplify online_pages_range() mm/memory_hotplug: make sure the pfn is aligned to the order when onlining mm/memory_hotplug: online_pages cannot be 0 in online_pages()

Alastair D'Silva <[email protected]>:
Patch series "Add bounds check for Hotplugged memory", v3:
mm/memory_hotplug.c: add a bounds check to check_hotplug_memory_range() mm/memremap.c: add a bounds check in devm_memremap_pages()

Souptick Joarder <[email protected]>:
mm/memory_hotplug.c: s/is/if

Subsystem: sparsemem

Lecopzer Chen <[email protected]>:
mm/sparse.c: fix memory leak of sparsemap_buf in aligned memory mm/sparse.c: fix ALIGN() without power of 2 in sparse_buffer_alloc()

Wei Yang <[email protected]>:
mm/sparse.c: use __nr_to_section(section_nr) to get mem_section

Alastair D'Silva <[email protected]>:
mm/sparse.c: don't manually decrement num_poisoned_pages

"Alastair D'Silva" <[email protected]>:
mm/sparse.c: remove NULL check in clear_hwpoisoned_pages()

Subsystem: vmalloc

"Uladzislau Rezki (Sony)" <[email protected]>:
mm/vmalloc: do not keep unpurged areas in the busy tree

Pengfei Li <[email protected]>:
mm/vmalloc: modify struct vmap_area to reduce its size

Austin Kim <[email protected]>:
mm/vmalloc.c: move 'area->pages' after if statement

Subsystem: initialization

Mike Rapoport <[email protected]>:
mm: use CPU_BITS_NONE to initialize init_mm.cpu_bitmask

Qian Cai <[email protected]>:
mm: silence -Woverride-init/initializer-overrides

Subsystem: z3fold

Vitaly Wool <[email protected]>:
z3fold: fix memory leak in kmem cache

Subsystem: compaction

Yafang Shao <[email protected]>:
mm/compaction.c: clear total_{migrate,free}_scanned before scanning a new zone

Pengfei Li <[email protected]>:
mm/compaction.c: remove unnecessary zone parameter in isolate_migratepages()

Subsystem: mempolicy

Kefeng Wang <[email protected]>:
mm/mempolicy.c: remove unnecessary nodemask check in kernel_migrate_pages()

Subsystem: oom-kill

Joel Savitz <[email protected]>:
mm/oom_kill.c: add task UID to info message on an oom kill

Tetsuo Handa <[email protected]>:
memcg, oom: don't require __GFP_FS when invoking memcg OOM killer

Edward Chron <[email protected]>:
mm/oom: add oom_score_adj and pgtables to Killed process message

Yi Wang <[email protected]>:
mm/oom_kill.c: fix oom_cpuset_eligible() comment

Michal Hocko <[email protected]>:
mm, oom: consider present pages for the node size

Qian Cai <[email protected]>:
mm/memcontrol.c: fix a -Wunused-function warning

Michal Hocko <[email protected]>:
memcg, kmem: deprecate kmem.limit_in_bytes

Subsystem: hugetlb

Hillf Danton <[email protected]>:
Patch series "address hugetlb page allocation stalls", v2:
mm, reclaim: make should_continue_reclaim perform dryrun detection

Vlastimil Babka <[email protected]>:
mm, reclaim: cleanup should_continue_reclaim()
mm, compaction: raise compaction priority after it withdrawns

Mike Kravetz <[email protected]>:
hugetlbfs: don't retry when pool page allocations start to fail

Subsystem: migration

Pingfan Liu <[email protected]>:
mm/migrate.c: clean up useless code in migrate_vma_collect_pmd()

Subsystem: thp

Kefeng Wang <[email protected]>:
thp: update split_huge_page_pmd() comment

Song Liu <[email protected]>:
Patch series "Enable THP for text section of non-shmem files", v10;:
filemap: check compound_head(page)->mapping in filemap_fault()
filemap: check compound_head(page)->mapping in pagecache_get_page()
filemap: update offset check in filemap_fault()
mm,thp: stats for file backed THP
khugepaged: rename collapse_shmem() and khugepaged_scan_shmem() mm,thp: add read-only THP support for (non-shmem) FS mm,thp: avoid writes to file with THP in pagecache

Yang Shi <[email protected]>:
Patch series "Make deferred split shrinker memcg aware", v6:
mm: thp: extract split_queue_* into a struct
mm: move mem_cgroup_uncharge out of __page_cache_release()
mm: shrinker: make shrinker not depend on memcg kmem
mm: thp: make deferred split shrinker memcg aware

Song Liu <[email protected]>:
Patch series "THP aware uprobe", v13:
mm: move memcmp_pages() and pages_identical()
uprobe: use original page when all uprobes are removed mm, thp: introduce FOLL_SPLIT_PMD
uprobe: use FOLL_SPLIT_PMD instead of FOLL_SPLIT
khugepaged: enable collapse pmd for pte-mapped THP
uprobe: collapse THP pmd after removing all uprobes

Subsystem: mmap

Alexandre Ghiti <[email protected]>:
Patch series "Provide generic top-down mmap layout functions", v6:
mm, fs: move randomize_stack_top from fs to mm
arm64: make use of is_compat_task instead of hardcoding this test
arm64: consider stack randomization for mmap base only when necessary arm64, mm: move generic mmap layout functions to mm
arm64, mm: make randomization selected by generic topdown mmap layout
arm: properly account for stack randomization and stack guard gap
arm: use STACK_TOP when computing mmap base address
arm: use generic mmap top-down layout and brk randomization
mips: properly account for stack randomization and stack guard gap
mips: use STACK_TOP when computing mmap base address
mips: adjust brk randomization offset to fit generic version
mips: replace arch specific way to determine 32bit task with generic version
mips: use generic mmap top-down layout and brk randomization
riscv: make mmap allocation top-down by default

Wei Yang <[email protected]>:
mm/mmap.c: refine find_vma_prev() with rb_last()

Ivan Khoronzhuk <[email protected]>:
mm: mmap: increase sockets maximum memory size pgoff for 32bits

Subsystem: madvise

Mike Rapoport <[email protected]>:
mm/madvise: reduce code duplication in error handling paths

Subsystem: shmem

Miles Chen <[email protected]>:
shmem: fix obsolete comment in shmem_getpage_gfp()

Subsystem: zswap

Hui Zhu <[email protected]>:
zpool: add malloc_support_movable to zpool_driver
zswap: use movable memory if zpool support allocate movable memory

Vitaly Wool <[email protected]>:
zswap: do not map same object twice

Subsystem: zsmalloc

Qian Cai <[email protected]>:
mm/zsmalloc.c: fix a -Wunused-function warning

 Documentation/ABI/testing/sysfs-kernel-slab     |   13 
 Documentation/admin-guide/cgroup-v1/memory.rst  |    4 
 Documentation/admin-guide/kernel-parameters.txt |    2 
 arch/Kconfig                                    |   11 
 arch/alpha/include/asm/pgalloc.h                |    2 
 arch/alpha/include/asm/pgtable.h                |    5 
 arch/arc/include/asm/pgalloc.h                  |    1 
 arch/arc/include/asm/pgtable.h                  |    5 
 arch/arm/Kconfig                                |    1 
 arch/arm/include/asm/pgalloc.h                  |    2 
 arch/arm/include/asm/pgtable-nommu.h            |    5 
 arch/arm/include/asm/pgtable.h                  |    2 
 arch/arm/include/asm/processor.h                |    2 
 arch/arm/kernel/process.c                       |    5 
 arch/arm/mm/flush.c                             |    7 
 arch/arm/mm/mmap.c                              |   80 -----
 arch/arm64/Kconfig                              |    2 
 arch/arm64/include/asm/pgalloc.h                |    2 
 arch/arm64/include/asm/pgtable.h                |    2 
 arch/arm64/include/asm/processor.h              |    2 
 arch/arm64/kernel/process.c                     |    8 
 arch/arm64/mm/flush.c                           |    3 
 arch/arm64/mm/mmap.c                            |   84 -----
 arch/arm64/mm/pgd.c                             |    2 
 arch/c6x/include/asm/pgtable.h                  |    5 
 arch/csky/include/asm/pgalloc.h                 |    2 
 arch/csky/include/asm/pgtable.h                 |    5 
 arch/h8300/include/asm/pgtable.h                |    6 
 arch/hexagon/include/asm/pgalloc.h              |    2 
 arch/hexagon/include/asm/pgtable.h              |    3 
 arch/hexagon/mm/Makefile                        |    2 
 arch/hexagon/mm/pgalloc.c                       |   10 
 arch/ia64/Kconfig                               |    4 
 arch/ia64/include/asm/pgalloc.h                 |   64 ----
 arch/ia64/include/asm/pgtable.h                 |    5 
 arch/ia64/mm/init.c                             |    2 
 arch/m68k/include/asm/pgtable_mm.h              |    7 
 arch/m68k/include/asm/pgtable_no.h              |    7 
 arch/microblaze/include/asm/pgalloc.h           |  128 --------
 arch/microblaze/include/asm/pgtable.h           |    7 
 arch/microblaze/mm/pgtable.c                    |    4 
 arch/mips/Kconfig                               |    2 
 arch/mips/include/asm/pgalloc.h                 |    2 
 arch/mips/include/asm/pgtable.h                 |    5 
 arch/mips/include/asm/processor.h               |    5 
 arch/mips/mm/mmap.c                             |  124 +-------
 arch/nds32/include/asm/pgalloc.h                |    2 
 arch/nds32/include/asm/pgtable.h                |    2 
 arch/nios2/include/asm/pgalloc.h                |    2 
 arch/nios2/include/asm/pgtable.h                |    2 
 arch/openrisc/include/asm/pgalloc.h             |    2 
 arch/openrisc/include/asm/pgtable.h             |    5 
 arch/parisc/include/asm/pgalloc.h               |    2 
 arch/parisc/include/asm/pgtable.h               |    2 
 arch/powerpc/include/asm/pgalloc.h              |    2 
 arch/powerpc/include/asm/pgtable.h              |    1 
 arch/powerpc/mm/book3s64/hash_utils.c           |    2 
 arch/powerpc/mm/book3s64/iommu_api.c            |    7 
 arch/powerpc/mm/hugetlbpage.c                   |    2 
 arch/riscv/Kconfig                              |   12 
 arch/riscv/include/asm/pgalloc.h                |    4 
 arch/riscv/include/asm/pgtable.h                |    5 
 arch/s390/include/asm/pgtable.h                 |    6 
 arch/sh/include/asm/pgalloc.h                   |   56 ---
 arch/sh/include/asm/pgtable.h                   |    5 
 arch/sh/mm/Kconfig                              |    3 
 arch/sh/mm/nommu.c                              |    4 
 arch/sparc/include/asm/pgalloc_32.h             |    2 
 arch/sparc/include/asm/pgalloc_64.h             |    2 
 arch/sparc/include/asm/pgtable_32.h             |    5 
 arch/sparc/include/asm/pgtable_64.h             |    1 
 arch/sparc/mm/init_32.c                         |    1 
 arch/um/include/asm/pgalloc.h                   |    2 
 arch/um/include/asm/pgtable.h                   |    2 
 arch/unicore32/include/asm/pgalloc.h            |    2 
 arch/unicore32/include/asm/pgtable.h            |    2 
 arch/x86/include/asm/pgtable_32.h               |    2 
 arch/x86/include/asm/pgtable_64.h               |    3 
 arch/x86/mm/pgtable.c                           |    6 
 arch/xtensa/include/asm/pgtable.h               |    1 
 arch/xtensa/include/asm/tlbflush.h              |    3 
 drivers/base/memory.c                           |   44 +-
 drivers/base/node.c                             |   55 +--
 drivers/crypto/chelsio/chtls/chtls_io.c         |    5 
 drivers/gpu/drm/via/via_dmablit.c               |   10 
 drivers/infiniband/core/umem.c                  |    5 
 drivers/infiniband/hw/hfi1/user_pages.c         |    5 
 drivers/infiniband/hw/qib/qib_user_pages.c      |    5 
 drivers/infiniband/hw/usnic/usnic_uiom.c        |    5 
 drivers/infiniband/sw/siw/siw_mem.c             |   10 
 drivers/staging/android/ion/ion_system_heap.c   |    4 
 drivers/target/tcm_fc/tfc_io.c                  |    3 
 drivers/vfio/vfio_iommu_spapr_tce.c             |    8 
 fs/binfmt_elf.c                                 |   20 -
 fs/fat/dir.c                                    |   13 
 fs/fat/fatent.c                                 |    3 
 fs/inode.c                                      |    3 
 fs/io_uring.c                                   |    2 
 fs/jbd2/journal.c                               |    2 
 fs/jbd2/transaction.c                           |   12 
 fs/ocfs2/alloc.c                                |   20 +
 fs/ocfs2/aops.c                                 |   13 
 fs/ocfs2/blockcheck.c                           |   26 -
 fs/ocfs2/cluster/heartbeat.c                    |  109 +------
 fs/ocfs2/dir.c                                  |    3 
 fs/ocfs2/dlm/dlmcommon.h                        |    1 
 fs/ocfs2/dlm/dlmdebug.c                         |   55 ---
 fs/ocfs2/dlm/dlmdebug.h                         |   16 -
 fs/ocfs2/dlm/dlmdomain.c                        |    7 
 fs/ocfs2/dlm/dlmunlock.c                        |   23 +
 fs/ocfs2/dlmglue.c                              |   29 -
 fs/ocfs2/extent_map.c                           |    3 
 fs/ocfs2/file.c                                 |   13 
 fs/ocfs2/inode.c                                |    2 
 fs/ocfs2/journal.h                              |   42 --
 fs/ocfs2/namei.c                                |    2 
 fs/ocfs2/ocfs2.h                                |    3 
 fs/ocfs2/super.c                                |   10 
 fs/open.c                                       |    8 
 fs/proc/meminfo.c                               |    8 
 fs/proc/task_mmu.c                              |    6 
 include/asm-generic/pgalloc.h                   |    5 
 include/asm-generic/pgtable.h                   |    7 
 include/linux/compaction.h                      |   22 +
 include/linux/fs.h                              |   32 ++
 include/linux/huge_mm.h                         |    9 
 include/linux/hugetlb.h                         |    2 
 include/linux/jbd2.h                            |    2 
 include/linux/khugepaged.h                      |   12 
 include/linux/memcontrol.h                      |   23 -
 include/linux/memory.h                          |    7 
 include/linux/memory_hotplug.h                  |    1 
 include/linux/mm.h                              |   37 ++
 include/linux/mm_types.h                        |    1 
 include/linux/mmzone.h                          |   14 
 include/linux/page_ext.h                        |    1 
 include/linux/pagemap.h                         |   10 
 include/linux/quicklist.h                       |   94 ------
 include/linux/shrinker.h                        |    7 
 include/linux/slab.h                            |   62 ----
 include/linux/vmalloc.h                         |   20 -
 include/linux/zpool.h                           |    3 
 init/main.c                                     |    6 
 kernel/events/uprobes.c                         |   81 ++++-
 kernel/resource.c                               |    4 
 kernel/sched/idle.c                             |    1 
 kernel/sysctl.c                                 |    6 
 lib/Kconfig.debug                               |   15 
 lib/Kconfig.kasan                               |    8 
 lib/iov_iter.c                                  |    2 
 lib/show_mem.c                                  |    5 
 lib/test_kasan.c                                |   41 ++
 mm/Kconfig                                      |   16 -
 mm/Kconfig.debug                                |    4 
 mm/Makefile                                     |    4 
 mm/compaction.c                                 |   50 +--
 mm/filemap.c                                    |  168 ++++------
 mm/gup.c                                        |  125 +++-----
 mm/huge_memory.c                                |  129 ++++++--
 mm/hugetlb.c                                    |   89 +++++
 mm/hugetlb_cgroup.c                             |    2 
 mm/init-mm.c                                    |    2 
 mm/kasan/common.c                               |   32 +-
 mm/kasan/kasan.h                                |   14 
 mm/kasan/report.c                               |   44 ++
 mm/kasan/tags_report.c                          |   24 +
 mm/khugepaged.c                                 |  372 ++++++++++++++++++++----
 mm/kmemleak.c                                   |  338 +++++----------------
 mm/ksm.c                                        |   18 -
 mm/madvise.c                                    |   52 +--
 mm/memcontrol.c                                 |  188 ++++++++++--
 mm/memfd.c                                      |    2 
 mm/memory.c                                     |   21 +
 mm/memory_hotplug.c                             |  120 ++++---
 mm/mempolicy.c                                  |    4 
 mm/memremap.c                                   |    5 
 mm/migrate.c                                    |   13 
 mm/mmap.c                                       |   12 
 mm/mmu_gather.c                                 |    2 
 mm/nommu.c                                      |    2 
 mm/oom_kill.c                                   |   30 +
 mm/page_alloc.c                                 |   27 +
 mm/page_owner.c                                 |  127 +++++---
 mm/page_poison.c                                |    2 
 mm/page_vma_mapped.c                            |    3 
 mm/quicklist.c                                  |  103 ------
 mm/rmap.c                                       |   25 -
 mm/shmem.c                                      |   12 
 mm/slab.h                                       |   64 ++++
 mm/slab_common.c                                |   37 ++
 mm/slob.c                                       |    2 
 mm/slub.c                                       |   22 -
 mm/sparse.c                                     |   25 +
 mm/swap.c                                       |   16 -
 mm/swap_state.c                                 |    6 
 mm/util.c                                       |  126 +++++++-
 mm/vmalloc.c                                    |   84 +++--
 mm/vmscan.c                                     |  163 ++++------
 mm/vmstat.c                                     |    2 
 mm/z3fold.c                                     |  154 ++-------
 mm/zpool.c                                      |   16 +
 mm/zsmalloc.c                                   |   23 -
 mm/zswap.c                                      |   15 
 net/xdp/xdp_umem.c                              |    9 
 net/xdp/xsk.c                                   |    2 
 usr/Makefile                                    |    3 
 206 files changed, 2385 insertions(+), 2533 deletions(-)
#1 lore raw
Quoted 2 lines · Andrew Morton

- almost all of -mm, as below.

I was hoping that we could at least test the THP locality thing? Is it in your queue at all, or am I supposed to just do it myself?

Linus

author maintainer
#2 lore raw
Quoted 7 lines · On Mon, 23 Sep 2019 17:55:24 -0700 Linus Torvalds…
Quoted 2 lines · Andrew Morton

- almost all of -mm, as below.

I was hoping that we could at least test the THP locality thing? Is it in your queue at all, or am I supposed to just do it myself?

Confused. I saw a privately emailed patch from David which nobody seems to have tested yet. I parked that for consideration after -rc1. Or are you referring to something else?

This thing keeps stalling. It would be nice to push this along and get something nailed down which we can at least get into 5.4-rc, perhaps with a backport-this tag?

#3 lore raw
Quoted 10 lines · Andrew Morton
Quoted 7 lines · On Mon, 23 Sep 2019 17:55:24 -0700 Linus Torvalds…
Quoted 2 lines · Andrew Morton

- almost all of -mm, as below.

I was hoping that we could at least test the THP locality thing? Is it in your queue at all, or am I supposed to just do it myself?

Quoted 7 lines

Confused. I saw a privately emailed patch from David which nobody seems to have tested yet. I parked that for consideration after -rc1. Or are you referring to something else?

This thing keeps stalling. It would be nice to push this along and get something nailed down which we can at least get into 5.4-rc, perhaps with a backport-this tag?

The patch proposed by David is really non trivial wrt. potential side effects. I have provided my review feedback [1] and it didn't get any reaction. I really believe that we need to debug this properly. A reproducer would be useful for others to work on that.

There is a more fundamental problem here and we need to address it rather than to duck tape it and whack a mole afterwards.

[1] http://lkml.kernel.org/r/[email protected]

Signature · 2 lines
Michal Hocko
SUSE Labs
#4 lore raw
Quoted 3 lines · Michal Hocko

The patch proposed by David is really non trivial wrt. potential side effects.

The thing is, that's not an argument when we know that the current state is garbage and has a lot of these non-trivial side effects that are bad.

So the patch by David _fixes_ a non-trivial bad side effect.

You can't then say "there may be other non-trivial side effects that I don't even know about" as an argument for saying it's bad. David at least has numbers and an argument for his patch.

Linus

#5 lore raw
Quoted 9 lines · Linus Torvalds
Quoted 3 lines · Michal Hocko

The patch proposed by David is really non trivial wrt. potential side effects.

The thing is, that's not an argument when we know that the current state is garbage and has a lot of these non-trivial side effects that are bad.

Quoted 5 lines

So the patch by David _fixes_ a non-trivial bad side effect.

You can't then say "there may be other non-trivial side effects that I don't even know about" as an argument for saying it's bad. David at least has numbers and an argument for his patch.

All I am saying is that I am not able to wrap my head around this patch to provide a competent Ack. I also believe that the fix is targetting a wrong layer of the problem as explained in my review feedback. Appart from reclaim/compaction interaction mentioned by Vlastimil, it seems that it is an overly eager fallback to a remote node in the fast path that is causing a large part of the problem as well. Kcompactd is not eager enough to keep high order allocations ready for the fast path. This is not specific to THP we have many other high order allocations which are going to follow the same pattern, likely not visible in any counters but still having performance implications.

Let's discuss technical details in the respective email thread

Signature · 2 lines
Michal Hocko
SUSE Labs
#6 lore raw
In reply to Michal Hocko
Quoted 22 lines · Michal Hocko
Quoted 13 lines · Andrew Morton
Quoted 9 lines · On Mon, 23 Sep 2019 17:55:24 -0700 Linus Torvalds…
Quoted 2 lines · Andrew Morton

- almost all of -mm, as below.

I was hoping that we could at least test the THP locality thing? Is it in your queue at all, or am I supposed to just do it myself?

Quoted 7 lines

Confused. I saw a privately emailed patch from David which nobody seems to have tested yet. I parked that for consideration after -rc1. Or are you referring to something else?

This thing keeps stalling. It would be nice to push this along and get something nailed down which we can at least get into 5.4-rc, perhaps with a backport-this tag?

Quoted 7 lines

The patch proposed by David is really non trivial wrt. potential side effects. I have provided my review feedback [1] and it didn't get any reaction. I really believe that we need to debug this properly. A reproducer would be useful for others to work on that.

There is a more fundamental problem here and we need to address it rather than to duck tape it and whack a mole afterwards.

I believe we found a problem when investigating over-reclaim in this thread [1] where it seems madvised THP allocation attempt can result in 4MB reclaimed, if there is a small zone such as ZONE_DMA on the node. As it happens, the patch "[patch 090/134] mm, reclaim: make should_continue_reclaim perform dryrun detection" in Andrew's pile should change this 4MB to 32 pages reclaimed (as a side-effect), but that has to be tested. I'm also working on a patch to not reclaim even those few pages. Of course there might be more fundamental issues with reclaim/compaction interaction, but this one seems to become hopefully clear now.

[1]
https://lore.kernel.org/linux-mm/[email protected]/

Quoted 2 lines

[1] http://lkml.kernel.org/r/[email protected]