zfs/module/os/linux/spl
Michael Niewöhner 66955885e2 Make use of kvmalloc if available and fix vmem_alloc implementation
This patch implements use of kvmalloc for GFP_KERNEL allocations, which
may increase performance if the allocator is able to allocate physical
memory, if kvmalloc is available as a public kernel interface (since
v4.12). Otherwise it will simply fall back to virtual memory (vmalloc).

Also fix vmem_alloc implementation which can lead to slow allocations
since the first attempt with kmalloc does not make use of the noretry
flag but tells the linux kernel to retry several times before it fails.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matt Ahrens <matt@delphix.com>
Signed-off-by: Sebastian Gottschall <s.gottschall@dd-wrt.com>
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Closes #9034
2019-11-13 10:05:10 -08:00
..
Makefile.in Enable use of DTRACE_PROBE* macros in "spl" module 2019-11-01 13:13:43 -07:00
README.md OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
THIRDPARTYLICENSE.gplv2 OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
THIRDPARTYLICENSE.gplv2.descrip OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
spl-atomic.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
spl-condvar.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
spl-cred.c Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00
spl-err.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
spl-generic.c Wrap Linux module macros 2019-11-01 10:41:03 -07:00
spl-kmem-cache.c Make use of kvmalloc if available and fix vmem_alloc implementation 2019-11-13 10:05:10 -08:00
spl-kmem.c Make use of kvmalloc if available and fix vmem_alloc implementation 2019-11-13 10:05:10 -08:00
spl-kobj.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
spl-kstat.c Fix strdup conflict on other platforms 2019-10-10 09:47:06 -07:00
spl-proc.c Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00
spl-procfs-list.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
spl-taskq.c Add tracepoints for taskq entry lifetime events 2019-11-01 13:14:54 -07:00
spl-thread.c Linux 4.14, 4.19, 5.0+ compat: SIMD save/restore 2019-10-24 10:17:33 -07:00
spl-trace.c Add tracepoints for taskq entry lifetime events 2019-11-01 13:14:54 -07:00
spl-tsd.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
spl-vmem.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
spl-vnode.c Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00
spl-xdr.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
spl-zlib.c Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00

README.md

The Solaris Porting Layer, SPL, is a Linux kernel module which provides a compatibility layer used by the ZFS on Linux project.

Installation

The latest version of the SPL is maintained as part of this repository. Only when building ZFS version 0.7.x or earlier must an external SPL release be used. These releases can be found at:

Release

The SPL is released under a GPLv2 license.
For more details see the NOTICE and THIRDPARTYLICENSE files; UCRL-CODE-235197