Skip to content

Commit

Permalink
Improve memory estimation for cpp linker action
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mgalindo committed Jun 28, 2024
1 parent 05c7e9b commit e20af2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ private LazyData doCostlyEstimation() {
case LINUX:
resourceSet =
ResourceSet.createWithRamCpu(
/* memoryMb= */ Math.max(50, -100 + 0.1 * inputsCount), /* cpu= */ 1);
/* memoryMb= */ 100 + 2.4 * (inputsBytes / 1024.0 / 1024.0), /* cpuUsage= */ 1);
break;
default:
resourceSet =
Expand Down

0 comments on commit e20af2e

Please sign in to comment.