Linux NILFS development
 help / color / mirror / Atom feed
From: Ryusuke Konishi <konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>
To: davidsa-BMswWb+h+80+JF/nGntIXQ@public.gmane.org,
	davidsa.openu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: atime
Date: Tue, 02 Aug 2011 12:24:52 +0900 (JST)	[thread overview]
Message-ID: <20110802.122452.27798375.ryusuke@osrg.net> (raw)
In-Reply-To: <4E363F5D.7060302-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

Hi,
On Mon, 01 Aug 2011 08:53:33 +0300, David Sariel wrote:
> Hi
> What was the purpose of reserving the inode for atime file (nilfs2_fs.h)
> #define NILFS_ATIME_INO        7    /* Atime file (reserved) */

This declaration is reserved for an additional metadata file keeping
atime information on disk.

> Correct me if I'm wrong, but it seems to me that updating atime on the disk
> result in creating more chekpoints. So spesial file in predetermined 
> place can store
> atime of all files in the system and spare the need of checkpointings of 
> many segments.

Yes, if we implement the atime feature and enable it, nilfs will
create checkpoints every time after files are read or directories are
looked up.  It may not be a problem because recent kernels have
``relatime'' which is a nice workaroud of the atime problem.

Anyway, we would turn off this feature by default even if we add it.

> Also can you please share your thoughts about the atime implementation 
> on nilfs?

The atime file would become an array of atime timestamps consisting of
a 64-bit integer number of seconds plus 32 bits of nano-seconds.  The
reason why we reserved a separate metadata file is to minimize the
number of blocks written back by the atime updates.

Or, we may simply add these fields in the extended part of inode; we
have an idea to extend inode size to make other enhancements possible.
Not yet decided, after all.

Regards,
Ryusuke Konishi
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2011-08-02  3:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <BLU152-W53BCFBB71148893681289CE350@phx.gbl>
     [not found] ` <BLU152-W1990E7DAA23E5566FC3925CE350@phx.gbl>
     [not found]   ` <BLU152-W1990E7DAA23E5566FC3925CE350-MsuGFMq8XAE@public.gmane.org>
2011-07-27 21:19     ` How to restore snaspshot in nilfs? ffffd sssd
     [not found]       ` <BLU152-W567E135957B79607CC415ECE350-MsuGFMq8XAE@public.gmane.org>
2011-07-28  1:25         ` Ryusuke Konishi
     [not found]           ` <20110728.102536.53123850.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-08-01  5:53             ` atime David Sariel
     [not found]               ` <4E363F5D.7060302-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-08-02  3:24                 ` Ryusuke Konishi [this message]

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=20110802.122452.27798375.ryusuke@osrg.net \
    --to=konishi.ryusuke-zyj7fxus5i5l9jvzuh4aog@public.gmane.org \
    --cc=davidsa-BMswWb+h+80+JF/nGntIXQ@public.gmane.org \
    --cc=davidsa.openu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.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