Skip to content

sccache makes too many clone syscall #2473

@zsrkmyn

Description

@zsrkmyn

I have a 112-core Intel CPU, and each time a sccache is invoked, it makes 112 clone syscall; and when I try to parallel build with -j112, there are 112*112=12544 clones in total, which may cause EAGAIN error (especially in a container environment).

Reproducer:

$ nproc
112
$ sccache --start-server
sccache: Starting the server...
sccache: Listenning on address ...
$ strace -e clone sccache gcc -c a.c |& wc -l
114

Version:

$ sccache --version
sccache 0.12.0

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