HomeFreeBSD

Slightly improve dnode hash

Description

Slightly improve dnode hash

As I understand just for being less predictable dnode hash includes
8 bits of objset pointer, starting at 6. But since objset_t is
more than 1KB in size, its allocations are likely aligned to 2KB,
that means 11 lower bits provide no entropy. Just take the 8 bits
starting from 11.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #16131

Details

Provenance
mavAuthored on May 1 2024, 5:59 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 29 2024, 3:54 PM
Parents
rG938d1588ebc7: Make more taskq parameters writable
Branches
Unknown
Tags
Unknown