]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/arc.c
Use vmem_size() for 32-bit systems
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 31 Oct 2016 19:24:54 +0000 (19:24 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 2 Nov 2016 19:14:45 +0000 (12:14 -0700)
commit9edb36954a0d11ca867d49e23b6b3bd4d1d16c5d
treea46b58a177b484cf81a84fe42128e040bcb3cd7a
parent82ec9d41d85b1643402493bf72a7e7d2896b7310
Use vmem_size() for 32-bit systems

On 32-bit Linux systems use vmem_size() to correctly size the ARC
and better determine when IO should be throttle due to low memory.

On 64-bit systems this change has no effect since the virtual
address space available far exceeds the physical memory available.

Reviewed-by: Tom Caputi <tcaputi@datto.com>
Reviewed-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #5347
module/zfs/arc.c