ubifs:questions about this filesystem
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
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
A message that is not in the archive (sent off-list or not yet received): [email protected]
Richard Weinberger
maintainerAm 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