Skip to contentSkip to conversation

ubifs:questions about this filesystem

DISCUSSION 辉少 3 participants 3 messages Jun 22, 2016 1 message not in the archive Memory technology devices (MTD)

lore
Share & tools
lore

辉少

author
#0 lore raw

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

#1 lore raw

Hi!

Quoted 3 lines · 辉少

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.

Quoted 1 line

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.

Signature · 2 lines
Thanks,
//richard
#3 lore raw
In reply to a message not in the archive

Am 22.06.2016 um 16:43 schrieb 辉少:

Quoted 1 line

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