forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove kmutex_t & kcondvar out of arc_buf_hdr_t
Under Linux these data types together consume around 100 bytes of space. Having them in the arc_buf_hdr_t makes them nearly 50% larger than they would be otherwise. When lock debugging is enabled it gets even larger. This patch moves them to a single global array to be shared similar to how the znode hold locks in zfs_sb work. We're trading some potential for artificial lock contention for drastically smaller kernel memory objects.
- Loading branch information
Showing
1 changed file
with
63 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters