Bug 1118734
Summary: | RFE: compute the value for smp_mflags from number of cpus and available memory | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dan Horák <dan> |
Component: | rpm | Assignee: | Panu Matilainen <pmatilai> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | debarshir, fedoraproject, jonathan, ktdreyer, mcatanza, mjw, packaging-team-maint, pmatilai, pmoravco, tpopela, vmukhame |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-07-04 10:01:17 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Dan Horák
2014-07-11 12:24:55 UTC
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. %_smp_mflags lives in rpm now, switching component (wow this is an old one...) It'd need some tunables (tasksize at least) and maybe 32/64bit-ness should be taken into account for the heuristics too. Ack, tunable "tasksize" makes sense. FWIW, there's a work-in-progress PR at upstream where further input (+ testing) is welcome: https://github.com/rpm-software-management/rpm/pull/821 We've been hit by this recently in RHEL again with Thunderbird. The builder hard 8 CPUs, but just 14 GB of available RAM. We will start to use what was suggested by Dan in comment 0 for Thunderbird and Firefox: # Free memory in kB MEM_AVAILABLE=$(grep MemAvailable /proc/meminfo | awk '{ print $2 }') # Usually the compiler processes can take 2 GB of memory at peaks TASK_SIZE=2000000 MEM_CONSTRAINED_JOBS=$(( MEM_AVAILABLE / TASK_SIZE )) CPU_AVAILABLE=$(/usr/bin/getconf _NPROCESSORS_ONLN) # Pick the minimum from available CPUs or memory constrained number of jobs MOZ_SMP_FLAGS=$([ "$CPU_AVAILABLE" -le "$MEM_CONSTRAINED_JOBS" ] && echo "$CPU_AVAILABLE" || echo "$MEM_CONSTRAINED_JOBS") This is (finally) implemented in rpm 4.19. |