Chunwei Chen 7125a109dc Fix zpool history unbounded memory usage
In original implementation, zpool history will read the whole history
before printing anything, causing memory usage goes unbounded. We fix
this by breaking it into read-print iterations.

Reviewed-by: Tom Caputi <tcaputi@datto.com>
Reviewed-by: Matt Ahrens <matt@delphix.com>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chunwei Chen <david.chen@nutanix.com>
Closes #9516
2019-10-28 09:49:44 -07:00
..
2019-10-03 10:33:16 -07:00
2014-08-28 07:59:43 -07:00
2014-08-28 07:59:43 -07:00
2019-09-02 17:53:27 -07:00
2019-10-03 10:33:16 -07:00
2019-10-03 10:33:16 -07:00
2019-09-02 17:53:27 -07:00