git: dm_target_crypt - use per-instance mpipes, KTR

看板DFBSD_commit作者時間14年前 (2011/07/17 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit d536b4086d659f000514219f614113f8dd2b9604 Author: Alex Hornung <ahornung@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
文章代碼(AID): #1E8T7kC4 (DFBSD_commit)