squaremiledev / asynctransport

Apache License 2.0
3 stars 2 forks source link

Zero allocation in steady state during serialization and deserialization #2

Closed michaelszymczak closed 3 years ago

squaremiledev commented 3 years ago

Run profiler for allocation. Example profiling for the on-stack application (with no allocation detected)

bfcad78f6d7bc0bf8e3544ef024a96a448b54964

sudo sysctl -w kernel.perf_event_paranoid=1
sudo sysctl -w kernel.kptr_restrict=0
openjdk version "11.0.8" 2020-07-14
java -classpath "./asynctcpacceptance/build/distributions/asynctcpacceptance/lib/*" dev.squaremile.asynctcpacceptance.EchoConnectionApplication  9998
java -XX:+PreserveFramePointer -XX:TLABSize=2k -XX:-ResizeTLAB -classpath "./asynctcpacceptance/build/distributions/asynctcpacceptance/lib/*" dev.squaremile.asynctcpacceptance.SourcingConnectionApplication localhost 9998 100000 31250 600000000 32          
./profiler.sh -e alloc -d 60 -f /tmp/allocTLAB2k.svg --title "Alloc" SourcingConnectionApplication