[Lustre-discuss] Question on path name resolution in Lustre
vilobh meshram
meshram.vilobh at gmail.com
Wed May 4 23:37:26 PDT 2011
Hi,
I have noticed that for file or directory kind of operation in Lustre, the
Lock Manager grabs an EX (Exclusive lock) on the parent directory and then
creates a directory or file inside it.Is there a specific reason behind this
logic or implementation.
e.g. : If we want to create foo.txt in /d1/d2/d3/d4/d5/foo.txt
We grab the lock on /d1
then we grab the lock on /d1/d2
then we grab the lock on /d1/d2/d3
then we grab the lock on /d1/d2/d3/d4
then we grab the lock on /d1/d2/d3/d4/d5
then we create the file.
This is what I have seen in logs.
Is this the correct method followed during first time file access or file
creation ?
If yes then how is the performance when the directory depth is very high ?
If no can you explain me how it happens.
Thanks,
Vilobh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20110505/cd77b3cf/attachment.htm>
More information about the lustre-discuss
mailing list