Brian Behlendorf
b0319c1faa
OpenZFS 7143 - dbuf_read() creates unnecessary zio_root() for bonus buf
...
dbuf_read() creates a zio_root() to track and wait for all the
zio's that may happen as part of this call. However, if the blkptr_t
for this buffer is NULL or a hole, we will not create any more zio's,
so this zio_root() is unnecessary. This is always the case when calling
dbuf_read() on a bonus buffer, because it has no blkptr (it's part of
the containing dnode). For workloads that read a lot of bonus buffers
(e.g. file creation and removal), creating and destroying these
unnecessary zio's can decrease performance by around 3%.
The fix is to only create/destroy the zio_root() in dbuf_read() if
the blkptr is not NULL and not a hole.
Changes sponsored by Intel Corp.
Authored by: Matthew Ahrens <mahrens@delphix.com >
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com >
Ported-by: Brian Behlendorf <behlendorf1@llnl.gov >
Issue openzfs/openzfs#137
Closes #4803
Closes #5382
2016-12-01 16:50:11 -07:00
..
2016-12-01 16:45:16 -07:00
2016-11-29 14:34:27 -08:00
2016-11-29 14:34:27 -08:00
2015-01-16 14:41:26 -08:00
2015-05-11 15:10:24 -07:00
2016-01-08 15:08:19 -08:00
2016-10-07 13:19:43 -07:00
2016-09-13 09:58:33 -07:00
2016-12-01 16:50:11 -07:00
2015-01-16 14:41:26 -08:00
2016-11-29 14:34:27 -08:00
2016-09-13 09:58:33 -07:00
2016-06-24 13:13:21 -07:00
2016-11-09 13:51:12 -08:00
2016-11-29 14:34:27 -08:00
2016-11-02 12:14:45 -07:00
2016-11-07 14:54:32 -08:00
2016-08-30 14:26:55 -07:00
2016-11-29 14:34:27 -08:00
2016-11-07 14:54:32 -08:00
2016-10-07 09:45:13 -07:00
2016-06-28 13:47:03 -07:00
2016-10-03 14:51:15 -07:00
2016-08-31 14:35:34 -07:00
2016-08-31 14:35:34 -07:00
2016-06-28 13:47:02 -07:00
2016-09-29 12:06:14 -07:00
2016-10-08 14:57:56 -07:00
2016-11-02 12:34:10 -07:00
2016-11-29 14:34:27 -08:00
2015-05-04 09:41:10 -07:00
2016-06-28 13:47:03 -07:00
2016-11-29 14:34:27 -08:00
2016-10-19 12:55:59 -07:00
2013-12-18 16:46:35 -08:00
2015-01-16 14:41:26 -08:00
2015-01-16 14:41:26 -08:00
2016-11-29 14:34:27 -08:00
2016-11-07 14:54:32 -08:00
2015-12-22 10:21:33 -08:00
2016-04-21 09:49:25 -07:00
2016-06-21 09:58:37 -07:00
2016-08-31 14:35:34 -07:00
2016-10-13 17:59:18 -07:00
2015-07-06 09:34:13 -07:00
2016-12-01 16:39:06 -07:00
2016-11-29 14:34:27 -08:00
2016-11-29 14:34:27 -08:00
2010-08-31 13:41:58 -07:00
2016-10-07 13:19:43 -07:00
2014-08-06 14:48:41 -07:00
2016-08-11 11:23:49 -07:00
2016-10-13 17:59:18 -07:00
2016-09-29 15:55:41 -07:00
2016-11-29 14:34:27 -08:00
2016-11-30 16:18:20 -07:00
2016-08-31 14:35:34 -07:00
2016-05-26 10:11:51 -07:00
2016-07-27 14:11:13 -07:00
2015-07-14 10:35:21 -07:00
2016-08-31 14:35:34 -07:00
2016-11-29 14:34:27 -08:00
2016-11-29 14:34:32 -08:00
2016-11-29 14:34:27 -08:00
2016-11-29 14:34:27 -08:00
2016-11-29 14:34:27 -08:00
2015-04-30 15:07:47 -07:00
2016-11-29 14:34:27 -08:00
2016-11-29 14:34:33 -08:00
2016-11-29 14:34:33 -08:00
2016-11-29 14:34:33 -08:00
2016-11-29 14:34:33 -08:00
2016-11-29 14:34:33 -08:00
2016-11-29 14:34:33 -08:00
2016-11-29 14:34:33 -08:00
2016-11-29 14:34:33 -08:00
2016-11-29 14:34:33 -08:00
2016-11-29 14:34:33 -08:00
2016-11-29 14:34:33 -08:00
2016-11-29 14:34:33 -08:00
2013-10-31 14:58:04 -07:00
2016-11-29 14:34:27 -08:00
2015-04-28 16:25:20 -07:00
2016-11-30 16:18:20 -07:00
2016-09-29 15:55:41 -07:00
2016-10-07 09:45:13 -07:00
2016-05-17 11:52:07 -07:00
2016-11-04 10:46:40 -07:00
2010-08-31 13:41:58 -07:00
2016-11-02 12:14:45 -07:00
2015-09-04 16:08:14 -07:00
2016-11-04 10:46:40 -07:00
2016-11-08 14:28:17 -08:00
2016-09-21 18:09:00 -07:00
2016-11-02 12:34:10 -07:00
2016-11-04 10:46:40 -07:00
2015-06-22 17:02:13 -07:00
2016-09-21 18:09:00 -07:00
2016-08-31 14:35:34 -07:00
2016-11-30 16:18:20 -07:00
2016-11-07 11:04:44 -08:00
2016-11-10 08:50:32 -08:00
2016-11-04 10:46:40 -07:00
2016-11-29 14:34:27 -08:00
2016-11-29 14:34:27 -08:00
2016-11-29 14:34:27 -08:00
2016-12-01 16:36:25 -07:00
2016-11-29 14:34:27 -08:00
2010-05-28 13:45:14 -07:00
2016-10-20 09:39:09 -07:00
2015-08-31 13:54:39 -07:00
2016-11-15 09:20:46 -08:00
2016-11-09 10:37:17 -08:00
2016-05-31 16:04:26 -07:00
2016-11-09 10:37:17 -08:00
2015-04-30 14:43:40 -07:00
2016-11-02 12:14:45 -07:00