From: "Vladimir V. Saveliev" <vs@namesys.com>
To: Shawn Rutledge <shawn.t.rutledge@gmail.com>
Cc: reiserfs-list@namesys.com
Subject: Re: where is the journal kept?
Date: Mon, 15 Aug 2005 21:34:56 +0400 [thread overview]
Message-ID: <4300D240.7010109@namesys.com> (raw)
In-Reply-To: <d9a6586e05081509195017d679@mail.gmail.com>
Hello
Shawn Rutledge wrote:
> On 8/15/05, Vladimir V. Saveliev <vs@namesys.com> wrote:
>
>>Pat Double wrote:
>
> ...
>
>>reiser4 has no filesystem area dedicated for journal.
>>Instead it allocats log(journal) records dynamically.
>>
>>it is transactional.
>>
>>>If that's the case, why this option in debug.reiser4 :
>>>
>>>Usage: /sbin/debugfs.reiser4 [ options ] FILE
>>>Print options:
>>> -j, --print-journal prints journal.
>>>
>>
>>yes, this prints reiser4 "wandering logs".
>
>
> Suppose a new file was being created; when the journal entry for the
> new file actually gets converted to an inode, can it be done without
> rewriting the whole file?
>
> What if the program was only writing part of the file? Is journalling
> involved in that? If so, does it duplicate the whole file? It
> doesn't duplicate it more than once does it? (first into the journal,
> then re-write it on the filesystem later)?
>
When one modifies a filesystem (creat a file or write to a file or anything else)
all blocks are modified in memory. All related changes get in one atom.
When changes are old enough to be flushed to disk - atom commit is called.
Atom commit starts with "flushing". This procedure decides whether changed block gets to relocate of overwrite set.
Blocks of relocate set are written to disk once only. Blocks of relocate set are to written twice: to log and in place.
> What I'm getting at is whether Reiser4 is any better for a flash-based
> filesystem than Reiser3? I was interested in using it on a CF card in
> my Zaurus, but the guys on the oe list are saying that journalling
> filesystems are bad in general on flash, because they involve
> rewriting the same areas of the flash (where the journal is) over and
> over. I was thinking that CF and SD cards both use smart block
> allocation so that actually the writes are getting spread around on
> the physical flash memory; but it's still bad if every time you write
> a file, it's getting written 2 or more times. If you have gotten it
> down to just writing the main part of the file once, and then
> re-writing some sort of header from the journal into the "real" fs,
> then the reduction of the life of the flash might be tolerable.
>
I must be misunderstanding something. Half of reiser4' complexity is about to make disk writes and reads
more sequential to decrease number of hard disk head seeks.
IMHO, filesystem for storage devices which do not have moving mechanical parts can go better without such code.
> The other problem with using it on the Z is that busybox's version of
> mount does not support ReiserFS, so I'd have to compile another
> version for it. (Not a big problem, but I wonder why busybox doesn't
> support it in the first place.)
>
>
next prev parent reply other threads:[~2005-08-15 17:34 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-15 11:53 where is the journal kept? Payal Rathod
2005-08-15 12:25 ` Vladimir V. Saveliev
2005-08-15 12:50 ` Payal Rathod
2005-08-15 12:58 ` Vladimir V. Saveliev
2005-08-15 13:12 ` Pat Double
2005-08-15 14:26 ` Vladimir V. Saveliev
2005-08-15 15:52 ` David Masover
2005-08-15 16:19 ` Shawn Rutledge
2005-08-15 17:34 ` Vladimir V. Saveliev [this message]
2005-08-15 18:08 ` Shawn Rutledge
2005-08-16 19:59 ` Hans Reiser
2005-08-16 20:27 ` Shawn Rutledge
2005-08-16 22:30 ` David Masover
2005-08-16 23:23 ` Shawn Rutledge
2005-08-17 0:02 ` David Masover
2005-08-17 0:47 ` Shawn Rutledge
2005-08-17 5:51 ` Hans Reiser
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=4300D240.7010109@namesys.com \
--to=vs@namesys.com \
--cc=reiserfs-list@namesys.com \
--cc=shawn.t.rutledge@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 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.