git: vkernel - Improve memory image file startup

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Sep 14 19:37:39 PDT 2010


commit b72e51d1c25ac5e8162f41e1a83d2f263672ea73
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Sep 14 15:59:28 2010 -0700

    vkernel - Improve memory image file startup
    
    * Remove the code that pre-filled a memory image file with zeros.  It's
      completely worthless, particularly with HAMMER.
    
    * On startup truncate the memory file to 0 and then extend to the
      memory size, deleting any backing store from the prior vkernel run.
      The new file will start out full of holes.
    
      This greatly improves vkernel startup time.

Summary of changes:
 sys/platform/vkernel/platform/init.c   |   28 ++++++----------------------
 sys/platform/vkernel64/platform/init.c |   28 ++++++----------------------
 2 files changed, 12 insertions(+), 44 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b72e51d1c25ac5e8162f41e1a83d2f263672ea73


-- 
DragonFly BSD source repository





More information about the Commits mailing list