From: office at hailoo.com <office@hailoo.com>
To: lustre-devel@lists.lustre.org
Subject: [Lustre-devel] Role of the Metadata Server during File I/O
Date: Mon, 10 Aug 2009 18:31:37 -0400 [thread overview]
Message-ID: <20090810223137.E018520DBF8C@hailoo.com> (raw)
One of Lustre's key innovations seems to be the separation of metadata from
file data. According to Sun, "Lustre file operations bypass the MetaData
server completely and fully utilize the parallel data paths to all OSSs in
the cluster." (See
http://www.sun.com/software/products/lustre/features.xml)
However, can this really be the case?
In POSIX-compliant file I/O, a call to write() that starts at an offset
which is greater than the file size must write zeroes to disk to make up for
the missing space. So if you have a file size of 0 bytes, and then you
write a single byte at offset 10, bytes 0 through 9 of the file will contain
zeros.
But if a file on a Lustre system is striped across multiple OSTs, how does
Lustre avoid communicating with the Metadata Server at every write
operation? Consider the following scenario:
You have 4 OSTs and you create a new file and stripe it across all 4 OSTs,
and you set the stripe size to 4 bytes. (I know that is too small but I'm
just keeping this simple.)
Now, suppose you call write() and write 1 byte to the file at offset 5.
Lustre must now write 4 zero bytes on the first OST, and 1 non-zero byte on
the second OST. But in order to know that it is necessary to write zeroes
to the first OST, the client would need access to global information about
the total size of the file. Therefore, wouldn't it need to check with the
Metadata Server to determine the total file size before every call to
write()?
Any information anyone can provide me on the implementation
details/strategies used here would be greatly appreciated.
-Charles Salvia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20090810/dd95b56f/attachment.htm>
next reply other threads:[~2009-08-10 22:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-10 22:31 office at hailoo.com [this message]
2009-08-11 14:55 ` [Lustre-devel] Role of the Metadata Server during File I/O Eric Barton
2009-08-11 17:24 ` office at hailoo.com
2009-08-13 18:00 ` Oleg Drokin
2009-08-13 18:43 ` office at hailoo.com
2009-08-13 19:16 ` 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=20090810223137.E018520DBF8C@hailoo.com \
--to=office@hailoo.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.