teemon

module
v0.0.0-...-2758360 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2024 License: AGPL-3.0

README

TeeMon

This repo contains the software for the paper "TEEMon: A continuous performance monitoring framework for TEEs"

https://dl.acm.org/doi/10.1145/3423211.3425677

HowTo

  • TeeMon requires the linux kernel to be of version 4.15.0-99 or newer.
  • Install dependencies: docker-compose, docker.io, and linux-headers
    sudo apt update
    sudo apt install -y docker.io docker-compose linux-headers-$(uname -r)
    
  • Check if /usr/src/linux-headers-$(uname -r)/include/uapi/linux/bpf_perf_event.h is available on the host.
  • Adapt user: sudo adduser XXX docker. Log out, log in.
  • Install the monitoring SGX driver:
    • Uninstall
    sudo systemctl stop aesmd
    sudo /sbin/modprobe -r isgx
    sudo rm -rf "/lib/modules/"`uname -r`"/kernel/drivers/intel/sgx"
    sudo /sbin/depmod
    sudo /bin/sed -i '/^isgx$/d' /etc/modules
    
    • curl -fsSL https://raw.githubusercontent.com/scontain/SH/master/install_sgx_driver.sh | bash -s - install --force -p metrics
    • restart aesmd
    sudo systemctl start aesmd
    
    • check
    lsmod | grep sgx
    service aesmd status
    
  • Run: ./start.sh
  • Check running containers: docker ps should contain "prometheus, grafana, sgx-exporter, node-exporter, ebpf-exporter, cadvisor"
  • Open: http://localhost:9091

Remarks

  • To adjust the dashboard open http://localhost/login:9091 and login with admin and adminadmin
  • Directly persisting your changes is not yet supported. Grafana will tell you to use the clipboard.
  • You need to paste your changes into grafana/provisioning/dashboards/* and restart TeeMon
SGX Dashboard
  • On the SGX-Dashboard you need no use the "command filter" (top-left), eg. *.redis.* (regex) to show data in some of the graphs (eg. Number of syscall_enter).
  • Be careful not to use .*. It will overload your browser!
  • The ebpf_exporter curently tracks all processes.
  • The "command filter" works on the first 16 characters of the process' command (similar to what top shows).

Directories

Path Synopsis
exporters

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL