• xinhui pan's avatar
    use rbtree instead of vm_objects list · 888ce3c6
    xinhui pan authored
    
    
    simple test of mapping many system memory to gpu.
    before
    [ RUN      ] KFDMemoryTest.MMap
    [          ] Using ISA for GFXIP 9.0
    [          ] successfully register/map 32GB system memory to gpu
    [       OK ] KFDMemoryTest.MMap (36932 ms)
    
    after
    [ RUN      ] KFDMemoryTest.MMap
    [          ] Using ISA for GFXIP 9.0
    [          ] successfully register/map 32GB system memory to gpu
    [       OK ] KFDMemoryTest.MMap (11441 ms)
    
    So there is 11s VS 36s improvement.
    
    Looks like we can do something similar with vm_area too.
    
    Change-Id: I0349aacdeddec3534016d28176f0fabf632c61fc
    Signed-off-by: default avatarxinhui pan <xinhui.pan@amd.com>
    888ce3c6
This project is licensed under the Other. Learn more