Project

General

Profile

Actions

Cleanup #4176

closed

poor use of DIR_? subdirs in osds

Added by Alexandre Oliva about 11 years ago. Updated over 7 years ago.

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

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Since the lowest bits of the hash are used to decide in which PG to place an object, using the same lowest bits within the PG to decide in which DIR_? subdir the object should go leads to all objects being placed in the same subdir. E.g., when there are 256 PGs in a pool, PG 0.ac will have all files placed inside DIR_C/DIR_A.

I suggest that, when the next major on-disk layout kicks in (or perhaps as a default option in newly-created filesystems), the other end of the hash string be used for subdir naming/placement, or that the bits of the hash already used to select the PG be shifted out so as to not use them to select subDIR_s.

Actions

Also available in: Atom PDF