linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* ubifs:Questions About Garbage Collection
@ 2016-06-19 13:56 =?gb18030?B?u9TJ2Q==?=
  2016-06-19 14:50 ` Richard Weinberger
  0 siblings, 1 reply; 5+ messages in thread
From: =?gb18030?B?u9TJ2Q==?= @ 2016-06-19 13:56 UTC (permalink / raw)
  To: =?gb18030?B?bGludXgtbXRk?=

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 980 bytes --]

Hi£¬MTD  lists
I meet some problems while using UBI file system recently.I make an experiment in which I write 2 files(1KB each) to UBI frequently.Normally it takes only several millseconds to finish writting 2 files every time£¬but what puzzles me is that it takes about 4 minutes to write once nearly every 20 to 30 minutes.I am wondering how can this problem happen£¿Does Garbage Collection lead to this? I mount UBIFS to a 33MiB MTD partion with "o -sync" option.By the way,if UBI is mounted in asynchronous mode, this problem never happens. Does GC(Garbage Collecton) differ in synchronous mode andasynchronous mode?  What I've leared from some documents is that GC thread is sleeping while writting files without interval until UBIFS is full in synchronous mode and at that point writing will become very slow, but in asynchronous mode, before data is  moved into flash media, GC thread will work when there is not enough free space, am I right?


Many Thanks,
Best Regards.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-23 19:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-19 13:56 ubifs:Questions About Garbage Collection =?gb18030?B?u9TJ2Q==?=
2016-06-19 14:50 ` Richard Weinberger
     [not found]   ` <tencent_7ADEA65732A2B069166D1A41@qq.com>
2016-06-19 17:05     ` 回复:ubifs:Questions " Richard Weinberger
     [not found]       ` <CAOMqctT4Ftef-TTX+cC9HK5Fg4TTe9MDodGbSrJDBmsKBj_NWA@mail.gmail.com>
2016-06-23 17:34         ` Richard Weinberger
     [not found]           ` <CAOMqctTpTsTHd8tbVeA+X8bR0KQ77mufw4koDtwZV7rFquQ5xw@mail.gmail.com>
2016-06-23 19:18             ` Richard Weinberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).