-
-
Notifications
You must be signed in to change notification settings - Fork 603
osv memcached
vladzcloudius edited this page Mar 24, 2014
·
3 revisions
osv-memcached application is a pilot that demonstrates the power of OSv in regard of bypassing the OS layers. It partially implements the memcache protocol by connecting to the FreeBSD PF hook and handling the memcache requests.
- UDP protocol only.
- GET and SET verbs only.
- Supports a single request per-packet only.
- User may limit the maximum size of totally cached data.
- IP fragmentation IS NOT supported.
- Get OSv:
- git clone https://github.com/cloudius-systems/osv.git
- Follow the instructions in osv/README.md
- Build the osv-memcached image:
make image=osv-memcached
By default the size of the data cache is set to 1GB. One may change it with -m option.
For example, to run a single vCPU OSv instance with 4GB memory and memcached data cache size of 2GB one may run the following command:
sudo ./scripts/run.py -n -v -V -c1 -m4G -e "/tools/osv-memcached -m 2048"
After that one may run any memcache client he/she wants under the described above limitations. For example one may use memaslap benchmark:
memaslap -s <server IP> -T 3 --concurrency 120 -t 5s --udp