forked from microsoft/demikernel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinux.mk
483 lines (395 loc) · 17 KB
/
linux.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
#=======================================================================================================================
# Default Paths
#=======================================================================================================================
export PREFIX := $(HOME)
export INSTALL_PREFIX := $(HOME)
export PKG_CONFIG_PATH := $(shell find $(PREFIX)/lib/ -name '*pkgconfig*' -type d 2> /dev/null | xargs | sed -e 's/\s/:/g')
export LD_LIBRARY_PATH := $(HOME)/lib:$(shell find $(PREFIX)/lib/ -name '*x86_64-linux-gnu*' -type d 2> /dev/null | xargs | sed -e 's/\s/:/g')
#=======================================================================================================================
# Build Configuration
#=======================================================================================================================
export BUILD := release
ifeq ($(DEBUG),yes)
export RUST_LOG ?= trace
export BUILD := dev
endif
#=======================================================================================================================
# Project Directories
#=======================================================================================================================
export BINDIR ?= $(CURDIR)/bin
export INCDIR ?= $(CURDIR)/include
export SRCDIR = $(CURDIR)/src
export BUILD_DIR := $(CURDIR)/target/release
ifeq ($(BUILD),dev)
export BUILD_DIR := $(CURDIR)/target/debug
endif
#=======================================================================================================================
# Toolchain Configuration
#=======================================================================================================================
# Rust
export CARGO ?= $(shell which cargo || echo "$(HOME)/.cargo/bin/cargo" )
export CARGO_FLAGS += --profile $(BUILD)
#=======================================================================================================================
# Libraries
#=======================================================================================================================
export DEMIKERNEL_LIB := $(BUILD_DIR)/libdemikernel.so
export LIBS := $(DEMIKERNEL_LIB)
#=======================================================================================================================
# Build Parameters
#=======================================================================================================================
export LIBOS ?= catnip
export CARGO_FEATURES := --features=$(LIBOS)-libos
# Switch for DPDK
ifeq ($(LIBOS),catnip)
DRIVER ?= $(shell [ ! -z "`lspci | grep -E "ConnectX-[4,5]"`" ] && echo mlx5 || echo mlx4)
CARGO_FEATURES += --features=$(DRIVER)
endif
# Switch for profiler.
export PROFILER=no
ifeq ($(PROFILER),yes)
CARGO_FEATURES += --features=profiler
endif
CARGO_FEATURES += $(FEATURES)
#=======================================================================================================================
all: all-libs all-tests all-examples
# Builds documentation.
doc:
$(CARGO) doc $(FLAGS) --no-deps
# Copies demikernel artifacts to a INSTALL_PREFIX directory.
install:
mkdir -p $(INSTALL_PREFIX)/include $(INSTALL_PREFIX)/lib
cp -rf $(INCDIR)/* $(INSTALL_PREFIX)/include/
cp -f $(DEMIKERNEL_LIB) $(INSTALL_PREFIX)/lib/
#=======================================================================================================================
# Libs
#=======================================================================================================================
# Builds all libraries.
all-libs:
@echo "LD_LIBRARY_PATH: $(LD_LIBRARY_PATH)"
@echo "PKG_CONFIG_PATH: $(PKG_CONFIG_PATH)"
@echo "$(CARGO) build --libs $(CARGO_FEATURES) $(CARGO_FLAGS) $(EXAMPLE_FEATURES)"
$(CARGO) build --lib $(CARGO_FEATURES) $(CARGO_FLAGS) $(EXAMPLE_FEATURES)
#=======================================================================================================================
# Tests
#=======================================================================================================================
# Builds all tests.
all-tests: all-tests-rust all-tests-c
# Builds all Rust tests.
all-tests-rust: all-libs
@echo "$(CARGO) build --tests $(CARGO_FEATURES) $(CARGO_FLAGS)"
$(CARGO) build --tests $(CARGO_FEATURES) $(CARGO_FLAGS)
# Builds all C tests.
all-tests-c: all-libs
$(MAKE) -C tests all
# Cleans up all build artifactos for tests.
clean-tests: clean-tests-c
# Cleans up all C build artifacts for tests.
clean-tests-c:
$(MAKE) -C tests clean
#=======================================================================================================================
# Examples
#=======================================================================================================================
# Builds all examples.
all-examples: all-examples-c all-examples-rust
# Builds all C examples.
all-examples-c:
$(MAKE) -C examples/c all
# Builds all Rust examples.
all-examples-rust:
$(MAKE) -C examples/rust all
# Cleans all examples.
clean-examples: clean-examples-c clean-examples-rust
# Cleans all C examples.
clean-examples-c:
$(MAKE) -C examples/c clean
# Cleans all Rust examples.
clean-examples-rust:
$(MAKE) -C examples/rust clean
#=======================================================================================================================
# Check
#=======================================================================================================================
# Check code style formatting.
check-fmt: check-fmt-c check-fmt-rust
# Check code style formatting for C.
check-fmt-c:
$(shell find include/ -name "*.h" -name "*.hxx" -name "*.c" -name "*.cpp" -type f -print0 | xargs -0 clang-format --fallback-style=Microsoft --dry-run -Werror )
@exit $(.SHELLSTATUS)
# Check code style formatting for Rust.
check-fmt-rust:
$(CARGO) fmt --all -- --check
#=======================================================================================================================
# Clean
#=======================================================================================================================
# Cleans up all build artifacts.
clean: clean-examples clean-tests
rm -rf target ; \
rm -f Cargo.lock ; \
$(CARGO) clean
#=======================================================================================================================
export CONFIG_PATH ?= $(HOME)/config.yaml
export MTU ?= 1500
export MSS ?= 1500
export PEER ?= server
export TEST ?= udp_push_pop
export TIMEOUT ?= 30
#=======================================================================================================================
# Capybara Environment Variables
#=======================================================================================================================
export CONFIG_DIR = $(CURDIR)/config
export ELF_DIR ?= $(CURDIR)/bin/examples/rust
# Runs system tests.
test-system: test-system-rust
# Rust system tests.
test-system-rust:
timeout $(TIMEOUT) $(BINDIR)/examples/rust/$(TEST).elf $(ARGS)
# Runs unit tests.
test-unit: test-unit-rust
# C unit tests.
test-unit-c: $(BINDIR)/syscalls.elf
$(BINDIR)/syscalls.elf
# Rust unit tests.
test-unit-rust:
# $(CARGO) test --lib $(CARGO_FLAGS) $(CARGO_FEATURES) -- --nocapture $(UNIT_TEST)
$(CARGO) test tcp_migration --lib $(CARGO_FLAGS) $(CARGO_FEATURES) -- --nocapture $(UNIT_TEST)
ENV += CAPY_LOG=all
ENV += LIBOS=catnip
tcp-echo:
sudo -E LIBOS=catnip CONFIG_PATH=$(CONFIG_DIR)/be0_config.yaml \
PKG_CONFIG_PATH=/homes/inho/lib/x86_64-linux-gnu/pkgconfig \
LD_LIBRARY_PATH=/homes/inho/lib:/homes/inho/lib/x86_64-linux-gnu \
/homes/inho/Capybara/capybara/bin/examples/rust/tcp-echo.elf \
--peer server --local 10.0.1.9:10000 --bufsize 1024
tcpmig-single-origin:
sudo -E LIBOS=catnip CONFIG_PATH=$(CONFIG_DIR)/s1_config.yaml \
PKG_CONFIG_PATH=/homes/inho/lib/x86_64-linux-gnu/pkgconfig \
LD_LIBRARY_PATH=/homes/inho/lib:/homes/inho/lib/x86_64-linux-gnu \
/homes/inho/Capybara/capybara/bin/examples/rust/tcpmig-server-single.elf \
10.0.1.8:22222
tcpmig-single-target:
sudo -E LIBOS=catnip CONFIG_PATH=$(CONFIG_DIR)/s2_config.yaml \
PKG_CONFIG_PATH=/homes/inho/lib/x86_64-linux-gnu/pkgconfig \
LD_LIBRARY_PATH=/homes/inho/lib:/homes/inho/lib/x86_64-linux-gnu \
/homes/inho/Capybara/capybara/bin/examples/rust/tcpmig-server-single.elf \
10.0.1.9:22222
tcpmig-client:
sudo -E \
LIBOS=catnap \
CONFIG_PATH=$(CONFIG_DIR)/node7_config.yaml \
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) \
taskset --cpu-list 0 \
$(ELF_DIR)/tcpmig-client.elf 10.0.1.8:10000
http-server-fe:
sudo -E \
IS_FRONTEND=1 \
NUM_CORES=4 \
CONFIG_PATH=$(CONFIG_DIR)/node8_config.yaml \
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) \
$(ENV) \
taskset --cpu-list 0 \
$(ELF_DIR)/http-server.elf 10.0.1.8:10000
capybara-switch:
sudo -E \
NUM_CORES=1 \
CONFIG_PATH=$(CONFIG_DIR)/node8_config.yaml \
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) \
$(ENV) \
numactl -m0 taskset --cpu-list 1 \
$(ELF_DIR)/capybara-switch.elf 10.0.1.8:10000 10.0.1.8:10001
http-server-be0:
sudo -E \
NUM_CORES=4 \
CORE_ID=1 \
CONFIG_PATH=$(CONFIG_DIR)/node9_config.yaml \
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) \
$(ENV) \
numactl -m0 taskset --cpu-list 1 \
$(ELF_DIR)/http-server.elf 10.0.1.9:10000
http-server-be1:
sudo -E \
NUM_CORES=4 \
CORE_ID=2 \
CONFIG_PATH=$(CONFIG_DIR)/node9_config.yaml \
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) \
$(ENV) \
numactl -m0 taskset --cpu-list 2 \
$(ELF_DIR)/http-server.elf 10.0.1.9:10001
http-server-be2:
sudo -E \
MIG_THRESHOLD=5 \
CONFIG_PATH=$(CONFIG_DIR)/be2_config.yaml \
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) \
taskset --cpu-list 2 \
$(ELF_DIR)/http-server.elf 10.0.1.9:10002
http-server-be3:
sudo -E \
MIG_THRESHOLD=5 \
CONFIG_PATH=$(CONFIG_DIR)/be3_config.yaml \
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) \
taskset --cpu-list 3 \
$(ELF_DIR)/http-server.elf 10.0.1.9:10003
tcpmig-multi-origin:
sudo -E \
IS_FRONTEND=1 \
CONFIG_PATH=$(CONFIG_DIR)/fe_config.yaml \
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) \
taskset --cpu-list 0 \
$(ELF_DIR)/tcpmig-server-multi.elf 10.0.1.8:10000
tcpmig-multi-target0:
sudo -E CAPYBARA_LOG="tcpmig" \
MIG_THRESHOLD=10000 \
CORE_ID=1 \
CONFIG_PATH=$(CONFIG_DIR)/node9_config.yaml \
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) \
$(ELF_DIR)/tcpmig-server-multi.elf 10.0.1.9:10000
tcpmig-multi-target1:
sudo -E CAPYBARA_LOG="tcpmig" \
MIG_THRESHOLD=10000 \
CORE_ID=2 \
CONFIG_PATH=$(CONFIG_DIR)/node9_config.yaml \
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) \
$(ELF_DIR)/tcpmig-server-multi.elf 10.0.1.9:10001
tcpmig-multi-target2:
sudo -E \
CONFIG_PATH=$(CONFIG_DIR)/be2_config.yaml \
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) \
taskset --cpu-list 2 \
$(ELF_DIR)/tcpmig-server-multi.elf 10.0.1.9:10002
tcpmig-multi-target3:
sudo -E \
CONFIG_PATH=$(CONFIG_DIR)/be3_config.yaml \
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) \
taskset --cpu-list 3 \
$(ELF_DIR)/tcpmig-server-multi.elf 10.0.1.9:10003
client-dpdk-ctrl:
sudo -E RUST_LOG="debug" \
CONFIG_PATH=$(CONFIG_DIR)/client_dpdk_ctrl_config.yaml \
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) \
taskset --cpu-list 4 \
$(ELF_DIR)/dpdk-ctrl.elf
be-dpdk-ctrl:
sudo -E RUST_LOG="debug" \
NUM_CORES=4 \
CORE_ID=5 \
CONFIG_PATH=$(CONFIG_DIR)/node9_config.yaml \
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) \
taskset --cpu-list 4 \
$(ELF_DIR)/dpdk-ctrl.elf
fe-dpdk-ctrl:
sudo -E RUST_LOG="debug" \
NUM_CORES=4 \
CONFIG_PATH=$(CONFIG_DIR)/node8_config.yaml \
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) \
taskset --cpu-list 4 \
$(ELF_DIR)/dpdk-ctrl.elf
be-dpdk-ctrl-node9:
sudo -E RUST_LOG="debug" \
NUM_CORES=4 \
CORE_ID=5 \
CONFIG_PATH=$(CONFIG_DIR)/node9_config.yaml \
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) \
taskset --cpu-list 4 \
$(ELF_DIR)/dpdk-ctrl.elf
be-dpdk-ctrl-node8:
sudo -E RUST_LOG="debug" \
NUM_CORES=4 \
CORE_ID=5 \
CONFIG_PATH=$(CONFIG_DIR)/node8_config.yaml \
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) \
taskset --cpu-list 4 \
$(ELF_DIR)/dpdk-ctrl.elf
udp-echo0:
sudo -E RUST_LOG="debug" NUM_CORES=4 LIBOS=catnip CONFIG_PATH=$(CONFIG_DIR)/be0_config.yaml \
PKG_CONFIG_PATH=/homes/inho/lib/x86_64-linux-gnu/pkgconfig \
LD_LIBRARY_PATH=/homes/inho/lib:/homes/inho/lib/x86_64-linux-gnu \
/homes/inho/Capybara/capybara/bin/examples/rust/udp-echo.elf \
--local 10.0.1.9:10000
udp-echo1:
sudo -E RUST_LOG="debug" NUM_CORES=4 LIBOS=catnip CONFIG_PATH=$(CONFIG_DIR)/be1_config.yaml \
PKG_CONFIG_PATH=/homes/inho/lib/x86_64-linux-gnu/pkgconfig \
LD_LIBRARY_PATH=/homes/inho/lib:/homes/inho/lib/x86_64-linux-gnu \
/homes/inho/Capybara/capybara/bin/examples/rust/udp-echo.elf \
--local 10.0.1.9:10001
tcp-migration-client:
sudo -E LIBOS=catnip CONFIG_PATH=$(CONFIG_DIR)/c1_config.yaml \
PKG_CONFIG_PATH=/homes/inho/lib/x86_64-linux-gnu/pkgconfig \
LD_LIBRARY_PATH=/homes/inho/lib:/homes/inho/lib/x86_64-linux-gnu \
/homes/inho/Capybara/capybara/bin/examples/rust/tcp-migration.elf \
--client 10.0.1.8:22222
tcp-migration-origin:
# sudo -E echo $(PKG_CONFIG_PATH)
# sudo -E echo $(LD_LIBRARY_PATH)
sudo -E LIBOS=catnip CONFIG_PATH=$(CONFIG_DIR)/s1_config.yaml \
PKG_CONFIG_PATH=/homes/inho/lib/x86_64-linux-gnu/pkgconfig \
LD_LIBRARY_PATH=/homes/inho/lib:/homes/inho/lib/x86_64-linux-gnu \
/homes/inho/Capybara/capybara/bin/examples/rust/tcp-migration.elf \
--server 10.0.1.8:22222 10.0.1.8:22223 10.0.1.9:22222
tcp-migration-dest:
sudo -E LIBOS=catnip CONFIG_PATH=$(CONFIG_DIR)/s2_config.yaml \
PKG_CONFIG_PATH=/homes/inho/lib/x86_64-linux-gnu/pkgconfig \
LD_LIBRARY_PATH=/homes/inho/lib:/homes/inho/lib/x86_64-linux-gnu \
/homes/inho/Capybara/capybara/bin/examples/rust/tcp-migration.elf \
--dest 10.0.1.9:22222
# to enable debug logging: RUST_LOG="debug"
tcp-migration-ping-pong-client:
sudo -E LIBOS=catnip CONFIG_PATH=$(CONFIG_DIR)/c1_config.yaml \
PKG_CONFIG_PATH=/homes/inho/lib/x86_64-linux-gnu/pkgconfig \
LD_LIBRARY_PATH=/homes/inho/lib:/homes/inho/lib/x86_64-linux-gnu \
/homes/inho/Capybara/capybara/bin/examples/rust/tcp-migration-ping-pong.elf \
--client 10.0.1.8:22222
tcp-migration-ping-pong-origin:
# sudo -E echo $(PKG_CONFIG_PATH)
# sudo -E echo $(LD_LIBRARY_PATH)
sudo -E LIBOS=catnip CONFIG_PATH=$(CONFIG_DIR)/s1_config.yaml \
PKG_CONFIG_PATH=/homes/inho/lib/x86_64-linux-gnu/pkgconfig \
LD_LIBRARY_PATH=/homes/inho/lib:/homes/inho/lib/x86_64-linux-gnu \
/homes/inho/Capybara/capybara/bin/examples/rust/tcp-migration-ping-pong.elf \
--server 10.0.1.8:22222 10.0.1.8:22223 10.0.1.9:22222
tcp-migration-ping-pong-dest:
sudo -E LIBOS=catnip CONFIG_PATH=$(CONFIG_DIR)/s2_config.yaml \
PKG_CONFIG_PATH=/homes/inho/lib/x86_64-linux-gnu/pkgconfig \
LD_LIBRARY_PATH=/homes/inho/lib:/homes/inho/lib/x86_64-linux-gnu \
/homes/inho/Capybara/capybara/bin/examples/rust/tcp-migration-ping-pong.elf \
--dest 10.0.1.9:22222
tcp-ping-pong-server:
sudo -E LIBOS=catnip CONFIG_PATH=$(CONFIG_DIR)/s1_config.yaml \
PKG_CONFIG_PATH=/homes/inho/lib/x86_64-linux-gnu/pkgconfig \
LD_LIBRARY_PATH=/homes/inho/lib:/homes/inho/lib/x86_64-linux-gnu \
/homes/inho/Capybara/capybara/bin/examples/rust/tcp-ping-pong.elf \
--server 10.0.1.8:22222
tcp-ping-pong-client:
sudo -E RUST_BACKTRACE=1 LIBOS=catnip CONFIG_PATH=$(CONFIG_DIR)/c1_config.yaml \
PKG_CONFIG_PATH=/homes/inho/lib/x86_64-linux-gnu/pkgconfig \
LD_LIBRARY_PATH=/homes/inho/lib:/homes/inho/lib/x86_64-linux-gnu \
timeout 10 /homes/inho/Capybara/capybara/bin/examples/rust/tcp-ping-pong.elf \
--client 10.0.1.8:22222
tcp-pushpop:
sudo -E LIBOS=catnip CONFIG_PATH=$(CONFIG_DIR)/s1_config.yaml \
PKG_CONFIG_PATH=/homes/inho/lib/x86_64-linux-gnu/pkgconfig \
LD_LIBRARY_PATH=/homes/inho/lib:/homes/inho/lib/x86_64-linux-gnu \
timeout 10 /homes/inho/Capybara/capybara/bin/examples/rust/tcp-push-pop.elf \
--server 10.0.1.8:22222
state-time-test:
$(CARGO) test measure_state_time $(CARGO_FEATURES) $(CARGO_FLAGS) --features=tcp-migration,capy-profile,capy-log,capy-time-log -- --nocapture
#============= REDIS =============#
DEMIKERNEL_REPO_DIR ?= $(HOME)/Capybara/capybara
DEMIKERNEL_LOG_IO ?= 0
CONF ?= redis0
NODE ?= 9
redis-server: all-libs
cd ../capybara-redis && DEMIKERNEL_REPO_DIR=$(DEMIKERNEL_REPO_DIR) DEMIKERNEL_LOG_IO=$(DEMIKERNEL_LOG_IO) make redis-server
redis-server-mig: all-libs
cd ../capybara-redis && DEMIKERNEL_REPO_DIR=$(DEMIKERNEL_REPO_DIR) DEMIKERNEL_LOG_IO=$(DEMIKERNEL_LOG_IO) DEMIKERNEL_TCPMIG=1 make redis-cli redis-server BUILD_TLS=yes
redis-server-mig-manual: all-libs
cd ../capybara-redis && DEMIKERNEL_REPO_DIR=$(DEMIKERNEL_REPO_DIR) DEMIKERNEL_LOG_IO=$(DEMIKERNEL_LOG_IO) DEMIKERNEL_TCPMIG=1 MANUAL_TCPMIG=1 make redis-server
run-redis-server:
cd ../capybara-redis && sudo -E LIBOS=catnip CONFIG_PATH=$(CONFIG_DIR)/node$(NODE)_config.yaml LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) numactl -m0 ./src/redis-server $(CONF).conf
run-redis-server-node8:
cd ../capybara-redis && sudo -E LIBOS=catnip CONFIG_PATH=$(CONFIG_DIR)/node8_config.yaml CAPY_LOG=all RUST_LOG="debug" NUM_CORES=4 CORE_ID=1 LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) numactl -m0 ./src/redis-server config/node8_10001.conf
run-test:
sudo -E LIBOS=catnip CONFIG_PATH=$(CONFIG_DIR)/node8_config.yaml CAPY_LOG=all RUST_LOG="debug" NUM_CORES=4 CORE_ID=1 LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) numactl -m0 $(ELF_DIR)/http-server.elf 10.0.1.8:10000
clean-redis:
cd ../capybara-redis && make distclean
clean-redis-data:
cd ../capybara-redis && sudo rm -rf dir_master dir_slave