Project

General

Profile

Actions

Feature #560

closed

mds: alternate directory hashing

Added by Sage Weil over 13 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:

Description

Currently dentries are hashed among dirfrags using the linux dcache's hash function, which is pretty trivial. The problem is that it very poorly distributes regularly named files (things like file.%d).

Add a field to the dir's layout that selects an alternate hash function. This will be somewhat backward incompatible/non-optimal, because old clients will sent requests to the wrong mds, and then they'll be forwarded. When teh directory is fragmented and has a different hash selected, at least.

See mds_dir_hash branch.

Actions

Also available in: Atom PDF