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
Improve protected files performance #1599
Comments
Looks like reasonable optimizations. |
@yao-ji Is this something that you want to work on? |
Yes. And I have collected some data about time can be saved after applying the changes. Since there is no need to call
|
Description of the feature
Current implementation of protected file is slow, especially for large files. At least the following 2 improvements can be applied.
encrypted
part inside thefile_node_t
structure. The encrypted content can be directly retrieved from disk. The encryption/decryption functions can use the file mapped addresses instead so we can save the cache memory as well as the time used to copy it to/from disk.Why Gramine should implement it?
Performance test on SGX SDK shows that applying these two changes can make reading 2 times fasters and writing 7 times faster.
The text was updated successfully, but these errors were encountered: