Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jul 2020 18:20:19 +0800
From:      Li-Wen Hsu <lwhsu@freebsd.org>
To:        Nick Kostirya <nikolay.kostirya@i11.co>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: BerkeleyDB Hash vs Btree on FreeBSD and Linux
Message-ID:  <CAKBkRUwnc9aC00NasdMX=g8n1jhiXvfPDwjKaz2sYbB4Hspk5g@mail.gmail.com>
In-Reply-To: <20200701130649.0b0643d5@i11.co>
References:  <20200701130649.0b0643d5@i11.co>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 1, 2020 at 6:07 PM Nick Kostirya via freebsd-stable
<freebsd-stable@freebsd.org> wrote:
>
> Hello.
>
> I noticed that BerkeleyDB Hash is VERY slow compared to BerkeleyDB Btree on FreeBSD (UFS or ZFS).
> But they (Hash and Btree) have roughly the same performance on Linux.
>
> Why?

It's not an easy question, do you have more information about the test
environment setup, and the statistics of the results?

I'd recommend using some analysis tools like DTrace to check what it's busy for.

Li-Wen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKBkRUwnc9aC00NasdMX=g8n1jhiXvfPDwjKaz2sYbB4Hspk5g>