linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [LSF/MM/BPF TOPIC] userspace control of memory management
@ 2023-03-01  0:15 Frank van der Linden
  2023-03-02  3:10 ` David Rientjes
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Frank van der Linden @ 2023-03-01  0:15 UTC (permalink / raw)
  To: linux-mm

I propose this discussion topic for LSF/MM/BPF.

In a world where memory topologies are becoming more complicated, is
it still possible to have an approach where the kernel deals with
memory management to everyone's satisfaction?

The answer seemingly has been "not quite", since madvise and mempolicy
exist. With things like cxl.mem coming into existence, a heterogeneous
memory setup will become more common.

The number of madvise options keeps growing. There is now a
process_madvise, and there are proposed extensions for the mempolicy
systemcalls, allowing one process to control the policy of another, as
well. There are exported cgroup interfaces to control reclaim, and
discussions have taken place on explicit control reclaim-as-demotion
to other nodes.

Is this the right approach? If so, would it be a good idea to
optionally provide BPF hooks to control certain behavior, and let
userspace direct things even more? Is that even possible,
performance-wise? Would it make sense to be able to influence the
MGLRU generation process in a more direct way if needed?

I think a discussion about these points would be interesting. Or, I
should say, further discussion.

What do you think?

Thanks,

- Frank


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

end of thread, other threads:[~2023-05-04 18:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-01  0:15 [LSF/MM/BPF TOPIC] userspace control of memory management Frank van der Linden
2023-03-02  3:10 ` David Rientjes
     [not found] ` <CAPTztWY49XP-7GDHuvV2fNDCeJzd0vAac6n+rJ9KfWr6cyZ5ww@mail.gmail.com>
2023-04-28 14:18   ` [Lsf-pc] Fwd: " Michal Hocko
2023-04-28 14:54     ` Matthew Wilcox
2023-04-28 17:47       ` Michal Hocko
2023-05-04 18:47     ` Hao Luo
2023-04-28 15:00 ` Lorenzo Stoakes

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