mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-05 13:21:37 +00:00
Supporting these options complicates the design of Graphene and loading
logic significantly, providing little useful functionality:
- loader.exec:
- the main user of it were our tests
- worked only for the first process spawned inside Graphene, as it
was a unidirectional manifest->binary mapping, so the child
process didn't know about the corresponding manifest.
- sgx.sigfile:
- probably all existing usages of it were completely redundant
- was resolved relatively to CWD instead of the executable location,
which made it mostly useless
From now on, the correct location of the files is:
- either place the manifest and sigfile next to the binary, with a
matching name, or
- create a symlink to the binary in the folder where manifests are
stored and launch it through this symlink
# Memcached This directory contains the Makefile and the template manifest for the most recent version of Memcached as of this writing (v1.5.21). This was tested on a machine with SGX v1 and Ubuntu 18.04. The Makefile and the template manifest contain extensive comments and are made self-explanatory. Please review them to gain understanding in Graphene-SGX and requirements for applications running under Graphene-SGX. # Prerequisites Please install `libevent-dev` package. If you want to benchmark with memcslap, also install `libmemcached-tools`. # Quick Start ```sh # build Memcached and the final manifest make SGX=1 # run original Memcached against a benchmark (memtier_benchmark, # install the benchmark on your host OS first) ./memcached & memtier_benchmark --port=11211 --protocol=memcache_binary --hide-histogram killall memcached # run Memcached in non-SGX Graphene against a benchmark # (note -u nobody, for explanation see memcached.manifest.template) ./pal_loader memcached -u nobody & memtier_benchmark --port=11211 --protocol=memcache_binary --hide-histogram killall pal-Linux # run Memcached in Graphene-SGX against a benchmark SGX=1 ./pal_loader memcached -u nobody & memtier_benchmark --port=11211 --protocol=memcache_binary --hide-histogram killall pal-Linux-SGX ```