freebsd-skq/common
Alexander Motin af8040b47a 9238 ZFS Spacemap Encoding V2
The current space map encoding has the following disadvantages:
[1] Assuming 512 sector size each entry can represent at most 16MB for a segment.
This makes the encoding very inefficient for large regions of space.
[2] As vdev-wide space maps have started to be used by new features (i.e.
device removal, zpool checkpoint) we've started imposing limits in the
vdevs that can be used with them based on the maximum addressable offset
(currently 64PB for a top-level vdev).

The new remains backwards compatible with the old one. The introduced
two-word entry format, besides extending the limits imposed by the single-entry
layout, also includes a vdev field and some extra padding after its prefix.

The extra padding after the prefix should is reserved for future usage (e.g.
new prefixes for future encodings or new fields for flags). The new vdev field
not only makes the space maps more self-descriptive, but also opens the doors
for pool-wide space maps.

One final important note is that the number of bits used for vdevs is reduced
to 24 bits for blkptrs. That was decided as we don't know of any setups that
use more than 16M vdevs for the time being and
we wanted to fit the vdev field in the space map. In addition that gives us
some extra bits in dva_t.

illumos/illumos-gate@17f11284b4

Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <gwilson@zfsmail.com>
Approved by: Gordon Ross <gwr@nexenta.com>
Author: Serapheim Dimitropoulos <serapheim@delphix.com>
2018-07-30 22:56:24 +00:00
..
acl 6762 POSIX write should imply DELETE_CHILD on directories - and 2016-05-11 12:58:12 +00:00
atomic 5043 remove deprecated atomic functions' prototypes 2014-08-20 06:20:06 +00:00
avl 6091 avl_add doesn't assert on non-debug builds 2015-09-11 20:43:14 +00:00
ctf 4474 DTrace Userland CTF Support 2014-06-03 01:24:46 +00:00
list Update vendor-sys/opensolaris to last OpenSolaris state (13149:b23a4dab3d50) 2012-07-18 08:12:04 +00:00
nvpair 7812 Remove gender specific language 2017-04-14 18:22:42 +00:00
unicode Update vendor-sys/opensolaris to last OpenSolaris state (13149:b23a4dab3d50) 2012-07-18 08:12:04 +00:00
util OS-1723 DTrace should speak JSON 2014-06-26 19:48:59 +00:00
zfs 9238 ZFS Spacemap Encoding V2 2018-07-30 22:56:24 +00:00