linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* ubifs:questions about this filesystem
@ 2016-06-22 14:13 =?gb18030?B?u9TJ2Q==?=
  2016-06-22 14:26 ` Richard Weinberger
  0 siblings, 1 reply; 4+ messages in thread
From: =?gb18030?B?u9TJ2Q==?= @ 2016-06-22 14:13 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: 366 bytes --]

Hi,MTD lists
I've got two questions about ubifs listed below,
1. If I write a file to the filesystem, dose it go to a new block or the same block last written file goes?
2. What's the priority of GC thread? If GC thread is working background, what effect will it bring to other working threads in my embedded system? Can other threads be blocked?

Best Regards,
Andy

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

* Re: ubifs:questions about this filesystem
  2016-06-22 14:13 ubifs:questions about this filesystem =?gb18030?B?u9TJ2Q==?=
@ 2016-06-22 14:26 ` Richard Weinberger
       [not found]   ` <tencent_1F5A13F32BF5625D7149E156@qq.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Weinberger @ 2016-06-22 14:26 UTC (permalink / raw)
  To: 辉少; +Cc: linux-mtd

Hi!

On Wed, Jun 22, 2016 at 4:13 PM, 辉少 <wang502742203@qq.com> wrote:
> Hi,MTD lists
> I've got two questions about ubifs listed below,
> 1. If I write a file to the filesystem, dose it go to a new block or the same block last written file goes?

UBIFS tries to fill up LEBs as much as possible. Allocating a new LEB
for every new file would be deadly.

> 2. What's the priority of GC thread? If GC thread is working background, what effect will it bring to other working threads in my embedded system? Can other threads be blocked?

Strictly speaking there is only a background thread to do many things.
GC can happen in many contexts.
The background thread is kthread with default priority.

-- 
Thanks,
//richard

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

* Re: 回复:ubifs:questions about this filesystem
       [not found]   ` <tencent_1F5A13F32BF5625D7149E156@qq.com>
@ 2016-06-22 14:45     ` Richard Weinberger
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Weinberger @ 2016-06-22 14:45 UTC (permalink / raw)
  To: 辉少, linux-mtd@lists.infradead.org

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

Am 22.06.2016 um 16:43 schrieb »ÔÉÙ:
> As for the second question, I mean if ubifs background is collecting garbage,meanwhile my embeded system is doing another thing, will GC thread affect the performance of "doing another thing"?

Please start unsing reply-all.
Sure will it as every thread on a multithreaded OS does...

Thanks,
//richard

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

* Re: 回复:ubifs:questions about this filesystem
  2016-06-22 15:26 =?gb18030?B?u9i4tKO6dWJpZnM6cXVlc3Rpb25zIGFib3V0IHRoaXMgZmlsZXN5c3RlbQ==?= =?gb18030?B?u9TJ2Q==?=
@ 2016-06-22 19:56 ` Richard Weinberger
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Weinberger @ 2016-06-22 19:56 UTC (permalink / raw)
  To: 辉少, linux-mtd

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

Hi!

Am 22.06.2016 um 17:26 schrieb »ÔÉÙ:
> Thank you for kind reply.
> 
> 1. As you said just now"there is only a background thread to do many things",  dose "many things" include both GC and synchronizing data?

I said GC can happen in many contexts. Also in the calling one.
To figure what the background thread exactly does see function ubifs_bg_thread().

> 2. If I write a file(1 KB) to ubifs mounted in 34MiB mtd, can i write 34,000 times or 34000/4 times(the real disk usage of a 1KB file is 4KB)£¿

The minimal file size on UBIFS is 4KiB. You can also not use all 34MiB, since UBIFS needs some LEBs for the journal, free space accounting,
master nodes, etc...

Thanks,
//richard

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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-22 14:13 ubifs:questions about this filesystem =?gb18030?B?u9TJ2Q==?=
2016-06-22 14:26 ` Richard Weinberger
     [not found]   ` <tencent_1F5A13F32BF5625D7149E156@qq.com>
2016-06-22 14:45     ` 回复:ubifs:questions " Richard Weinberger
  -- strict thread matches above, loose matches on Subject: below --
2016-06-22 15:26 =?gb18030?B?u9i4tKO6dWJpZnM6cXVlc3Rpb25zIGFib3V0IHRoaXMgZmlsZXN5c3RlbQ==?= =?gb18030?B?u9TJ2Q==?=
2016-06-22 19:56 ` 回复:ubifs:questions about this filesystem 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).