]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add vm_lowmem event handler for dirhash. This will cause dirhashes to be
authorsnb <snb@FreeBSD.org>
Wed, 3 Jun 2009 09:44:22 +0000 (09:44 +0000)
committersnb <snb@FreeBSD.org>
Wed, 3 Jun 2009 09:44:22 +0000 (09:44 +0000)
commit7f32f3f2a110cb1bf2681c657d5f47053e23f6c5
treeb9cd7cc5cf9fb5137de08181e4c192636eb3c203
parent9434014ec0ff82ae1d7b63a1c388cf2d41046a37
Add vm_lowmem event handler for dirhash. This will cause dirhashes to be
deleted when the system is low on memory. This ought to allow an increase to
vfs.ufs.dirhash_maxmem on machines that have lots of memory, without
degrading performance by having too much memory reserved for dirhash when
other things need it. The default value for dirhash_maxmem is being kept at
2MB for now, though.

This work was mostly done during the 2008 Google Summer of Code.

Approved by: dwmalone (mentor), re
MFC after: 3 months
sys/ufs/ufs/dirhash.h
sys/ufs/ufs/ufs_dirhash.c