]> granicus.if.org Git - zfs/commit
Increase ZFS_OBJ_MTX_SZ to 256
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 27 Nov 2012 21:32:57 +0000 (13:32 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 27 Nov 2012 21:46:32 +0000 (13:46 -0800)
commit30315d237bb23226476b348bc591589c80597351
tree38a004c7ec41f62a222497cdea16c7fd93f6512b
parent0e20a31b4bb7f9745fe6d5cafe513c9c1df3e933
Increase ZFS_OBJ_MTX_SZ to 256

Increasing this limit costs us 6144 bytes of memory per mounted
filesystem, but this is small price to pay for accomplishing
the following:

* Allows for up to 256-way concurreny when performing lookups
  which helps performance when there are a large number of
  processes.

* Minimizes the likelyhood of encountering the deadlock
  described in issue #1101.  Because vmalloc() won't strictly
  honor __GFP_FS there is still a very remote chance of a
  deadlock.  See the zfsonlinux/spl@043f9b57 commit.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1101
include/sys/zfs_vfsops.h