Matthew Ahrens
325d288c5d
Add fast path for zfs_ioc_space_snaps() handling of empty_bpobj
...
When there are many snapshots, calls to zfs_ioc_space_snaps() (e.g. from
`zfs destroy -nv pool/fs@snap1%snap10000`) can be very slow, resulting
in poor performance because we are holding the dp_config_rwlock the
entire time, blocking spa_sync() from continuing. With around ten
thousand snapshots, we've seen up to 500 seconds in this ioctl,
iterating over up to 50,000,000 bpobjs, ~99% of which are the empty
bpobj.
By creating a fast path for zfs_ioc_space_snaps() handling of the
empty_bpobj, we can achieve a ~5x performance improvement of this ioctl
(when there are many snapshots, and the deadlist is mostly
empty_bpobj's).
Reviewed-by: Pavel Zakharov <pavel.zakharov@delphix.com >
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov >
Reviewed-by: Paul Dagnelie <pcd@delphix.com >
Signed-off-by: Matthew Ahrens <mahrens@delphix.com >
External-issue: DLPX-58348
Closes #8744
2019-08-20 11:34:52 -07:00
..
2018-08-02 11:59:24 -07:00
2018-11-08 16:47:24 -08:00
2019-07-18 13:02:33 -07:00
2018-02-20 11:19:42 -08:00
2019-03-29 09:13:20 -07:00
2019-06-11 09:02:31 -07:00
2018-06-06 09:35:59 -07:00
2018-09-26 10:29:26 -07:00
2019-08-16 09:08:21 -06:00
2010-09-08 12:38:56 -07:00
2017-10-05 19:28:00 -07:00
2017-07-07 11:28:01 -07:00
2019-07-26 10:54:14 -07:00
2019-07-26 10:54:14 -07:00
2014-08-06 14:48:41 -07:00
2019-06-19 09:48:12 -07:00
2018-06-06 09:35:59 -07:00
2019-02-12 10:41:15 -08: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-07-26 10:54:14 -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-19 09:48:12 -07:00
2018-09-26 10:29:26 -07:00
2019-07-25 11:57:58 -07:00
2019-07-26 10:54:14 -07:00
2019-06-24 16:44:01 -07:00
2019-06-22 16:32:26 -07:00
2019-06-20 12:29:51 -07:00
2019-06-19 09:48:12 -07:00
2019-08-20 11:34:52 -07:00
2019-06-24 16:44:01 -07:00
2019-07-26 10:54:14 -07:00
2019-07-26 10:54:14 -07:00
2019-07-26 10:54:14 -07:00
2016-01-12 10:53:12 -08:00
2018-04-14 12:16:17 -07:00
2019-06-22 16:51:46 -07:00
2013-11-04 11:17:48 -08:00
2016-10-03 14:51:15 -07:00
2017-01-03 11:31:18 -06:00
2017-12-07 10:28:50 -08:00
2017-10-11 16:54:48 -04:00
2019-07-16 10:11:49 -07:00
2019-08-16 09:08:21 -06:00
2019-08-16 09:08:21 -06:00
2019-03-21 12:47:57 -07:00
2016-04-05 18:55:59 -07:00
2019-06-25 12:03:38 -07:00
2018-05-29 16:00:33 -07:00
2018-07-30 11:30:03 -07:00
2018-10-03 15:30:55 -07:00
2019-06-19 09:48:12 -07:00
2019-07-15 13:57:56 -07:00
2016-06-07 09:16:52 -07:00
2019-08-05 14:34:27 -07:00
2019-08-13 21:24:43 -06:00
2018-09-26 10:29:26 -07:00
2018-09-26 10:29:26 -07:00
2018-02-13 14:54:54 -08:00
2017-07-25 23:09:48 -07:00
2016-10-03 14:51:15 -07:00
2016-10-03 14:51:15 -07:00
2010-09-08 12:38:56 -07:00
2019-01-13 10:09:46 -08:00
2016-06-02 14:30:51 -07:00
2019-08-13 08:11:57 -06:00
2019-07-16 10:11:49 -07:00
2019-08-13 21:24:43 -06:00
2019-07-16 10:11:49 -07:00
2014-07-22 09:39:16 -07:00
2017-07-12 21:28:13 -07:00
2019-07-08 11:20:53 -07:00
2019-07-08 11:20:53 -07:00
2016-05-26 10:11:51 -07:00
2019-07-08 11:20:53 -07:00
2019-07-08 11:20:53 -07:00
2019-07-08 11:20:53 -07:00
2019-07-08 11:20:53 -07:00
2019-07-08 11:20:53 -07:00
2019-07-08 11:20:53 -07:00
2019-07-08 11:20:53 -07:00
2019-07-08 11:20:53 -07:00
2019-07-08 11:20:53 -07:00
2019-07-08 11:20:53 -07:00
2019-07-08 11:20:53 -07:00
2019-07-08 11:20:53 -07:00
2018-06-04 14:56:06 -07:00
2019-06-22 16:51:46 -07:00
2010-09-08 12:38:56 -07:00
2010-09-08 12:38:56 -07:00
2019-03-21 12:47:57 -07:00
2017-07-13 13:54:00 -04:00
2018-10-16 11:11:24 -07:00
2013-11-04 10:55:25 -08:00
2010-09-08 12:38:56 -07:00
2018-07-23 15:40:15 -07:00
2016-12-21 10:47:15 -08:00
2019-07-16 10:11:49 -07:00
2018-04-14 12:16:17 -07:00
2018-04-14 12:16:17 -07:00
2019-03-29 09:13:20 -07:00
2019-07-12 09:31:20 -07:00
2019-07-12 09:31:20 -07:00
2019-06-13 13:12:39 -07:00
2019-03-29 09:13:20 -07:00
2019-03-29 09:13:20 -07:00
2018-06-19 21:51:18 -07:00
2017-03-07 09:51:59 -08:00
2018-04-18 14:19:50 -07:00
2019-06-12 13:13:09 -07:00
2018-02-08 15:28:18 -08:00
2018-02-08 15:28:18 -08:00
2018-02-08 15:28:18 -08:00
2019-06-22 16:51:46 -07:00
2016-05-17 11:52:07 -07:00
2018-02-13 14:54:54 -08:00
2019-07-17 09:18:24 -07:00
2017-03-10 09:51:33 -08:00
2019-07-16 10:11:49 -07:00
2018-05-29 16:00:33 -07:00
2019-02-12 10:41:15 -08:00
2018-05-29 16:00:33 -07:00
2019-06-19 09:48:12 -07:00
2010-09-08 12:38:56 -07:00
2018-02-13 14:54:54 -08:00
2018-03-04 17:34:51 -08:00
2018-10-11 10:19:33 -07:00
2018-02-13 14:54:54 -08:00
2010-09-08 12:38:56 -07:00
2018-09-06 21:44:52 -07:00
2019-06-19 09:48:12 -07:00
2018-05-02 15:01:24 -07:00
2019-08-13 21:21:27 -06:00
2019-06-10 11:48:42 -07:00
2019-06-10 11:48:42 -07:00
2017-03-29 12:24:51 -07:00
2019-06-13 13:14:34 -07:00
2018-05-02 15:36:20 -07:00
2019-03-29 09:13:20 -07:00
2019-03-29 09:13:20 -07:00
2019-06-19 14:54:02 -07:00
2018-06-19 21:51:18 -07:00
2017-01-12 09:42:11 -08:00
2019-07-26 10:54:14 -07:00
2017-07-12 13:05:37 -07:00