mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/3] fs/resctrl: Use kvzalloc_objs() for large allocations
@ 2026-11-25 16:47 Ben Horgan
  2026-11-25 16:47 ` [PATCH v3 1/3] fs/resctrl: Allocate rmid_ptrs[] using kvzalloc_objs() Ben Horgan
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ben Horgan @ 2026-11-25 16:47 UTC (permalink / raw)
  To: ben.horgan
  Cc: tony.luck, reinette.chatre, x86, Dave.Martin, james.morse,
	babu.moger, fenghuay, bp, linux-kernel

When running an MPAM model with lots of PARTIDs and PMGs I hit an allocation
failure in rmid_ptrs[].  Such failures are unlikely to be seen on a real system
but addressing them helps testing. Patch 3 open codes a kvzalloc_objs() based
allocation of a bitmap as I didn't think this was sufficient justification to
add the proper helpers in the bitmap code. Please let me know if this is the
right way to go. I made this the last patch so that it doesn't need to hold up
the other two patches.

Changes since v2:
Patch 1 unchanged
Pathes 2 and 3 are new to address other large allocations (Reinette)

v2: https://lore.kernel.org/lkml/20260911160608.1091121-1-ben.horgan@arm.com/

Ben Horgan (3):
  fs/resctrl: Allocate rmid_ptrs[] using kvzalloc_objs()
  fs/resctrl: Allocate the arrays in struct rdt_l3_mon_domain using
    kvzalloc_objs()
  fs/resctrl: Allocate rdt_l3_mon_domain::rmid_busy_llc using
    kvzalloc_objs()

 fs/resctrl/monitor.c  |  4 ++--
 fs/resctrl/rdtgroup.c | 18 ++++++++----------
 2 files changed, 10 insertions(+), 12 deletions(-)


base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
-- 
2.43.0


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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 16:47 [PATCH v3 0/3] fs/resctrl: Use kvzalloc_objs() for large allocations Ben Horgan
2026-11-25 16:47 ` [PATCH v3 1/3] fs/resctrl: Allocate rmid_ptrs[] using kvzalloc_objs() Ben Horgan
2026-11-25 16:47 ` [PATCH v3 2/3] fs/resctrl: Allocate the arrays in struct rdt_l3_mon_domain " Ben Horgan
2026-11-25 16:47 ` [PATCH v3 3/3] fs/resctrl: Allocate rdt_l3_mon_domain::rmid_busy_llc " Ben Horgan

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®