Alexander Motin 465e4e795e
Remove duplicate dbufs accounting
Since AVL already has embedded element counter, use dn_dbufs_count
only for dbufs not counted there (bonus buffers) and just add them.
This removes two atomics per dbuf life cycle.

According to profiler it reduces time spent by dbuf_destroy() inside
bottlenecked dbuf_evict_thread() from 13.36% to 9.20% of the core.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matt Ahrens <matt@delphix.com>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored-By: iXsystems, Inc.
Closes #9949
2020-02-13 11:20:42 -08: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
2020-02-13 11:20:42 -08:00
2019-10-09 10:36:03 -07:00
2019-12-03 09:51:44 -08:00
2020-02-13 11:20:42 -08:00
2020-02-11 13:19:17 -08:00
2019-12-11 11:58:37 -08:00
2019-09-02 17:56:41 -07:00
2019-11-21 09:32:57 -08:00
2019-10-01 13:17:32 -07:00
2020-01-23 11:01:24 -08:00
2019-06-19 09:48:12 -07:00
2019-10-11 10:13:21 -07:00
2019-09-02 17:56:41 -07:00
2019-10-09 10:36:03 -07:00
2019-06-20 18:29:02 -07:00
2020-01-23 11:01:24 -08:00
2019-06-20 18:29:02 -07:00
2019-09-05 14:49:49 -07:00
2019-09-02 17:56:41 -07:00
2020-02-11 13:19:17 -08:00
2019-09-02 17:56:41 -07:00
2020-02-11 13:19:12 -08:00
2019-10-02 09:15:12 -07:00
2019-11-11 09:27:59 -08:00
2019-12-05 13:10:29 -08:00
2020-02-10 14:00:05 -08:00
2018-02-09 10:08:05 -08:00
2019-07-26 10:54:14 -07:00