SVNews r332528

NOTE: This service is experimental and subject to change! Use at your own risk!

2018-04-16 03:38:37 - r332528 by mav (Alexander Motin)

Complete list of files affected by revision r332528:

(Note: At the moment, these links point to ViewVC on svn.freebsd.org. They are probably slow. Do not overuse.)

   Contents     MODIFY   /stable/11  
  History   Contents   Diff   MODIFY   /stable/11/cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h  
  History   Contents   Diff   MODIFY   /stable/11/sys/cddl/compat/opensolaris/kern/opensolaris_kmem.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/cddl/compat/opensolaris/sys/kmem.h  
  History   Contents   Diff   MODIFY   /stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c  

Commit message:

MFC r329759:
9018 Replace kmem_cache_reap_now() with kmem_cache_reap_soon()

illumos/illumos-gate@36a64e62848b51ac5a9a5216e894ec723cfef14e

To prevent kmem_cache reaping from blocking other system resources, turn
kmem_cache_reap_now() (which blocks) into kmem_cache_reap_soon(). Callers
to kmem_cache_reap_soon() should use kmem_cache_reap_active(), which
exploits #9017's new taskq_empty().

Reviewed by: Bryan Cantrill <bryan@joyent.com>
Reviewed by: Dan McDonald <danmcd@joyent.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Yuri Pankov <yuripv@yuripv.net>
Author: Tim Kordas <tim.kordas@joyent.com>

FreeBSD does not use taskqueue for kmem caches reaping, so this change
is less dramatic then it is on Illumos, just limiting reaping to 1 time
per second. It may possibly be improved later, if needed.

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 15 ms, 5 files printed. Current time is 2018-04-23 15:05:28. All times are in UTC/GMT.