lkml.org 
[lkml]   [2018]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC PATCH 00/14] Heterogeneous Memory System (HMS) and hbind()
    On Tue, Dec 04, 2018 at 10:54:10AM -0800, Dave Hansen wrote:
    > On 12/4/18 10:49 AM, Jerome Glisse wrote:
    > > Policy is same kind of story, this email is long enough now :) But
    > > i can write one down if you want.
    >
    > Yes, please. I'd love to see the code.
    >
    > We'll do the same on the "HMAT" side and we can compare notes.

    Example use case ? Example use are:
    Application create a range of virtual address with mmap() for the
    input dataset. Application knows it will use GPU on it directly so
    it calls hbind() to set a policy for the range to use GPU memory
    for any new allocation for the range.

    Application directly stream the dataset to GPU memory through the
    virtual address range thanks to the policy.


    Application create a range of virtual address with mmap() to store
    the output result of GPU jobs its about to launch. It binds the
    range of virtual address to GPU memory so that allocation use GPU
    memory for the range.


    Application can also use policy binding as a slow migration path
    ie set a policy to a new target memory so that new allocation are
    directed to this new target.

    Or do you want example userspace program like the one in the last
    patch of this serie ?

    Cheers,
    Jérôme

    \
     
     \ /
      Last update: 2018-12-04 20:12    [W:4.156 / U:0.064 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site