Shaowei Song

Results 7 comments of Shaowei Song

@zhanhaozhao @yulangz I understand the problems you have encountered which are 1. performance degradation while reaching to a threshold of `innodb_buffer_pool_size` less than EPC size; 2. Require more `user_space_size` than...

@zhanhaozhao Thanks for your hard work here. I may give some hints for you to root cause these. As for larger `user_space_size`, you can check MySQL memory usage at runtime...

Latest plan: | Module | Description | Assignee | | ------------------------- | ------------------------------------------------------------ | -------- | | `Ext2` | - Originated from [Ext2-Asterinas](https://github.com/asterinas/asterinas/tree/main/kernel/aster-nix/src/fs/ext2)- To port Ext2-Asterinas to Occlum, several changes...

Hi @allvphx , thanks for using Occlum and try some demos. According to your error log, it seems the Occlum failed to initialize the rootfs at a very early stage....

**Symptom** Current bench results show that SyncIoDisk beats IoUringDisk up to 54% when concurrency is low, while IoUringDisk gradually overtakes SyncIoDisk when concurrency increases. Bench result: (4 vcpu, 2GB data,...

Workaround: Use `std::os::unix::fs::FileExt::read_at` and `write_at` API, remove the lock. Bench result: ![image](https://user-images.githubusercontent.com/22837133/172284685-ce782a27-513a-4e6a-a0cd-90b983a3bfec.png) Code: ![image](https://user-images.githubusercontent.com/22837133/172285541-51972777-478c-4a47-8699-f6af584b683f.png)

Improvement: Use `libc::ocall::preadv64`and`pwritev64` API. Bench result: ![image](https://user-images.githubusercontent.com/22837133/172518668-d4933089-bd62-41dd-81ff-fe93c6099f33.png) Code: ![image](https://user-images.githubusercontent.com/22837133/172518801-2d0aa8f7-ad09-4eb2-9ff5-a547eb187663.png)