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

Benchmark whether EROFS_FS_PCPU_KTHREAD & EROFS_FS_PCPU_KTHREAD_HIPRI increases cold boot performance #62

Open
ericcurtin opened this issue Jan 24, 2024 · 5 comments
Assignees
Labels

Comments

@ericcurtin
Copy link
Collaborator

If yes, try and get into Fedora, CentOS Stream 10, Automotive kernels.

@ericcurtin ericcurtin self-assigned this Jan 24, 2024
@hsiangkao
Copy link

hsiangkao commented Jan 24, 2024

Hi @ericcurtin, I think EROFS_FS_PCPU_KTHREAD_HIPRI will reduce overall latencies due to scheduling, especially for Android runtime.
I'm not sure if it really help the specific use of automative system cold boot (I'm not sure the cold boot I/O pattern, maybe mainly impacted by sequential read), if yes, I guess you could improve this by using:

  1. (readahead) adjust a larger read_ahead_kb temporarily;
  2. (readahead) maybe use "ureadahead" or similar stuffs.
  3. use a large pcluster size for specific files for better sequential read numbers, but it could have negative impacts on low memory scenarios though.

@ericcurtin
Copy link
Collaborator Author

@hsiangkao thanks for the tips! If you get some free time feel free to give this a run and provide further feedback 😊

@ericcurtin
Copy link
Collaborator Author

This solution is ahead on many of the benchmarks as you'll see in the graph in the README.md I just merged... But... Towards the end of the boot sequence by the time multi-user.target or graphical.target is reached for example... This erofs/initoverlayfs solution is slightly behind, because well, erofs eventually falls behind to the initramfs in memory although it starts ahead of initramfs-only.

@ericcurtin
Copy link
Collaborator Author

ericcurtin commented Jan 25, 2024

The goal is to propose this solution for all Fedora distros and hence RHEL, RHIVOS, etc. although the main driver is Automotive like you say where early boot services are required. It would be neat to have EROFS be a part of the boot sequence for at least the non-complex boots.

@hsiangkao
Copy link

@hsiangkao thanks for the tips! If you get some free time feel free to give this a run and provide further feedback 😊

I could seek some time to try this, yet I'm still mainly focuing on improving EROFS and erofs-utils theirselves to complete TODO items since it will benefit to all users. Time is limited and no so many active developers help so that is a bad news...

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

No branches or pull requests

2 participants