Re: [PATCH] drm/gem: Mark pinned pages as unevictable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Kuo-Hsin Yang (2018-12-14 08:41:35)
> The gem drivers use shmemfs to allocate backing storage for gem objects.
> These shmemfs pages can be pinned by shmem_read_mapping_page_gfp(). Mark
> these pinned pages as unevictable to speed up vmscan. See also similar
> patch on i915 driver [1].

One difference to contemplate is that i915 does at least attempt to
invalidate the pinning under mempressure (via the shrinker) and release
the pages back to the system. Yes, the same argument about the
ineffectiveness of use the evictable LRU while the pages are pinned by
GEM is there, but in general we lack the alternative LRU and a means of
tracking how much memory is held.

Do you have a driver in mind (msm?) to demonstrate the use case?
 
> [1]: https://patchwork.freedesktop.org/patch/msgid/20181106132324.17390-1-chris@xxxxxxxxxxxxxxxxxx

Note that this first requires i915 merged into drm-misc-next.
-Chris
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux