git: DragonFly_RELEASE_5_8 tmpfs - Too aggressive during paging

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Apr 23 19:03:55 PDT 2020


commit 45858d0c0730e05b1a5681f53b3a9e1d227d3e99
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/45858d0c0730e05b1a5681f53b3a9e1d227d3e99


-- 
DragonFly BSD source repository



More information about the Commits mailing list