-
Notifications
You must be signed in to change notification settings - Fork 819
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Performance drop with Large block size(1MB) with SDCard #1003
Comments
Hi, Here is the procdure to reproduce the issue: Settings: Create 1024 file:
Will get stuck and the filesystem corruption. Thank you for your help. |
Hi @iloop2020, thanks for creating an issue. This is a known issue with littlefs, it scales pretty terribly with large block sizes ( What is your block device? Some devices support a range of erase sizes, with varying names which can get a bit confusing.
Lines 271 to 275 in d01280e
|
Hi @geky , Thank you very much for your replay and support. Block devices info: Question: Thank you. |
Hi @iloop2020, I don't have very useful numbers, so it's hard to say without a bit of trial and error. A good starting value might be 4KiB, and decreasing if you still notice performance issues. |
Hi,
I found a read performance drop with 1MB block size, after a number of new files are created.
I measured the performance drop, there are extra sector_read() call, especially on Block0 and Block1. Delete those newly created files don't recover the performance.
Thank you for advise.
The text was updated successfully, but these errors were encountered: