On 2018-12-04 1:14 p.m., Andi Kleen wrote: >> Also, in the same vein, I think it's wrong to have the API enumerate all >> the different memory available in the system. The API should simply > We need an enumeration API too, just to display to the user what they > have, and possibly for applications to size their buffers > (all we do with existing NUMA nodes) Yes, but I think my main concern is the conflation of the enumeration API and the binding API. An application doesn't want to walk through all the possible memory and types in the system just to get some memory that will work with a couple initiators (which it somehow has to map to actual resources, like fds). We also don't want userspace to police itself on which memory works with which initiator. Enumeration is definitely not the common use case. And if we create a new enumeration API now, it may make it difficult or impossible to unify these types of memory with the existing NUMA node hierarchies if/when this gets more integrated with the mm core. Logan
- Re: [RFC PATCH 02/14] mm/hms: h... Jerome Glisse
- Re: [RFC PATCH 02/14] mm/hms: h... Logan Gunthorpe
- Re: [RFC PATCH 02/14] mm/hms: h... Jerome Glisse
- Re: [RFC PATCH 02/14] mm/hms: h... Logan Gunthorpe
- Re: [RFC PATCH 02/14] mm/hms: h... Jerome Glisse
- Re: [RFC PATCH 02/14] mm/hms: h... Logan Gunthorpe
- Re: [RFC PATCH 02/14] mm/hms: h... Jerome Glisse
- Re: [RFC PATCH 02/14] mm/hms: h... Dan Williams
- Re: [RFC PATCH 02/14] mm/hms: h... Jerome Glisse
- Re: [RFC PATCH 02/14] mm/hms: h... Andi Kleen
- Re: [RFC PATCH 02/14] mm/hms: h... Logan Gunthorpe
- Re: [RFC PATCH 02/14] mm/hms: h... Jerome Glisse
- Re: [RFC PATCH 02/14] mm/hms: heter... Dan Williams
- Re: [RFC PATCH 02/14] mm/hms: h... Jerome Glisse
- Re: [RFC PATCH 02/14] mm/hms: heterogenenous... Andi Kleen
- Re: [RFC PATCH 02/14] mm/hms: heterogene... Jerome Glisse
- Re: [RFC PATCH 02/14] mm/hms: heterogenenous... Aneesh Kumar K.V
- Re: [RFC PATCH 02/14] mm/hms: heterogene... Jerome Glisse
- Re: [RFC PATCH 02/14] mm/hms: heterogenenous memory ... Mike Rapoport
- [RFC PATCH 03/14] mm/hms: add target memory to heterogene... jglisse
- [RFC PATCH 11/14] mm/hbind: add bind command to heterogen... jglisse

