Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-17463

enable/disable page cache shrinker for mlocked pages on OSC layer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • 3
    • 9223372036854775807

      Those pages mapped into VM_LOCKED [mlock()ed] VMAs should be unevictable pages:
      i.e. mlocked pages via mlock() or mlockall() (see the URL for details: https://www.kernel.org/doc/html/v4.19/vm/unevictable-lru.html).

      However, OSC page cache shrinker treats all cached page equally even some of them are unelectable. It may evict the mlocked pages wrongly.

      We should disable page cache shrinker to avoid it evicting mlocked pages.

            qian_wc Qian Yingjin
            qian_wc Qian Yingjin
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: