MFS dir listing slow

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,080件の閲覧回数
adyr
Contributor V

Hi,

I have run the usbdisk_twrk64f120m example that is part of the KSDK 1.1. If I type dir in the shell, with a thumb drive that contains around 2000 files, it takes around 9 minutes to list the contents. If I rem out the line 'error_code = ioctl(dir_ptr->FS_PTR, IO_IOCTL_GET_LFN, (void *)&dir_ptr->LFN_DATA);' it only takes around 10 seconds. So getting the long file names is very inefficient in this case.

I have also created a project using the fatfs file system and emulated the dir process and that takes 12 seconds to list all the files with the LFN included.

I seem to remember a solution posted for MQX 4 and MFS where the search for the LFN started on the previous sector instead of the beginning each time but I can't find it now. Can anyone point me to that or recommend how it could be done with the new platform?

Thanks,

Adrian.

ラベル(2)
0 件の賞賛
返信
1 解決策
893件の閲覧回数
RadekS
NXP Employee
NXP Employee

Hi Adrian,

Yes, you are right. It is known issue. Big number of files/directories slows down listing.

This was already fixed in new reworked MFS and it will be part of MQX 4.2 and KSDK 1.2. Current plan for release is end of this month. So, it should be available during next few days.

I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
894件の閲覧回数
RadekS
NXP Employee
NXP Employee

Hi Adrian,

Yes, you are right. It is known issue. Big number of files/directories slows down listing.

This was already fixed in new reworked MFS and it will be part of MQX 4.2 and KSDK 1.2. Current plan for release is end of this month. So, it should be available during next few days.

I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
893件の閲覧回数
adyr
Contributor V

Thanks RadekS, that is excellent news.

Adrian.

0 件の賞賛
返信