You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current implementation of protected file is slow, especially for large files. At least the following 2 improvements can be applied.
Use file map to replace read/write a single node from/to disk.
Remove the encrypted part inside the file_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:
@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 g_cb_read and g_cb_write in reading/writing each node, we calculate how much time these two call backs used inside each read/write syscall. Note that the write syscall performs both ipf_write and ipf_internal_flush, so we will add the time used of these two together. The test code can be found here.
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: