cvs commit: src/sys/compat/opensolaris/kern opensolaris_kmem.c src/sys/compat/opensolaris/sys kmem.h src/sys/contrib/opensolaris/uts/common/fs/zfs arc.c src/sys/contrib/opensolaris/uts/common/fs/zfs/sys zfs_context.h

Pawel Jakub Dawidek pjd at
Tue Apr 10 02:35:57 UTC 2007

pjd         2007-04-10 02:35:57 UTC

  FreeBSD src repository

  Modified files:
    sys/compat/opensolaris/kern opensolaris_kmem.c 
    sys/compat/opensolaris/sys kmem.h 
    sys/contrib/opensolaris/uts/common/fs/zfs arc.c 
    sys/contrib/opensolaris/uts/common/fs/zfs/sys zfs_context.h 
  Try to stabilize ZFS with regard to memory consumption:
  - Allow to shrink ARC down to 16MB (instead of 64MB).
  - Set arc_max to 1/2 of kmem_map by default.
  - Start freeing things earlier when low memory situation is detected.
  - Serialize execution of arc_lowmem().
  I decided to setup minimum ZFS memory requirements to 512MB of RAM and 256MB of
  kmem_map size. If there is less RAM or kmem_map, a warning will be printed.
  World is cruel, be no better. In other words: modern file system requires
  modern hardware:)
  From ZFS administration guide:
  "Currently the minimum amount of memory recommended to install a Solaris
   system is 512 Mbytes. However, for good ZFS performance, at least one
   Gbyte or more of memory is recommended."
  Revision  Changes    Path
  1.2       +23 -8     src/sys/compat/opensolaris/kern/opensolaris_kmem.c
  1.2       +5 -2      src/sys/compat/opensolaris/sys/kmem.h
  1.6       +35 -14    src/sys/contrib/opensolaris/uts/common/fs/zfs/arc.c
  1.3       +0 -2      src/sys/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_context.h

More information about the cvs-src mailing list