Skip to content

Performance impact of seccomp filter in games #4187

@tim77

Description

@tim77

Linux distribution and version

Fedora 33

Flatpak version

1.10.2

Description of the problem

Most of the time performance impact of seccomp filter in games/apps not negligible and not relevant. But in some games and CPU intensive task this could lead in noticeable overhead and framerate/performance drop. The more game CPU bound — the more pronounced difference in framerate. I've did few tests and examples:

PC specs:

  • AMD Ryzen 3 3300X
  • AMD Radeon VII

Benchmarks

Steps to reproduce

For testing purposes i've created COPR repo for Fedora. To run flatpak without seccomp filter:

flatpak run --allow=unconfined <APP>

Questions/suggestions:

As far i know there is working towards improving performance of seccomp filter, but until then maybe we can add option to disable entirely seccomp filter in flatpak which could specified into flatpak manifest for such apps/games where performance is critical? Game developers often fighting for 1-2% performance boost, but here we can get up to +19%, maybe even more. This for sure reduce safety/security but safety/security in some cases not critical — performance is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions