From: Tom.Wang <Tom.Wang@Sun.COM>
To: lustre-devel@lists.lustre.org
Subject: [Lustre-devel] readdir for striped dir
Date: Tue, 23 Mar 2010 08:35:53 -0400 [thread overview]
Message-ID: <4BA8B5A9.3020107@sun.com> (raw)
In-Reply-To: <8acda98c1003230915n3e75ac05pe8095bb910c5153b@mail.gmail.com>
Nikita Danilov wrote:
> On 23 March 2010 14:29, Tom.Wang <Tom.Wang@sun.com> wrote:
>
>> Hello,
>>
>
> Hello,
>
> [...]
>
>
>> LMV will use new hash function to select stripe object (mdc), which could be
>> independent with the one
>> used in the storage. In mdc level, it just need to map the entries of each
>> dir stripe object in the cache,
>> we can index the cache in anyway as we want, probably hash order (as the
>> server storage) is a good choice,
>> because client can easily find and cancel the pages by the hash in later
>> dir-extent lock. Note: Even in this case,
>> client does not need to know server hash scheme at all, since server will
>> set the hash-offset of these pages, client just
>> need to put these pages on the cache by hash-offset.
>> Currently, the cache will only be touched by readdir. If the cache will be
>> used by readdir-plus later, i.e. we need locate
>> the entry by name, then client must use the same hash as the server storage,
>> but server will tell client which hash function
>> it use. Yes, different hash per dirstripe should not be a problem here.
>>
>
> If I understand correctly, the scheme has an advantage of cleaner
> solution for readdir scalability than "hash adjust" hack of CMD3 (see
> comment in lmv/lmv_obd.c:lmv_readpage()). The problem, to remind, is
> that if a number of clients readdir the same split directory, they all
> hammer the same servers one after another, negating the advantages of
> meta-data clustering. The solution is to cyclically shift hash space
> by an offset depending on the client, so that clients load servers
> uniformly. With 2-level hashing, this shifting can be done entirely
> within new LMV hash function.
>
Yes, in this case, these clients should start from different
stripe-offset in
readdir.
Thanks
Wangdi
>
>> Thanks
>> WangDi
>>
>
> Thank you,
> Nikita.
>
next prev parent reply other threads:[~2010-03-23 12:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-22 23:09 [Lustre-devel] readdir for striped dir Tom.Wang
2010-03-23 4:22 ` Andreas Dilger
2010-03-23 11:29 ` Tom.Wang
2010-03-23 16:15 ` Nikita Danilov
2010-03-23 12:35 ` Tom.Wang [this message]
2010-03-23 18:23 ` Andreas Dilger
2010-03-23 19:14 ` Nikita Danilov
2010-03-24 22:23 ` Andreas Dilger
2010-03-25 16:26 ` Oleg Drokin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BA8B5A9.3020107@sun.com \
--to=tom.wang@sun.com \
--cc=lustre-devel@lists.lustre.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.