git: tmpfs - Too aggressive during paging

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Apr 22 14:30:12 PDT 2020


commit 108fbfcb638dfba95b469dc6dce6190c73a0a932
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Apr 22 14:27:17 2020 -0700

    tmpfs - Too aggressive during paging
    
    * tmpfs was being a bit too aggressive during paging.  We were trying to
      bypass all the way to PQ_CACHE as well as unconditionally age the
      buffers.  This caused the pageout daemon to thrash on any underlying
      tmpfs pages that were being re-referenced quickly.
    
    * Change the defaults to (1) Not try to flush all the way to PQ_CACHE
      unless the system is in an extreme low memory condition.  And (2) to
      only B_AGE the buffer when the system is paging and otherwise allow
      it to cycle normally.

Summary of changes:
 sys/vfs/tmpfs/tmpfs_vnops.c | 50 +++++++++++++++++++++++++++++++--------------
 1 file changed, 35 insertions(+), 15 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/108fbfcb638dfba95b469dc6dce6190c73a0a932


-- 
DragonFly BSD source repository


More information about the Commits mailing list