Files
mirror_zfs/module/zfs
Paul Dagnelie f664f1ee7f Decrease contention on dn_struct_rwlock
Currently, sequential async write workloads spend a lot of time 
contending on the dn_struct_rwlock. This lock is responsible for 
protecting the entire block tree below it; this naturally results 
in some serialization during heavy write workloads. This can be 
resolved by having per-dbuf locking, which will allow multiple 
writers in the same object at the same time.

We introduce a new rwlock, the db_rwlock. This lock is responsible 
for protecting the contents of the dbuf that it is a part of; when 
reading a block pointer from a dbuf, you hold the lock as a reader. 
When writing data to a dbuf, you hold it as a writer. This allows 
multiple threads to write to different parts of a file at the same 
time.

Reviewed by: Brad Lewis <brad.lewis@delphix.com>
Reviewed by: Matt Ahrens matt@delphix.com
Reviewed by: George Wilson george.wilson@delphix.com
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
External-issue: DLPX-52564
External-issue: DLPX-53085
External-issue: DLPX-57384
Closes #8946
2019-07-08 13:18:50 -07:00
..
2015-01-16 14:41:26 -08:00
2019-06-19 09:48:12 -07:00
2019-06-19 09:48:12 -07:00
2019-07-08 13:18:50 -07:00
2019-06-19 14:54:02 -07:00
2019-06-19 09:48:12 -07:00
2019-05-07 15:18:44 -07:00
2019-06-19 09:48:12 -07:00
2019-06-19 09:48:12 -07:00
2019-06-19 09:48:12 -07:00
2019-06-24 16:44:01 -07:00
2019-07-08 13:18:50 -07:00
2019-06-19 09:48:12 -07:00
2019-06-19 09:48:12 -07:00
2019-06-19 09:48:12 -07:00
2018-05-29 16:00:33 -07:00
2019-06-19 09:48:12 -07:00
2019-06-24 16:44:01 -07:00
2019-06-19 09:48:12 -07:00
2018-05-29 16:00:33 -07:00
2019-06-19 09:48:12 -07:00
2018-05-29 16:00:33 -07:00
2017-10-11 16:54:48 -04:00
2019-05-02 16:46:04 -07:00
2015-01-16 14:41:26 -08:00
2019-06-19 09:48:12 -07:00
2019-06-19 09:48:12 -07:00
2018-05-29 16:00:33 -07:00
2019-06-19 09:48:12 -07:00
2018-10-01 10:42:05 -07:00
2018-03-15 10:53:58 -07:00
2010-08-31 13:41:58 -07:00
2018-05-29 16:00:33 -07:00
2019-05-23 19:17:00 -07:00
2019-06-19 14:54:02 -07:00
2018-05-29 16:00:33 -07:00
2019-06-20 18:29:02 -07:00
2019-06-20 18:29:02 -07:00
2019-03-29 09:13:20 -07:00
2019-06-20 18:29:02 -07:00
2019-06-20 18:29:02 -07:00
2016-11-29 14:34:33 -08:00
2019-06-20 18:29:02 -07:00
2019-06-20 18:29:02 -07:00
2019-03-29 09:13:20 -07:00
2019-06-12 13:13:09 -07:00
2018-05-29 16:00:33 -07:00
2018-05-29 16:00:33 -07:00
2019-06-24 16:44:01 -07:00
2019-06-10 11:48:42 -07:00
2018-05-29 16:00:33 -07:00
2018-02-13 14:54:54 -08:00
2019-06-19 09:48:12 -07:00
2019-05-25 14:29:10 -07:00
2019-06-10 11:48:42 -07:00
2019-03-15 14:14:31 -07:00
2018-02-09 10:08:05 -08:00
2018-05-29 16:00:33 -07:00