]> granicus.if.org Git - zfs/commit
zdb -vvvvv on ztest pool dies with "out of memory"
authorPaul Dagnelie <pcd@delphix.com>
Tue, 25 Jun 2019 19:50:38 +0000 (12:50 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 25 Jun 2019 19:50:37 +0000 (12:50 -0700)
commit3fab4d9e08aa1471c5c34bf7fdc2632bf4a7d494
tree682288be0f0b010760ec8fd05c68ab62a3bd5a2d
parentfc7546777ba15a7fff651cd803bf521f592d8379
zdb -vvvvv on ztest pool dies with "out of memory"

ztest creates some extremely large files as part of its
operation. When zdb tries to dump a large enough file, it
can run out of memory or spend an extremely long time
attempting to print millions or billions of uint64_ts.

We cap the amount of data from a uint64 object that we
are willing to read and print.

Reviewed-by: Don Brady <don.brady@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
External-issue: DLPX-53814
Closes #8947
cmd/zdb/zdb.c