Skip to content

Commit 62145a4

Browse files
committed
new attempt: mount more fs and set memlock limit
1 parent 10a29d4 commit 62145a4

32 files changed

Lines changed: 52 additions & 17 deletions

File tree

entrypoint.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
22
base=$(dirname $0)
33
source ${base}/.venv/bin/activate
4-
mount -t bpf bpffs /sys/fs/bpf 2>/dev/null || true
54
exec "$@"

report/benchmarks/artificial/fully_seq/run

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import argparse
44
from pathlib import Path
55
import os
66
import time
7+
import resource
78
from subprocess import run, PIPE
89

910
parser = argparse.ArgumentParser(description="Run benchmark")
@@ -55,6 +56,7 @@ def do_strace_run(test_base: Path, output_base: Path, env: dict):
5556
return result.returncode
5657

5758
def do_trace_v3_run(test_base: Path, output_base: Path, env: dict):
59+
resource.setrlimit(resource.RLIMIT_MEMLOCK, (resource.RLIM_INFINITY, resource.RLIM_INFINITY))
5860
run(['trace_v3', 'install'], check=False)
5961
cmd = ['trace_v3', '--', '/bin/sh', str(test_base / SCRIPT_NAME)]
6062
print(f'Running trace_v3: {cmd}')

report/benchmarks/dgsh-tryoverhead/1/run

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import argparse
44
from pathlib import Path
55
import os
66
import time
7+
import resource
78
from subprocess import run, PIPE
89

910
parser = argparse.ArgumentParser(description="Run benchmark")
@@ -54,6 +55,7 @@ def do_strace_run(test_base: Path, output_base: Path, env: dict):
5455
return result.returncode
5556

5657
def do_trace_v3_run(test_base: Path, output_base: Path, env: dict):
58+
resource.setrlimit(resource.RLIMIT_MEMLOCK, (resource.RLIM_INFINITY, resource.RLIM_INFINITY))
5759
run(['trace_v3', 'install'], check=False)
5860
cmd = ['trace_v3', '--', '/bin/sh', str(test_base / SCRIPT_NAME)]
5961
print(f'Running trace_v3: {cmd}')

report/benchmarks/dgsh-tryoverhead/17/run

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import argparse
44
from pathlib import Path
55
import os
66
import time
7+
import resource
78
from subprocess import run, PIPE
89

910
parser = argparse.ArgumentParser(description="Run benchmark")
@@ -56,6 +57,7 @@ def do_strace_run(test_base: Path, output_base: Path, env: dict):
5657
return result.returncode
5758

5859
def do_trace_v3_run(test_base: Path, output_base: Path, env: dict):
60+
resource.setrlimit(resource.RLIMIT_MEMLOCK, (resource.RLIM_INFINITY, resource.RLIM_INFINITY))
5961
run(['trace_v3', 'install'], check=False)
6062
cmd = ['trace_v3', '--', '/bin/sh', str(test_base / SCRIPT_NAME)]
6163
print(f'Running trace_v3: {cmd}')

report/benchmarks/dgsh-tryoverhead/18/run

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import argparse
44
from pathlib import Path
55
import os
66
import time
7+
import resource
78
from subprocess import run, PIPE
89

910
parser = argparse.ArgumentParser(description="Run benchmark")
@@ -56,6 +57,7 @@ def do_strace_run(test_base: Path, output_base: Path, env: dict):
5657
return result.returncode
5758

5859
def do_trace_v3_run(test_base: Path, output_base: Path, env: dict):
60+
resource.setrlimit(resource.RLIMIT_MEMLOCK, (resource.RLIM_INFINITY, resource.RLIM_INFINITY))
5961
run(['trace_v3', 'install'], check=False)
6062
cmd = ['trace_v3', '--', '/bin/sh', str(test_base / SCRIPT_NAME)]
6163
print(f'Running trace_v3: {cmd}')

report/benchmarks/dgsh-tryoverhead/2/run

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import argparse
44
from pathlib import Path
55
import os
66
import time
7+
import resource
78
from subprocess import run, PIPE
89

910
parser = argparse.ArgumentParser(description="Run benchmark")
@@ -56,6 +57,7 @@ def do_strace_run(test_base: Path, output_base: Path, env: dict):
5657
return result.returncode
5758

5859
def do_trace_v3_run(test_base: Path, output_base: Path, env: dict):
60+
resource.setrlimit(resource.RLIMIT_MEMLOCK, (resource.RLIM_INFINITY, resource.RLIM_INFINITY))
5961
run(['trace_v3', 'install'], check=False)
6062
cmd = ['trace_v3', '--', '/bin/sh', str(test_base / SCRIPT_NAME)]
6163
print(f'Running trace_v3: {cmd}')

report/benchmarks/dgsh-tryoverhead/3/run

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import argparse
44
from pathlib import Path
55
import os
66
import time
7+
import resource
78
from subprocess import run, PIPE
89

910
parser = argparse.ArgumentParser(description="Run benchmark")
@@ -56,6 +57,7 @@ def do_strace_run(test_base: Path, output_base: Path, env: dict):
5657
return result.returncode
5758

5859
def do_trace_v3_run(test_base: Path, output_base: Path, env: dict):
60+
resource.setrlimit(resource.RLIMIT_MEMLOCK, (resource.RLIM_INFINITY, resource.RLIM_INFINITY))
5961
run(['trace_v3', 'install'], check=False)
6062
cmd = ['trace_v3', '--', '/bin/sh', str(test_base / SCRIPT_NAME)]
6163
print(f'Running trace_v3: {cmd}')

report/benchmarks/dgsh-tryoverhead/4/run

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import argparse
44
from pathlib import Path
55
import os
66
import time
7+
import resource
78
from subprocess import run, PIPE
89

910
parser = argparse.ArgumentParser(description="Run benchmark")
@@ -56,6 +57,7 @@ def do_strace_run(test_base: Path, output_base: Path, env: dict):
5657
return result.returncode
5758

5859
def do_trace_v3_run(test_base: Path, output_base: Path, env: dict):
60+
resource.setrlimit(resource.RLIMIT_MEMLOCK, (resource.RLIM_INFINITY, resource.RLIM_INFINITY))
5961
run(['trace_v3', 'install'], check=False)
6062
cmd = ['trace_v3', '--', '/bin/sh', str(test_base / SCRIPT_NAME)]
6163
print(f'Running trace_v3: {cmd}')

report/benchmarks/dgsh-tryoverhead/5/run

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import argparse
44
from pathlib import Path
55
import os
66
import time
7+
import resource
78
from subprocess import run, PIPE
89

910
parser = argparse.ArgumentParser(description="Run benchmark")
@@ -56,6 +57,7 @@ def do_strace_run(test_base: Path, output_base: Path, env: dict):
5657
return result.returncode
5758

5859
def do_trace_v3_run(test_base: Path, output_base: Path, env: dict):
60+
resource.setrlimit(resource.RLIMIT_MEMLOCK, (resource.RLIM_INFINITY, resource.RLIM_INFINITY))
5961
run(['trace_v3', 'install'], check=False)
6062
cmd = ['trace_v3', '--', '/bin/sh', str(test_base / SCRIPT_NAME)]
6163
print(f'Running trace_v3: {cmd}')

report/benchmarks/dgsh-tryoverhead/6/run

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import argparse
44
from pathlib import Path
55
import os
66
import time
7+
import resource
78
from subprocess import run, PIPE
89

910
parser = argparse.ArgumentParser(description="Run benchmark")
@@ -56,6 +57,7 @@ def do_strace_run(test_base: Path, output_base: Path, env: dict):
5657
return result.returncode
5758

5859
def do_trace_v3_run(test_base: Path, output_base: Path, env: dict):
60+
resource.setrlimit(resource.RLIMIT_MEMLOCK, (resource.RLIM_INFINITY, resource.RLIM_INFINITY))
5961
run(['trace_v3', 'install'], check=False)
6062
cmd = ['trace_v3', '--', '/bin/sh', str(test_base / SCRIPT_NAME)]
6163
print(f'Running trace_v3: {cmd}')

0 commit comments

Comments
 (0)