mirror_zfs/module/splat
Ubuntu 1b457bcbe5 Fix vmem_size()
Add a minimal implementation of vmem_size() which accounts for the
virtual memory usage of the SPL's kmem cache.  This functionality
is only useful on 32-bit systems with a small virtual address space.

The following assumptions are made:

  1) The major SPL consumer of virtual memory is the kmem cache.
  2) Memory allocated with vmem_alloc() is short lived and can be ignored.
  3) Allow a 4MB floor as a generous pad given normal consumption.
  4) The spl_kmem_cache_sem only contends with cache create/destroy.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2016-11-02 10:34:19 -07:00
..
Makefile.in Support parallel build trees (VPATH builds) 2015-07-17 12:53:11 -07:00
splat-atomic.c Add defclsyspri macro 2015-07-23 13:25:49 -07:00
splat-condvar.c Don't hold mutex until release cv in cv_wait 2016-01-12 15:18:44 -08:00
splat-cred.c Linux 4.9 compat: group_info changes 2016-10-20 09:33:28 -07:00
splat-ctl.c Linux 4.2 compat: misc_deregister() 2015-09-01 09:20:45 -07:00
splat-generic.c Remove compat includes from sys/types.h 2014-11-19 10:35:12 -08:00
splat-internal.h Linux 4.2 compat: vfs_rename() 2015-08-19 16:03:29 -07:00
splat-kmem.c Fix vmem_size() 2016-11-02 10:34:19 -07:00
splat-kobj.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-linux.c Remove compat includes from sys/types.h 2014-11-19 10:35:12 -08:00
splat-list.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-mutex.c Add defclsyspri macro 2015-07-23 13:25:49 -07:00
splat-random.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-rwlock.c Fix aarch64 type warning 2016-10-01 18:33:01 -07:00
splat-taskq.c Fix use-after-free in splat_taskq_test7 2016-05-31 11:58:42 -07:00
splat-thread.c Add defclsyspri macro 2015-07-23 13:25:49 -07:00
splat-time.c Remove compat includes from sys/types.h 2014-11-19 10:35:12 -08:00
splat-vnode.c Linux 4.2 compat: vfs_rename() 2015-08-19 16:03:29 -07:00
splat-zlib.c Refactor existing code 2015-01-16 13:55:08 -08:00