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
In first terminal: ./memcached --port 11211 --threads=4
In second terminal: memtier_benchmark --port=11211 --protocol=memcache_binary --hide-histogram
2. Testing native with socat proxy
In first terminal: ./memcached --port 11212 --threads=4
In second terminal: socat TCP4-LISTEN:11211,reuseaddr,fork,backlog=256 TCP4-CONNECT:localhost:11212
In third terminal: memtier_benchmark --port=11211 --protocol=memcache_binary --hide-histogram
3. Testing Gramine-VM/TDX
In first terminal: QEMU_CPU_NUM=4 gramine-vm memcached
In second terminal: socat TCP4-LISTEN:11211,reuseaddr,fork,backlog=256 VSOCK-CONNECT:10:11211
In third terminal: memtier_benchmark --port=11211 --protocol=memcache_binary --hide-histogram
Same for gramine-tdx variant.
Note that we don't specify --port and --threads because Gramine manifest file doesn't allow commandline args. But these are the default values (11211 and 4), so we don't need to specify them anyway.
Explanations
Case (1) is our best case -- normal Memcached invocation. Case (2) shows the overhead of using socat. Case (3) is our Gramine case.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
1. Testing native
./memcached --port 11211 --threads=4
memtier_benchmark --port=11211 --protocol=memcache_binary --hide-histogram
2. Testing native with socat proxy
./memcached --port 11212 --threads=4
socat TCP4-LISTEN:11211,reuseaddr,fork,backlog=256 TCP4-CONNECT:localhost:11212
memtier_benchmark --port=11211 --protocol=memcache_binary --hide-histogram
3. Testing Gramine-VM/TDX
QEMU_CPU_NUM=4 gramine-vm memcached
socat TCP4-LISTEN:11211,reuseaddr,fork,backlog=256 VSOCK-CONNECT:10:11211
memtier_benchmark --port=11211 --protocol=memcache_binary --hide-histogram
Same for
gramine-tdx
variant.Note that we don't specify
--port
and--threads
because Gramine manifest file doesn't allow commandline args. But these are the default values (11211 and 4), so we don't need to specify them anyway.Explanations
Case (1) is our best case -- normal Memcached invocation. Case (2) shows the overhead of using
socat
. Case (3) is our Gramine case.Beta Was this translation helpful? Give feedback.
All reactions