From: Jan Kara <jack@suse.cz>
To: jingguo yao <yaojingguo@gmail.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: Why does journal mode outperforms all other modes when reading and writing data at the same time?
Date: Tue, 28 May 2013 18:14:18 +0200 [thread overview]
Message-ID: <20130528161418.GD27920@quack.suse.cz> (raw)
In-Reply-To: <CANPB7a4A+CbRcNoDc2=G=u8zy+q7ky=pGQxAMJrbxPC3sfytjw@mail.gmail.com>
On Tue 28-05-13 22:39:18, jingguo yao wrote:
> Documentation/filesystems/ext4.txt has the following sentence:
>
> This mode is the slowest except when data needs to be read from and
> written to disk at the same time where it outperforms all others
> modes.
>
> And the following link talks about it in more details. Can anybody give
> the reason?
>
> http://www.ibm.com/developerworks/library/l-fs8/index.html#4
Not sure why exactly data=journal was faster in that workload. But
generally data=journal is known to help if you have shortlived files which
are then written only to the journal and deleted before they are copied to
the final location on disk. Also it may help by penalizing the writer so
that readers have better chance to do their work...
Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
prev parent reply other threads:[~2013-05-28 16:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-28 14:39 Why does journal mode outperforms all other modes when reading and writing data at the same time? jingguo yao
2013-05-28 16:14 ` Jan Kara [this message]
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=20130528161418.GD27920@quack.suse.cz \
--to=jack@suse.cz \
--cc=linux-ext4@vger.kernel.org \
--cc=yaojingguo@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).