public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "NIkhil Shirodkar" <nikhils@cdac.in>
To: "Artem B. Bityutskiy" <dedekind@yandex.ru>
Cc: linux-mtd@lists.infradead.org
Subject: RE: About JFFS2 garbage collector.
Date: Fri, 10 Mar 2006 17:45:21 +0530	[thread overview]
Message-ID: <GKELLIPIEBJEKGFGNIFKGEHACAAA.nikhils@cdac.in> (raw)
In-Reply-To: <44115D6D.8030702@yandex.ru>

What I figured out one call jffs2_garbage_collect_pass() which initiates
garbage collection when there is not enough space to write a file. I figured
out few more instances when this got called, Let me know if this is the only
call to trigger garbage collector or are there any more calls?

Is it essential to call jffs2_garbage_collect_pass() repeatedly to get a
free jeb, or if once the jffs2_garbage_collect_pass() is called, it ensures
of making one jeb free. (barring the case when ic-->state of
INO_STATE_READING is found and the GC returns success without achieving the
desired)

I also wanted to find out _all_ other instances when the GC thread runs. Is
there any way one can force the GC thread to run like the case when, you are
not performing any I/O operations. This might be helpful to reduce the write
latency of a nearly full filesystem.

thx,

nik
NISG, CDAC

-----Original Message-----
From: Artem B. Bityutskiy [mailto:dedekind@yandex.ru]
Sent: Friday, March 10, 2006 4:35 PM
To: Nikhil
Cc: linux-mtd@lists.infradead.org
Subject: Re: About JFFS2 garbage collector.

Nikhil wrote:
> Is there any documentations as such for the JFFS2 garbage collection
> policy. Plaese let me know if any. Even if there is none, i am not
> hesistant to look in the code, can some one of you give me some pointers
> for the same.
I don't think there is some documentation. JFFS2 GC policy is fairly
trivial. Just ask your questions, I'll try to answer.

--
Best Regards,
Artem B. Bityutskiy,
St.-Petersburg, Russia.

  reply	other threads:[~2006-03-10 12:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-10 10:35 About JFFS2 garbage collector Nikhil
2006-03-10 11:05 ` Artem B. Bityutskiy
2006-03-10 12:15   ` NIkhil Shirodkar [this message]
2006-03-10 14:50     ` Artem B. Bityutskiy
2006-03-10 14:51       ` Artem B. Bityutskiy
  -- strict thread matches above, loose matches on Subject: below --
2006-03-10 10:35 Nikhil

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=GKELLIPIEBJEKGFGNIFKGEHACAAA.nikhils@cdac.in \
    --to=nikhils@cdac.in \
    --cc=dedekind@yandex.ru \
    --cc=linux-mtd@lists.infradead.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