mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/1] selftests: bpf: fix test_lru_sanity3
@ 2026-09-25 15:38 Eva Kurchatova
  2026-09-25 15:38 ` [PATCH bpf-next v2 1/1] selftests: bpf: size the map in test_lru_sanity3 to whole refills Eva Kurchatova
  0 siblings, 1 reply; 3+ messages in thread
From: Eva Kurchatova @ 2026-09-25 15:38 UTC (permalink / raw)
  Cc: linux-kernel, bpf

Changes in v2:
- Skip the test where __tgt_size(tgt_free) is 0 instead of forcing
  batch_size to 1. With one element per refill the forced shrink on the
  last insert evicts a live key, so v1 failed above 128 cpus, where the
  original test still passed by degenerating.
- Drop assert(__tgt_size(map_size) == batch_size), it holds for every
  batch_size and cpu count and checked nothing.
- Cut the comment above map_size to one line.
- Reword to better explain the cause of the failure.
- Sent separately from rest of v1 patchset.

Link to v1: https://lore.kernel.org/bpf/20260917015605.2464043-2-eva.kurchatova@virtuozzo.com/

Eva Kurchatova (1):
  selftests: bpf: size the map in test_lru_sanity3 to whole refills

 tools/testing/selftests/bpf/test_lru_map.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

-- 
2.55.0


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

end of thread, other threads:[~2026-09-25 16:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-25 15:38 [PATCH bpf-next v2 0/1] selftests: bpf: fix test_lru_sanity3 Eva Kurchatova
2026-09-25 15:38 ` [PATCH bpf-next v2 1/1] selftests: bpf: size the map in test_lru_sanity3 to whole refills Eva Kurchatova
2026-09-25 16:42   ` bot+bpf-ci

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®