|
| 1 | +# Justfile Script Tools Reference |
| 2 | + |
| 3 | +## Utility Tools |
| 4 | + |
| 5 | +### Data Management |
| 6 | +``` |
| 7 | +# Generate test data |
| 8 | +AlloyStack$ just gen_data |
| 9 | +
|
| 10 | +# Initialize environment |
| 11 | +AlloyStack$ just init |
| 12 | +``` |
| 13 | + |
| 14 | +## Build Commands |
| 15 | + |
| 16 | +### System Services |
| 17 | +``` |
| 18 | +# Build all LibOS modules |
| 19 | +AlloyStack$ just all_libos |
| 20 | +
|
| 21 | +# Build specific LibOS module |
| 22 | +AlloyStack$ just libos <module_name> # e.g., just libos stdio |
| 23 | +``` |
| 24 | + |
| 25 | +### User Functions |
| 26 | +``` |
| 27 | +# Build Rust user function |
| 28 | +AlloyStack$ just rust_func <function_name> # e.g., just rust_func mapper |
| 29 | +
|
| 30 | +# Build WASM user function |
| 31 | +AlloyStack$ just wasm_func <function_name> # e.g., just wasm_func wasmtime_mapper |
| 32 | +``` |
| 33 | + |
| 34 | +### Workflow-Specific Builds |
| 35 | +``` |
| 36 | +# Build MapReduce components |
| 37 | +AlloyStack$ just map_reduce |
| 38 | +
|
| 39 | +# Build Parallel Sort components |
| 40 | +AlloyStack$ just parallel_sort |
| 41 | +
|
| 42 | +# Build Long Chain components |
| 43 | +AlloyStack$ just long_chain |
| 44 | +
|
| 45 | +# Build Simple File components |
| 46 | +AlloyStack$ just simple_file |
| 47 | +``` |
| 48 | + |
| 49 | +## Test Execution Tools |
| 50 | +### Performance Tests |
| 51 | +``` |
| 52 | +# Run cold start latency tests |
| 53 | +AlloyStack$ just cold_start_latency |
| 54 | +
|
| 55 | +# Run data transfer latency tests |
| 56 | +AlloyStack$ just data_transfer_latency |
| 57 | +
|
| 58 | +# Run end-to-end latency tests |
| 59 | +AlloyStack$ just end_to_end_latency |
| 60 | +
|
| 61 | +# Run breakdown analysis |
| 62 | +AlloyStack$ just breakdown |
| 63 | +
|
| 64 | +# Run P99 latency tests |
| 65 | +AlloyStack$ just p99 |
| 66 | +
|
| 67 | +# Measure resource consumption |
| 68 | +AlloyStack$ just resource_consume |
| 69 | +``` |
| 70 | + |
| 71 | +### WASM Application Tests |
| 72 | + |
| 73 | +``` |
| 74 | +# Test C WASM applications |
| 75 | +AlloyStack$ just c_end_to_end_latency |
| 76 | +
|
| 77 | +# Test Python WASM applications |
| 78 | +AlloyStack$ just py_end_to_end_latency |
| 79 | +``` |
| 80 | + |
| 81 | +## Workflow-Specific Scripts |
| 82 | + |
| 83 | +### C Applications |
| 84 | +``` |
| 85 | +# Build and test C wordcount |
| 86 | +AlloyStack$ just c_wordcount |
| 87 | +
|
| 88 | +# Build and test C parallel sort |
| 89 | +AlloyStack$ just c_parallel_sort |
| 90 | +
|
| 91 | +# Build and test C long chain |
| 92 | +AlloyStack$ just c_long_chain |
| 93 | +``` |
| 94 | + |
| 95 | +### Python Applications |
| 96 | +``` |
| 97 | +# Build and test Python wordcount |
| 98 | +AlloyStack$ just python_wordcount |
| 99 | +
|
| 100 | +# Build and test Python parallel sort |
| 101 | +AlloyStack$ just python_parallel_sort |
| 102 | +
|
| 103 | +# Build and test Python long chain |
| 104 | +AlloyStack$ just python_long_chain |
| 105 | +``` |
| 106 | + |
| 107 | +## Comprehensive Build Scripts |
| 108 | +``` |
| 109 | +# Build all Rust components |
| 110 | +AlloyStack$ just all_rust |
| 111 | +
|
| 112 | +# Build all C WASM applications |
| 113 | +AlloyStack$ just all_c_wasm |
| 114 | +
|
| 115 | +# Build all Python WASM applications |
| 116 | +AlloyStack$ just all_py_wasm |
| 117 | +
|
| 118 | +# Build all WASM applications |
| 119 | +AlloyStack$ just all_wasm |
| 120 | +
|
| 121 | +# Build and run all Rust tests |
| 122 | +AlloyStack$ just run_rust_test |
| 123 | +``` |
| 124 | +## Environment Configuration |
| 125 | +### Build Flags |
| 126 | + |
| 127 | +`enable_mpk` : Enable Memory Protection Keys |
| 128 | + |
| 129 | +`enable_pkey_per_func` : Enable per-function protection keys |
| 130 | + |
| 131 | +`enable_file_buffer` : Enable file-based buffering |
| 132 | + |
| 133 | +`enable_release` : Build in release mode |
| 134 | + |
| 135 | +# Helper Scripts |
| 136 | +These scripts are included in [AlloyStack/scripts](../scripts/) directory. |
| 137 | + |
| 138 | +`build_all_common.sh` : Build common LibOS modules |
| 139 | + |
| 140 | +`build_all_common_mpk.sh` : Build LibOS modules with MPK |
| 141 | + |
| 142 | +`build_user.sh` : Build all user functions |
| 143 | + |
| 144 | +`run_tests.sh` : Run test suite |
| 145 | + |
| 146 | +`gen_data.py` : Generate test datasets |
| 147 | + |
| 148 | +`clean_all.sh` : Delete files generated by compilation |
0 commit comments