You can use ssh port forwarding (-R/-L/etc), but that's going to be pretty slow.
you'll find a better answer by looking up ways to network qemu guests with the host. there're better guides and that's outside the scope of this mailing list, I think. You should be able to just forward the memcached port to the host, similar to how ssh is being forwarded. On Wed, 7 Nov 2018, Probir Roy wrote: > I am trying to benchmark memcached running in a hosted virtual machine > (Qemu). For this I want to run memcslap from the host machine. > > The memcached running in VM is configured as following: > > > /etc/init.d/memcached status > > > ● memcached.service - memcached daemon > > Loaded: loaded (/lib/systemd/system/memcached.service; enabled; vendor > preset: enabled) > > Active: active (running) since Tue 2018-11-06 11:14:06 CST; 6s ago > > Main PID: 2434 (memcached) > > Tasks: 6 > > Memory: 3.7M > > CPU: 18ms > > CGroup: /system.slice/memcached.service > > └─2434 /usr/bin/memcached -m 64 -p 11211 -u memcache -l 127.0.0.1 > > > > > I can run memcslap from VM using following command: > memcslap --servers=127.0.0.1:11211 --concurrency=100 --execute-number=10000 > --initial-load=10000 --flush > > > But I would like to run the memcslap from host machine. The host can ssh to > VM through: > > ssh -X -p 2222 user@192.168.122.1 > > > My question is how can I run memcslap from the host to the VM memcache. > > > > -- > > --- > You received this message because you are subscribed to the Google Groups > "memcached" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to memcached+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > -- --- You received this message because you are subscribed to the Google Groups "memcached" group. To unsubscribe from this group and stop receiving emails from it, send an email to memcached+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.