{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/sccache/issues/132","repository_url":"https://api.github.com/repos/mozilla/sccache","labels_url":"https://api.github.com/repos/mozilla/sccache/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/sccache/issues/132/comments","events_url":"https://api.github.com/repos/mozilla/sccache/issues/132/events","html_url":"https://github.com/mozilla/sccache/issues/132","id":231065359,"number":132,"title":"Add SCCACHE_CC_PREFIX for wrapping C compiler","user":{"login":"andreastt","id":399120,"avatar_url":"https://avatars3.githubusercontent.com/u/399120?v=4","gravatar_id":"","url":"https://api.github.com/users/andreastt","html_url":"https://github.com/andreastt","followers_url":"https://api.github.com/users/andreastt/followers","following_url":"https://api.github.com/users/andreastt/following{/other_user}","gists_url":"https://api.github.com/users/andreastt/gists{/gist_id}","starred_url":"https://api.github.com/users/andreastt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreastt/subscriptions","organizations_url":"https://api.github.com/users/andreastt/orgs","repos_url":"https://api.github.com/users/andreastt/repos","events_url":"https://api.github.com/users/andreastt/events{/privacy}","received_events_url":"https://api.github.com/users/andreastt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-05-24T14:45:10Z","updated_at":"2017-12-07T07:56:09Z","closed_at":null,"author_association":"MEMBER","body":"With ccache, I set the `CCACHE_PREFIX` output variable to `icecc` to have C and C++ compilation done in an icecream cluster. There should be an equivalent option to do this with sccache.\r\n\r\nMy current mozconfig for Firefox compilation looks like this:\r\n\r\n    mk_add_options 'export CCACHE_PREFIX=icecc'\r\n    mk_add_options MOZ_MAKE_FLAGS=\"-j100\"\r\n    \r\n    export CC=clang\r\n    export CXX=clang++\r\n    \r\n    ac_add_options --with-ccache\r\n\r\nUnfortunately, doing `ac_add_options --with-ccache='sccache icecc'` does not work because the configure script checks if `'sccache icecc'` is executable."},"comment":{"url":"https://api.github.com/repos/mozilla/sccache/issues/comments/349890580","html_url":"https://github.com/mozilla/sccache/issues/132#issuecomment-349890580","issue_url":"https://api.github.com/repos/mozilla/sccache/issues/132","id":349890580,"user":{"login":"mbitsnbites","id":1193992,"avatar_url":"https://avatars2.githubusercontent.com/u/1193992?v=4","gravatar_id":"","url":"https://api.github.com/users/mbitsnbites","html_url":"https://github.com/mbitsnbites","followers_url":"https://api.github.com/users/mbitsnbites/followers","following_url":"https://api.github.com/users/mbitsnbites/following{/other_user}","gists_url":"https://api.github.com/users/mbitsnbites/gists{/gist_id}","starred_url":"https://api.github.com/users/mbitsnbites/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbitsnbites/subscriptions","organizations_url":"https://api.github.com/users/mbitsnbites/orgs","repos_url":"https://api.github.com/users/mbitsnbites/repos","events_url":"https://api.github.com/users/mbitsnbites/events{/privacy}","received_events_url":"https://api.github.com/users/mbitsnbites/received_events","type":"User","site_admin":false},"created_at":"2017-12-07T07:56:09Z","updated_at":"2017-12-07T07:56:09Z","author_association":"CONTRIBUTOR","body":"Well, we have some 200 cores in our LAN, so that's not the issue. Seems like somewhere along the line there's a thread/process throttle.\r\n\r\nAll sccache clients connect to a single local sccache server, and that server will spawn compile jobs - in this case start icecc client processes. Those icecc clients will in turn synchronize with the local icecc daemon (that I believe has some kind of intelligent throttling to allow for many distributed compilations but only a few local compilations).\r\n\r\nSeems to me that the possible points of throttling are:\r\n  1. The sccache server, that probably has some kind of job pooling.\r\n  2. The icecc client/daemon synchronization.\r\n\r\nWe will have to log and debug more to know which it is."}}
{"actor":{"display_login":"mbitsnbites"}}