All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] memblock tests: add tests for
@ 2022-09-25 21:26 Rebecca Mckeever
  2022-09-25 21:26 ` [PATCH 1/5] memblock tests: add range tests for memblock_alloc_exact_nid_raw Rebecca Mckeever
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Rebecca Mckeever @ 2022-09-25 21:26 UTC (permalink / raw)
  To: Mike Rapoport, linux-mm, linux-kernel; +Cc: David Hildenbrand, Rebecca Mckeever

These patches add tests for memblock_alloc_exact_nid_raw(). There are two
sets of tests: range tests and NUMA tests. The range tests use a normal
(i.e., UMA) simulated physical memory and set the nid to NUMA_NO_NODE. The
NUMA tests use a simulated physical memory that is set up with multiple
NUMA nodes. Additionally, most of these tests set nid != NUMA_NO_NODE.

The range tests are very similar to the range tests for
memblock_alloc_try_nid_raw(). The NUMA tests have the same setup as the
corresponding test for memblock_alloc_try_nid_raw(), but several of the
memblock_alloc_exact_nid_raw() tests fail to allocate memory in setups
where the memblock_alloc_try_nid_raw() test would allocate memory. Also,
some memblock_alloc_exact_nid_raw() tests drop the lower limit of the
requested range in order to allocate within the requested node, but the
same setup in a memblock_alloc_try_nid_raw() test allocates within the
requested range.

Rebecca Mckeever (5):
  memblock tests: add range tests for memblock_alloc_exact_nid_raw
  memblock tests: add top-down NUMA tests for
    memblock_alloc_exact_nid_raw
  memblock tests: add bottom-up NUMA tests for
    memblock_alloc_exact_nid_raw
  memblock tests: add generic NUMA tests for
    memblock_alloc_exact_nid_raw
  memblock tests: remove completed TODO item

 tools/testing/memblock/Makefile               |    2 +-
 tools/testing/memblock/TODO                   |    7 +-
 tools/testing/memblock/main.c                 |    2 +
 .../memblock/tests/alloc_exact_nid_api.c      | 2299 +++++++++++++++++
 .../memblock/tests/alloc_exact_nid_api.h      |   25 +
 5 files changed, 2328 insertions(+), 7 deletions(-)
 create mode 100644 tools/testing/memblock/tests/alloc_exact_nid_api.c
 create mode 100644 tools/testing/memblock/tests/alloc_exact_nid_api.h

-- 
2.25.1



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

end of thread, other threads:[~2022-09-25 21:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-25 21:26 [PATCH 0/5] memblock tests: add tests for Rebecca Mckeever
2022-09-25 21:26 ` [PATCH 1/5] memblock tests: add range tests for memblock_alloc_exact_nid_raw Rebecca Mckeever
2022-09-25 21:26 ` [PATCH 2/5] memblock tests: add top-down NUMA " Rebecca Mckeever
2022-09-25 21:26 ` [PATCH 3/5] memblock tests: add bottom-up " Rebecca Mckeever
2022-09-25 21:26 ` [PATCH 4/5] memblock tests: add generic " Rebecca Mckeever
2022-09-25 21:26 ` [PATCH 5/5] memblock tests: remove completed TODO item Rebecca Mckeever

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.