bazelbuild / bazelbuild/bazel

RAM usage

Open
#10,662 5 comments 0 reactions 0 assignees View on GitHub
not stale P2 team-Performance type: feature request
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

It's annoying to have to slow a big build (ie tensorflow) right down with
`--jobs 1`
just for the odd job that is memory hungry, because Bazel isn't being smart about allocating work. Why can't the job scheduler just check the current RAM usage and only add a job if it's under the utilization limit? Then _if_ there's room it can add jobs until all cores are busy.

Contributor guide

Open the contributing guide

Research direction

The issue does not name files, tests, or an entry point. Start by locating Bazel's job scheduler and its existing resource-limit behavior, then define how RAM utilization should affect job admission and validate it against a large build such as TensorFlow.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.