All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/4] mm/page_reporting: Make page reporting work on arm64 with 64KB page size
@ 2021-06-25  4:21 Gavin Shan
  2021-06-25  4:21 ` [PATCH v5 1/4] mm/page_reporting: Fix code style in __page_reporting_request() Gavin Shan
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Gavin Shan @ 2021-06-25  4:21 UTC (permalink / raw)
  To: linux-mm
  Cc: linux-kernel, alexander.duyck, david, mst, akpm,
	anshuman.khandual, catalin.marinas, will, shan.gavin

The page reporting threshold is currently equal to @pageblock_order, which
is 13 and 512MB on arm64 with 64KB base page size selected. The page
reporting won't be triggered if the freeing page can't come up with a free
area like that huge. The condition is hard to be met, especially when the
system memory becomes fragmented.

This series intends to solve the issue by having page reporting threshold
as 5 (2MB) on arm64 with 64KB base page size. The patches are organized as:

   PATCH[1/4] Fix some coding style in __page_reporting_request().
   PATCH[2/4] Represents page reporting order with variable so that it can
              be exported as module parameter.
   PATCH[3/4] Allows the device driver (e.g. virtio_balloon) to specify
              the page reporting order when the device info is registered.
   PATCH[4/4] Specifies the page reporting order to 5, corresponding to
              2MB in size on ARM64 when 64KB base page size is used.

Changelog
=========
v5:
   * Restore @page_reporting_order to @pageblock_order when
     device is registered in PATCH[2/4] to keep "git bisect"
     friendly at least.                                           (Alex)
v4:
   * Set @page_reporting_order to MAX_ORDER. Its value is
     specified by the driver or falls back to @pageblock_order
     when page reporting device is registered.                    (Alex)
   * Include "module.h" in page_reporting.c                       (Andrew)
v3:
   * Avoid overhead introduced by function all                    (Alex)
   * Export page reporting order as module parameter              (Gavin)
v2:
   * Rewrite the patches as Alex suggested                        (Alex)

Gavin Shan (4):
  mm/page_reporting: Fix code style in __page_reporting_request()
  mm/page_reporting: Export reporting order as module parameter
  mm/page_reporting: Allow driver to specify reporting
  virtio_balloon: Specify page reporting order if needed

 .../admin-guide/kernel-parameters.txt         |  6 +++++
 drivers/virtio/virtio_balloon.c               | 17 ++++++++++++++
 include/linux/page_reporting.h                |  3 +++
 mm/page_reporting.c                           | 22 +++++++++++++++----
 mm/page_reporting.h                           |  5 ++---
 5 files changed, 46 insertions(+), 7 deletions(-)

-- 
2.23.0


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [PATCH v5 2/4] mm/page_reporting: Export reporting order as module parameter
@ 2021-06-26 19:13 kernel test robot
  0 siblings, 0 replies; 11+ messages in thread
From: kernel test robot @ 2021-06-26 19:13 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3078 bytes --]

CC: kbuild-all(a)lists.01.org
In-Reply-To: <20210625042150.46964-3-gshan@redhat.com>
References: <20210625042150.46964-3-gshan@redhat.com>
TO: Gavin Shan <gshan@redhat.com>
TO: linux-mm(a)kvack.org
CC: linux-kernel(a)vger.kernel.org
CC: alexander.duyck(a)gmail.com
CC: david(a)redhat.com
CC: mst(a)redhat.com
CC: akpm(a)linux-foundation.org
CC: anshuman.khandual(a)arm.com
CC: catalin.marinas(a)arm.com
CC: will(a)kernel.org
CC: shan.gavin(a)gmail.com

Hi Gavin,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linux/master]
[also build test WARNING on linus/master v5.13-rc7]
[cannot apply to hnaz-linux-mm/master next-20210625]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Gavin-Shan/mm-page_reporting-Make-page-reporting-work-on-arm64-with-64KB-page-size/20210625-102229
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 0c18f29aae7ce3dadd26d8ee3505d07cc982df75
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: x86_64-randconfig-b001-20210624 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9ca0171a9ffdef5fdb1511d197a3fd72490362de)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # apt-get install iwyu # include-what-you-use
        # https://github.com/0day-ci/linux/commit/4cc9b2b068826b954c7b5a434764960d759c6896
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Gavin-Shan/mm-page_reporting-Make-page-reporting-work-on-arm64-with-64KB-page-size/20210625-102229
        git checkout 4cc9b2b068826b954c7b5a434764960d759c6896
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross C=1 CHECK=iwyu ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


iwyu warnings: (new ones prefixed by >>)
   mm/page_reporting.c:8:1: iwyu: warning: superfluous #include <linux/delay.h>
   mm/page_reporting.c:2:1: iwyu: warning: superfluous #include <linux/mm.h>
>> mm/page_reporting.c:7:1: iwyu: warning: superfluous #include <linux/module.h>

vim +7 mm/page_reporting.c

4cc9b2b068826b Gavin Shan      2021-06-25  @7  #include <linux/module.h>
36e66c554b5c6a Alexander Duyck 2020-04-06   8  #include <linux/delay.h>
36e66c554b5c6a Alexander Duyck 2020-04-06   9  #include <linux/scatterlist.h>
36e66c554b5c6a Alexander Duyck 2020-04-06  10  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37466 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-06-28  9:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-25  4:21 [PATCH v5 0/4] mm/page_reporting: Make page reporting work on arm64 with 64KB page size Gavin Shan
2021-06-25  4:21 ` [PATCH v5 1/4] mm/page_reporting: Fix code style in __page_reporting_request() Gavin Shan
2021-06-25  4:21 ` [PATCH v5 2/4] mm/page_reporting: Export reporting order as module parameter Gavin Shan
2021-06-25  4:21 ` [PATCH v5 3/4] mm/page_reporting: Allow driver to specify reporting Gavin Shan
2021-06-25  4:21 ` [PATCH v5 4/4] virtio_balloon: Specify page reporting order if needed Gavin Shan
2021-06-25  5:58 ` [PATCH v5 0/4] mm/page_reporting: Make page reporting work on arm64 with 64KB page size Michael S. Tsirkin
2021-06-25  6:17   ` Gavin Shan
2021-06-25 14:18 ` Alexander Duyck
2021-06-25 14:18   ` Alexander Duyck
2021-06-28  9:45   ` Gavin Shan
2021-06-26 19:13 [PATCH v5 2/4] mm/page_reporting: Export reporting order as module parameter kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.