Linux NILFS development
 help / color / mirror / Atom feed
From: Vyacheslav Dubeyko <slava-yeENwD64cLxBDgjK7y7TUQ@public.gmane.org>
To: Ryusuke Konishi
	<konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>
Cc: Sven Eckelmann <sven-KaDOiPu9UxWEi8DpZVb4nw@public.gmane.org>,
	linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] nilfs-utils: Work around uncleanable full filesystem
Date: Tue, 15 Jan 2013 17:48:50 +0400	[thread overview]
Message-ID: <1358257730.2094.4.camel@slavad-ubuntu> (raw)
In-Reply-To: <201301151043.AA04492-ZdTO5nnmHvkOizVVqyxoihMFgDP4sedm@public.gmane.org>

Hi Ryusuke,

On Tue, 2013-01-15 at 19:43 +0900, Ryusuke Konishi wrote:

[snip]
> >
> >As I understand the code of nilfs_cleanerd, this code is correct without
> >your changing. The ss_nongc_ctime is the creation time of the last
> >segment not for GC. When thr is set then it compared with sui_lastmod.
> >The sui_lastmod is the timestamp of last modification. So, the
> >nilfs_cleanerd works right.
> >
> >I think that this is a bug on the kernel side. My current vision is that
> >in some environment the ns_nongc_ctime can be not updated correctly. So,
> >you have such threshold that prevent from segments clearing.
> 
> I guess the problem is caused because ss_nongc_ctime is not updated by
> the kernel module if dirty blocks created by file operations are written
> out through nilfs_clean_segments function.   Actually,
> nilfs_clean_segments() can roll together normal dirty blocks.
> 
> So, if GC is working without interruption, ss_nongc_ctime may not be
> updated long time.
> 
> If this is the cause of the problem, nilfs2 log writer should be changed
> so that nilfs->ns_nongc_ctime is updated with sci->sc_seg_ctime if
> there is a file system change (file/directory change or an ifile change).
> 
> NILFS_SC_HAVE_DELTA flag may be available for this purpose.
> 
> The ss_nongc_ctime check is needed to make GC stoppable.
> Without this check, GC can continue endlessly even if the file system
> doesn't have any change.
> 

Thank you for your detailed explanation. It is very helpful for me.

But, currently, I can't reproduce the issue. All works fine on my side.

With the best regards,
Vyacheslav Dubeyko.

> With 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:[~2013-01-15 13:48 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-14 15:54 [PATCH] nilfs-utils: Work around uncleanable full filesystem Sven Eckelmann
     [not found] ` <1358178899-26347-1-git-send-email-sven-KaDOiPu9UxWEi8DpZVb4nw@public.gmane.org>
2013-01-14 19:49   ` Vyacheslav Dubeyko
     [not found]     ` <37A149BD-4D8E-4C55-9301-428034C5B9DA-yeENwD64cLxBDgjK7y7TUQ@public.gmane.org>
2013-01-14 18:55       ` Sven Eckelmann
2013-01-15  7:14   ` Vyacheslav Dubeyko
2013-01-15  8:34     ` Sven Eckelmann
2013-01-15 10:43     ` Ryusuke Konishi
     [not found]       ` <201301151043.AA04492-ZdTO5nnmHvkOizVVqyxoihMFgDP4sedm@public.gmane.org>
2013-01-15 13:48         ` Vyacheslav Dubeyko [this message]
2013-01-15 13:57   ` Vyacheslav Dubeyko
2013-01-15 15:17     ` Sven Eckelmann
2013-01-17  7:57       ` Vyacheslav Dubeyko
2013-01-17  8:32         ` Sven Eckelmann
2013-01-17  9:19           ` Vyacheslav Dubeyko
2013-01-18  7:04           ` Vyacheslav Dubeyko
2013-01-18  6:17         ` Vyacheslav Dubeyko

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=1358257730.2094.4.camel@slavad-ubuntu \
    --to=slava-yeenwd64clxbdgjk7y7tuq@public.gmane.org \
    --cc=konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org \
    --cc=linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=sven-KaDOiPu9UxWEi8DpZVb4nw@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