git: tmpfs - Handle low memory situations a little better

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Jun 26 17:58:20 PDT 2013


commit 3c54bb74e9a98e332ae20757f62d0aeb3c2267c9
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Jun 26 17:34:58 2013 -0700

    tmpfs - Handle low memory situations a little better
    
    * When memory starts to get low start bdwrite()ing buffers on file
      write instead of buwrite()ing them to force the data to start staging
      through the buffer cache.
    
    * Rename some generic defines BSIZE / BMASK -< TMPFS_BLKSIZE / TMPFS_BLKMASK
    
    * Set b_act_count to 0 and B_RELBUF in the pageout case to force the
      underlying VM pages to recycle to the inactive queue after the I/O is
      complete.

Summary of changes:
 sys/vfs/tmpfs/tmpfs.h       |  5 +++--
 sys/vfs/tmpfs/tmpfs_subr.c  |  7 ++++---
 sys/vfs/tmpfs/tmpfs_vnops.c | 44 ++++++++++++++++++++++++++++++++++----------
 3 files changed, 41 insertions(+), 15 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3c54bb74e9a98e332ae20757f62d0aeb3c2267c9


-- 
DragonFly BSD source repository


More information about the Commits mailing list