git: dm_target_crypt - use per-instance mpipes, KTR

Alex Hornung alexh at crater.dragonflybsd.org
Sat Jul 16 10:39:57 PDT 2011


commit d536b4086d659f000514219f614113f8dd2b9604
Author: Alex Hornung <ahornung at gmail.com>
Date:   Wed Jul 13 21:41:43 2011 +0100

    dm_target_crypt - use per-instance mpipes, KTR
    
     * Add KTR support (KTR_DMCRYPT) to monitor the read and write strategy
       paths.
    
     * Make the mpipes for reads and writes per-instance instead of for all
       targets. This solves the issue where two instances are interdependent
       and one starves the other, which will cause a deadlock. This way each
       instance is guaranteed to have some buffers.
    
     * Change the maximum size of the mpipes from 0.5% of physical memory to
       0.2%, as this limit is now per-instance and an average of 2 or 3
       crypt targets sounds reasonable.

Summary of changes:
 sys/conf/options                                |    1 +
 sys/config/LINT                                 |    1 +
 sys/config/LINT64                               |    1 +
 sys/dev/disk/dm/targets/crypt/Makefile          |    2 +-
 sys/dev/disk/dm/targets/crypt/dm_target_crypt.c |  100 ++++++++++++++++++-----
 5 files changed, 82 insertions(+), 23 deletions(-)

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


-- 
DragonFly BSD source repository





More information about the Commits mailing list