Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bdmfs_fatfs is slow #285

Open
rickgaiser opened this issue Jun 17, 2022 · 0 comments
Open

bdmfs_fatfs is slow #285

rickgaiser opened this issue Jun 17, 2022 · 0 comments

Comments

@rickgaiser
Copy link
Member

bdmfs_fatfs seems to do many 1 sector (512 byte) reads. These reads are slow, making the new fatfs driver a lot slower in many cases than the old vfat driver.

To fix this issue, the old bdmfs_vfat driver used a sector cache:
https://github.com/ps2dev/ps2sdk/blob/master/iop/fs/bdmfs_vfat/src/scache.c

As a solution for all filesystems, I think it's best to add the cache into BDM itself. So the caching code is shared between all block devices, and all file systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant