From: Vijayan Prabhakaran <pvijayan@gmail.com>
To: mason@suse.com, reiserfs-list@namesys.com
Cc: reiser@namesys.com, vijayan@cs.wisc.edu
Subject: YET another problem in committing old transactions
Date: Wed, 15 Sep 2004 16:56:19 -0500 [thread overview]
Message-ID: <d68fdf7d0409151456576dfc03@mail.gmail.com> (raw)
Hi,
There is one more problem in committing the old transactions.
In function reiserfs_flush_old_commits(), there is a condition that checks
if the current transaction is older than 30 seconds. Only if that
condition satisfies, the data is flushed to the disk. The condition looks
like:
if (blah blah blah &&
(now - SB_JOURNAL(p_s_sb)->j_trans_start_time) >
SB_JOURNAL_MAX_TRANS_AGE(p_s_sb))
{
/*flush the transaction by calling do_journal_end*/
}
Note: SB_JOURNAL_MAX_TRANS_AGE(p_s_sb) returns 30 seconds.
Now my question is this:
When does reiserfs flush the old uncommitted data ? Is it every 5 seconds
or every 30 seconds ?
If it is going to do it in every 5 seconds when the thread wakes up, why
do we have the condition for 30 seconds ? If the flush happens only every
30 seconds, why the thread calls reiserfs_flush_old_commits() every 5
seconds ?
Is there any reason for this discrepancy ?
Vijayan
reply other threads:[~2004-09-15 21:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=d68fdf7d0409151456576dfc03@mail.gmail.com \
--to=pvijayan@gmail.com \
--cc=mason@suse.com \
--cc=reiser@namesys.com \
--cc=reiserfs-list@namesys.com \
--cc=vijayan@cs.wisc.edu \
/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.