-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs #6: Optimize again and fix intenger out-of-range bug
* Removes "expect_false" on EVRUN_NOWAIT in libev's ev_run() code. It cuts down the CPU cycle usage by ev_run() to half! (Still, our performance bottleneck is not on the libev itself. When we observe high CPU percentage on libev, it means that the CPU is wasting its cycles.) * Limits NBA_MAX_IO_BASES from 17 to 1. This reduces the size of memory area used by both CPU and GPU. It meas that we now have bottlenecks in memory/cache subsystems. - Adds a blocking ev_run() call to wait io_bases to become available, using the same technique for waiting batch pools: ev_run() <=> ev_break() pairs - This provides performance improvements. * Increases offset sizes from uint16_t to uint32_t for when running IPsec with MTU-sized packets, where offsets may exceed 65535. This has been the main reason of frequent errors when running IPsec with large-size packets (>= 512 bytes). - This decreases performance. => Above two performance improvements/degradation compensate each other. So there is no performance change compared to the previous commit. * Reduces memory footprint by using variable-sized array in datablock arguments. However, this does not yield significant performance changes because we already have "full" aggregated batches when offloading IPsec encryption due to computation/memory bottlenecks.
- Loading branch information
Showing
16 changed files
with
165 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.