6 Commits
Author SHA1 Message Date
Jing ChenandgVisor bot 9bc24a33e9 Upgrade gVisor images to use ubuntu:jammy as the base image.
ubuntu:jammy is 22.04, which is a LTS version.

This is the second wave.

PiperOrigin-RevId: 666485330
2024-08-22 14:20:09 -07:00
Etienne PerotandgVisor bot dec37ea4ed gVisor seccomp: Implement in-Sentry seccomp cache.
This adds a per-task cache of seccomp actions to take for syscall numbers
where the filters return an action without depending on anything other than
the syscall number and the architecture code of the seccomp program input.

This avoids evaluating seccomp-bpf programs in the syscall hot path, for
programs that use seccomp *within* gVisor (aka on themselves).

Benchmarks show that this removes about 50ns from the syscall hot path
for a trivial filter like the one in the benchmark.
Real-world filters are much longer, and the benefit is magnified the more
complex the filter is.

```
                    │ not_cached  │              cached               │
                    │   sec/op    │   sec/op     vs base              │
SyscallUnderSeccomp   1.282µ ± 3%   1.230µ ± 1%  -4.06% (p=0.002 n=6)
```

PiperOrigin-RevId: 586522068
2023-11-29 20:00:16 -08:00
Andrei VaginandgVisor bot 8c6b76defc benchmarks/syscallbench: a few fixes
PiperOrigin-RevId: 513967221
2023-03-04 00:55:39 -08:00
Zach KoopmansandgVisor bot 5a6447f491 Add getpidopt case to docker benchmarks.
getpidopt is an important test case for the systrap platform,
so add it to our syscall test.

PiperOrigin-RevId: 513657968
2023-03-02 15:37:50 -08:00
gVisor bot c4249a0e79 Merge pull request #7989 from cedriccchen:benchmarks
PiperOrigin-RevId: 477586197
2022-09-28 16:53:58 -07:00
Chen Hui b448cdbed7 benchmarks: add syscallbench benchmark for syscall performance
Signed-off-by: Chen Hui <cedriccchen@tencent.com>
2022-09-22 10:13:45 +08:00