Files
mirror_zfs/module/os/linux/zfs
Ryan Moeller 009cc8e884 Make zc_nvlist_src_size limit tunable
We limit the size of nvlists passed to the kernel so a user cannot make
the kernel do an unreasonably large allocation.  On FreeBSD this limit
was 128 kiB, which turns out to be a bit too small when doing some
operations involving a large number of datasets or snapshots, for
example replication.

Make this limit tunable, with a platform-specific auto default.
Linux keeps its limit at KMALLOC_MAX_SIZE. FreeBSD uses 1/4 of the
system limit on user wired memory, which allows it to scale depending
on system configuration.

Reviewed-by: Matt Macy <mmacy@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org>
Issue #6572 
Closes #10706
2020-08-18 09:33:55 -07:00
..
2020-07-31 21:10:52 -07:00
2020-06-10 09:24:15 -07:00
2020-07-19 09:56:21 -07:00
2019-09-12 13:33:44 -07:00
2019-09-12 13:33:44 -07:00
2020-06-18 12:20:38 -07:00
2020-06-18 12:20:38 -07:00
2020-02-27 09:31:02 -08:00
2020-04-10 10:33:35 -07:00
2020-06-18 12:20:38 -07:00
2020-06-18 12:20:38 -07:00
2020-06-18 12:20:38 -07:00
2020-06-18 12:20:38 -07:00