From: Kalin KOZHUHAROV <kalin@thinrope.net>
To: linux-kernel@vger.kernel.org
Subject: mtime (default) resolution and why is it such?
Date: Mon, 13 Mar 2006 05:41:09 +0900 [thread overview]
Message-ID: <dv2115$46a$2@sea.gmane.org> (raw)
Hi all,
There were some discussions on the subversion dev list about "svn and
shell scripts: managing properties" that boiled down to very quick
changes to a file (by sed) without changing its mtime ...
So I started to dig the kernel code to see what exactly is the mtime
resolution...
I could pin it down to include/linux:824
/* Granuality of c/m/atime in ns.
Cannot be worse than a second */
u32 s_time_gran;
*** I feel this comment is wrong, should be granuLARity, submitting
*** a patch separately:
*** [PATCH][TRIVIAL] Fix comments in 2.6.16-rc6: s/granuality/granularity/
But looking further down, I found fs/super.c:88
s->s_time_gran = 1000000000;
So it seems that the default s_time_gran is 1 second... I was interested
for reiserfs, as that is the main fs I use.
Some filesystems use 1ns (nfs, jfs, xfs...), some 100ns (cifs, ntfs,
smbfs)...
So I have quite a few questions popping in my head:
1. Is there any particular design concern with this?
2. Would speed performance be drowning if I (later we) play with the
default, or at least patch reiserfs to use say 0.001s ?
3. What could be affected and how do I measure performance drop?
I understand that is not the root couse for the subversion problem, but
it may help me understand the problem better, so if you can spare a bit
of time to answer my quiestions I'd be gratefull.
Kalin.
--
|[ ~~~~~~~~~~~~~~~~~~~~~~ ]|
+-> http://ThinRope.net/ <-+
|[ ______________________ ]|
reply other threads:[~2006-03-12 21:45 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='dv2115$46a$2@sea.gmane.org' \
--to=kalin@thinrope.net \
--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