[prev in list] [next in list] [prev in thread] [next in thread]
List: fedora-devel-list
Subject: Re: btrfs hash algorithm (should xxhash be the default?)
From: drago01 <drago01 () gmail ! com>
Date: 2021-02-01 14:16:32
Message-ID: CAMqY-FeEvsJmZjW2g79ai0STAHxDE_K3ZYgyatVVnp56YQmVkg () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On Sunday, January 31, 2021, Matthew Miller <mattdm@fedoraproject.org>
wrote:
> On my Intel i7 laptop, xxhash is a small but clear performance win over
> crc32c:
>
> $ ./hash-speedtest 10000000
> Block size: 4096
> Iterations: 10000000
> Implementation: builtin
>
> NULL-NOP: cycles: 1372543560, c/i 137
> NULL-MEMCPY: cycles: 2844174884, c/i 284
> CRC32C: cycles: 9673117404, c/i 967
> XXHASH: cycles: 7129819594, c/i 712
> SHA256: cycles: 649914613520, c/i 64991
> BLAKE2b: cycles: 153513008046, c/i 15351
>
>
> And I'm given to understand that this is even more the case on newer CPUs.
>
> Plus, it's 64 bit instead of 32 bit. The 256-bit algorithms are obviously
> much, much slower and probably not right for a default, but should we
> consider making xxhash the default for Fedora Linux systems with btrfs?
>
>
Comparing the hash algorithms in isolation doesn't mean much - does it make
a difference if you try various file system workloads with the different
algorithms?
> --
> Matthew Miller
> <mattdm@fedoraproject.org>
> Fedora Project Leader
> _______________________________________________
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-leave@lists.fedoraproject.org
> Fedora Code of Conduct: https://docs.fedoraproject.
> org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.
> fedoraproject.org
>
[Attachment #5 (text/html)]
<br><br>On Sunday, January 31, 2021, Matthew Miller <<a \
href="mailto:mattdm@fedoraproject.org">mattdm@fedoraproject.org</a>> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex">On my Intel i7 laptop, xxhash is a small but clear \
performance win over<br> crc32c:<br>
<br>
$ ./hash-speedtest 10000000<br>
Block size: 4096<br>
Iterations: 10000000<br>
Implementation: builtin<br>
<br>
NULL-NOP: cycles: 1372543560, c/i 137<br>
NULL-MEMCPY: cycles: 2844174884, c/i 284<br>
CRC32C: cycles: 9673117404, c/i 967<br>
XXHASH: cycles: 7129819594, c/i 712<br>
SHA256: cycles: 649914613520, c/i 64991<br>
BLAKE2b: cycles: 153513008046, c/i 15351<br>
<br>
<br>
And I'm given to understand that this is even more the case on newer CPUs.<br>
<br>
Plus, it's 64 bit instead of 32 bit. The 256-bit algorithms are obviously<br>
much, much slower and probably not right for a default, but should we<br>
consider making xxhash the default for Fedora Linux systems with btrfs?<br>
<br></blockquote><div><br></div><div>Comparing the hash algorithms in isolation \
doesn't mean much - does it make a difference if you try various file system \
workloads with the different algorithms?</div><div><br></div><div> </div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">
-- <br>
Matthew Miller<br>
<<a href="mailto:mattdm@fedoraproject.org">mattdm@fedoraproject.org</a>><br>
Fedora Project Leader<br>
______________________________<wbr>_________________<br>
devel mailing list -- <a \
href="mailto:devel@lists.fedoraproject.org">devel@lists.fedoraproject.org</a><br> To \
unsubscribe send an email to <a \
href="mailto:devel-leave@lists.fedoraproject.org">devel-leave@lists.<wbr>fedoraproject.org</a><br>
Fedora Code of Conduct: <a \
href="https://docs.fedoraproject.org/en-US/project/code-of-conduct/" \
target="_blank">https://docs.fedoraproject.<wbr>org/en-US/project/code-of-<wbr>conduct/</a><br>
List Guidelines: <a href="https://fedoraproject.org/wiki/Mailing_list_guidelines" \
target="_blank">https://fedoraproject.org/<wbr>wiki/Mailing_list_guidelines</a><br> \
List Archives: <a href="https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org" \
target="_blank">https://lists.fedoraproject.<wbr>org/archives/list/devel@lists.<wbr>fedoraproject.org</a><br>
</blockquote>
[Attachment #6 (text/plain)]
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic