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

ByteBuffer allocation and de-allocation is expensive and becomes the performance bottleneck #119

Open
heyuanliu-intel opened this issue Jul 21, 2022 · 1 comment

Comments

@heyuanliu-intel
Copy link

During the performance benchmarking of the integration wildfly-openssl with Airlift, we found the performance bottleneck is ByteBuffer allocation and de-allocation.

Please refer to this project: https://github.com/heyuanliu-intel/AirliftPerformance

The system CPU utilization is about 20%. Most of the threads are blocked. Please refer to the thread dump file: https://raw.githubusercontent.com/heyuanliu-intel/AirliftPerformance/main/threaddump/thread1.txt

From this thread dump file, we can see that most of the threads are blocked by the ByteBuffer allocation and de-allocation.

After the investigation, we suggest to use pool based method to do ByteBuffer allocation and de-allocation.
The performance benchmarking is done.
Please refer to this project: https://github.com/heyuanliu-intel/ByteBufferPerformance

Based on the pool based allocation/de-allocation, we can get 4X performance improvement for the Airlift benchmarking.

I will submit the code and make the pull request.

@heyuanliu-intel
Copy link
Author

Made a pull request #120.

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

No branches or pull requests

1 participant