[racket-dev] A grab-bag of issues

From: Sam Tobin-Hochstadt (samth at ccs.neu.edu)
Date: Fri Jul 5 12:07:39 EDT 2013

On Fri, Jul 5, 2013 at 11:22 AM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
>
>> * Similarly, that build shows that Racket detects itself as having
>> many more CPUs than it actually has.
>
> On Linux, the processor count comes from sysconf(_SC_NPROCESSORS_ONLN).
> Should Racket use something else?

I talked to the Travis people, and it's just a limitation of the
virtualization software they're using, that it reports the underlying
hardware number.

This suggests that maybe there should be a CPU=N argument to the
top-level Makefile to control how many processors `raco setup` uses.
Annoyingly, this can't be detected from the -j argument to `make` [1].

Sam

[1] http://stackoverflow.com/q/10898528/349661

Posted on the dev mailing list.