I'm a long time makepp user, and heavy user of "-j". It would be wonderful is makepp also supported GNU make's "-l" flag.
-l [load], --load-average[=load]
Specifies that no new jobs (commands) should be started if there
are others jobs running and the load average is at least load (a
floating-point number). With no argument, removes a previous
load limit.
Since there are many users on our shared systems, we usually all specify both -j/-l in our MAKEFLAGS.
This should as simple as checking getloadavg() and starting a new job only if it currently satisfies -l.
Thanks
Hi Yuri,
I feel the same, but I don't want mpp to depend on Sys::Load. I guess I can do something that only works if that module is present. On Linux it could fall back to reading /proc/loadavg so even vanilla Perl would do.
regards — Daniel