gramineproject / examples

Sample applications configs for Gramine
BSD 3-Clause "New" or "Revised" License
29 stars 22 forks source link

Add iperf example #87

Closed dimstav23 closed 5 months ago

dimstav23 commented 6 months ago

This PR adds the iperf example. It provides a Makefile that clones and builds the latest stable version (3.16) of iperf as of now. Note that it places the iperf3 executable and the libiperf shared library in the created install directory. It further includes the Gramine manifest template and a top level README that provides instructions on how to compile and run the iperf server (both natively and in Gramine --- with and without SGX) and the iperf client (natively) to get the desired measurements.


This change is Reviewable

dimstav23 commented 6 months ago

Reviewable status: all files reviewed, 3 unresolved discussions, not enough approvals from maintainers (2 more required), not enough approvals from different teams (2 more required, approved so far: ) (waiting on @dimstav23)

a discussion (no related file): Add the explicit BSD-3 license, see #90

Added the BSD-3 license.

dimstav23 commented 5 months ago

Reviewable status: all files reviewed, 2 unresolved discussions, not enough approvals from maintainers (2 more required), not enough approvals from different teams (2 more required, approved so far: ) (waiting on @dimakuv and @dimstav23)

iperf/Makefile line 21 at r3 (raw file):

Previously, woju (Wojtek Porczyk) wrote… I will take care of this now.

But I want to do it via "download from GitHub Releases page". I think it's much better to have a specific version of the tool, instead of the unknown distro package version.

I also tried to adapt it to use the Ubuntu 22.04.3 LTS package binary. However I hit on this error. Note: tested with gramine-direct using gramine v1.6.

Update: I saw that @dimakuv modified the fetching with the SHA256 addition :)