dirhash and dynamic memory allocation

Ivan Voras ivoras at freebsd.org
Mon Oct 17 08:50:42 UTC 2011


On 14/10/2011 14:33, Miroslav Lachman wrote:
> 
> 
> Ivan Voras wrote:
>> On 14/10/2011 11:20, Miroslav Lachman wrote:
>>> Hi all,
>>>
>>> I tried some tuning of dirhash on our servers and after googlig a bit, I
>>> found an old GSoC project wiki page about Dynamic Memory Allocation for
>>> Dirhash: http://wiki.freebsd.org/DirhashDynamicMemory
>>> Is there any reason not to use it / not commit it to HEAD?
>>
>> AFAIK it's sort-of already present. In 8-stable and recent kernels you
>> can give huge amounts of memory to dirhash via vfs.ufs.dirhash_maxmem
>> (but except in really large edge cases I don't think you *need* more
>> than 32 MB), and the kernel will scale-down or free the memory if not
>> needed.
> 
> Is this change documented somewhere? Maybe it could be noticed on
> DirhashDynamicMemory wiki page. Otherwise it seems as abandoned GSoC
> project.

I'm not touching the wiki page because I don't know really if the
functionality was committed from the GSoC project or from somewhere
else; what I did was much later and much smaller in scope.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20111017/ce5f6a79/signature.pgp


More information about the freebsd-fs mailing list