-
Notifications
You must be signed in to change notification settings - Fork 168
Open
Description
I came across usage of resource_set for linking actions and the formula that is used to compute how much RAM we should allocate per linking action seems to be too conservative:
return {"memory": max(50, -100 + 0.1 * inputs), "cpu": 1}So, if one has 1000 inputs that leaves one with 50 Mb of RAM allocated for a single linking action which makes bazel very eager to schedule as many linking actions as it can simultaneously that sometimes leads to crashes due to OOM Killer, especially in containerized environments. I think, this formula should either be set to higher values or, ideally, we should expose resource allocation for both compilation and linking actions (e.g. size attribute for each cc_* rule)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels