linux-numa.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Memory policy change handling and callbacks for a new HW feature
@ 2014-11-26 15:12 Serge A
  0 siblings, 0 replies; only message in thread
From: Serge A @ 2014-11-26 15:12 UTC (permalink / raw)
  To: linux-numa

We are trying to see how to adapt a new hardware feature (of our) with NUMA.

This feature takes ownership of an area of kernel memory which, in NUMA 
machine, is spread among the different nodes; one in each node. This means 
with two nodes -> two areas, four nodes -> four areas...

These areas are managed by a kernel driver.

A user application can make use of this HW feature by allocating (via the 
driver by mean of IO_CTRL) a buffer from these areas.

In this case we would have (at the application level) a vma mapped to the 
just reserved buffer.

We want to associate these buffers to the right node according to the 
memory policy.

The 'mapped vma to the buffer' design is very convenient as changing the 
memory policy of the buffer address range (mbind API) 

causes a calls to the driver via vm_operations_struct.set_policy callback 
and we can then take the right action; moving buffer to other nodes.



A problem occurs when the policy is being changed at the process scope, for 
example numa_set_membind() API call. In this case we do not get any 
callback and I do not see how we can handle this policy change when it 
happens.

We registered to vm_operations_struct.migrate callback, but I could not see 
any invocation of it either.



Does anyone have a suggestion about the right way to handle this?



Thanks,

Serge

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-11-26 15:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-26 15:12 Memory policy change handling and callbacks for a new HW feature Serge A

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).