* reiserfs - difference between a commit and a transaction
@ 2004-02-06 0:23 Micha Feigin
2004-02-06 9:05 ` Nikita Danilov
0 siblings, 1 reply; 3+ messages in thread
From: Micha Feigin @ 2004-02-06 0:23 UTC (permalink / raw)
To: lkml
I am trying to do some work on reiserfs to make it laptop-mode
compliant. After looking at the code because it was still noisy after I
thought I told correctly to be quite, raised a question that I was
hoping someone can clarify for me.
Reiserfs has both a transaction and a commit and I was wondering what
is which.
(I am mostly interested in this from the point of what max_trans_age
and max_commit_age affect)
Thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: reiserfs - difference between a commit and a transaction
2004-02-06 0:23 reiserfs - difference between a commit and a transaction Micha Feigin
@ 2004-02-06 9:05 ` Nikita Danilov
2004-02-06 19:26 ` Micha Feigin
0 siblings, 1 reply; 3+ messages in thread
From: Nikita Danilov @ 2004-02-06 9:05 UTC (permalink / raw)
To: Micha Feigin; +Cc: lkml
Micha Feigin writes:
> I am trying to do some work on reiserfs to make it laptop-mode
> compliant. After looking at the code because it was still noisy after I
> thought I told correctly to be quite, raised a question that I was
> hoping someone can clarify for me.
>
> Reiserfs has both a transaction and a commit and I was wondering what
> is which.
Transaction is a sequence of file system modifications that (by the
virtue of file system implementation) is bound to either be completed as
a whole or be aborted as a whole (this is called "atomicity").
Commit is a certain operation performed during transaction life-time to
implement its atomicity.
>
> (I am mostly interested in this from the point of what max_trans_age
> and max_commit_age affect)
Take a look at the "commit" mount option of reiserfs.
>
> Thanks
Nikita.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: reiserfs - difference between a commit and a transaction
2004-02-06 9:05 ` Nikita Danilov
@ 2004-02-06 19:26 ` Micha Feigin
0 siblings, 0 replies; 3+ messages in thread
From: Micha Feigin @ 2004-02-06 19:26 UTC (permalink / raw)
To: lkml
On Fri, Feb 06, 2004 at 12:05:33PM +0300, Nikita Danilov wrote:
> Micha Feigin writes:
> > I am trying to do some work on reiserfs to make it laptop-mode
> > compliant. After looking at the code because it was still noisy after I
> > thought I told correctly to be quite, raised a question that I was
> > hoping someone can clarify for me.
> >
> > Reiserfs has both a transaction and a commit and I was wondering what
> > is which.
>
> Transaction is a sequence of file system modifications that (by the
> virtue of file system implementation) is bound to either be completed as
> a whole or be aborted as a whole (this is called "atomicity").
>
> Commit is a certain operation performed during transaction life-time to
> implement its atomicity.
>
So, at what time of a transaction's life would a commit be flushed to
disk, only in the process of flushing the transaction to disk or at
several points during its life time to make sure that atomicity is
preserved.
And on that note, can there be several transactions active at one time
or is a new transaction created only when the previous is closed and
ready to flush.
> >
> > (I am mostly interested in this from the point of what max_trans_age
> > and max_commit_age affect)
>
> Take a look at the "commit" mount option of reiserfs.
>
Thats what I was looking at and what I ported to 2.4 (it did require a
fix for laptop mode to enable reseting the value, but that will be
coming shortly).
The problem was that reiserfs was still being very noisy (kreiserfsd was
writing to disk around every 30 seconds despite beeing mounted with
commit=600). That led me to look further into the code and changing
max_trans_age instead of max_commit_age kept it quite for the full ten
minutes. I am still checking to make sure that its not something with me
or my system.
For laptop mode we want to keep disk activity quiet for around ten
minutes at a time so that the disk can be spun down, thus sacrificing
the chance of loosing data for battery life.
I am trying to see what is the right value to change and what is the
meaning of changing it but I could only find old documentation and the
comments in the code are good only for people who know the meaning of
the terms in the first place.
> >
> > Thanks
>
> Nikita.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-02-06 19:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-06 0:23 reiserfs - difference between a commit and a transaction Micha Feigin
2004-02-06 9:05 ` Nikita Danilov
2004-02-06 19:26 ` Micha Feigin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®