From: Aleksandr Koltsoff <aleksandr.koltsoff@ebts.fi>
To: Andi Kleen <andi@firstfloor.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: RFC: Exporting NOCMTIME to userspace
Date: Mon, 21 Jun 2010 12:12:04 +0300 [thread overview]
Message-ID: <4C1F2CE4.20502@ebts.fi> (raw)
In-Reply-To: <871vc0darq.fsf@basil.nowhere.org>
Andi Kleen wrote:
> Aleksandr Koltsoff <aleksandr.koltsoff@ebts.fi> writes:
>> On the other hand, if someone can suggest a way to avoid timestamp
>> updates/causing inode writes, I'm all ears and eyes. (using the
>> block-layer directly or writing a custom fs is not really an elegant
>> solution, IMO).
>
> I think what would be better would be to have flush intervals
> that specify that m/c time are only flushed with longer
> intervals (similar to the deferred atime that's now in there)
>
> This would still cause the inode to be written if it gets flushed from
> memory on low memory and occasionally depending on the interval, but
> most of the writes would be gone. All still with the same semantics.
While this might solve the performance aspect of the problem, it will
only migitate the reliability aspect with NANDs, since the inodes will
eventually be flushed anyway (thus causing irreversible wear).
Also, a tunable like you're suggesting would affect all files on a
single filesystem, instead of just a subset of files. Having an option
to "disable" m/ctime updates per file would be optimal in our case,
since we're talking about several years of runtime with the use case.
There are other issues with rrdtool which make this hard, but those are
all solvable without kernel modifications.
That said, the migitative solution would be better than none :-).
Regards,
ak.
next prev parent reply other threads:[~2010-06-21 9:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-21 6:36 RFC: Exporting NOCMTIME to userspace Aleksandr Koltsoff
2010-06-21 8:56 ` Andi Kleen
2010-06-21 9:12 ` Aleksandr Koltsoff [this message]
2010-06-21 10:32 ` Andi Kleen
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=4C1F2CE4.20502@ebts.fi \
--to=aleksandr.koltsoff@ebts.fi \
--cc=andi@firstfloor.org \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox