[racket] raco setup parallel build

From: Tobias Hammer (tobias.hammer at dlr.de)
Date: Fri May 3 09:34:39 EDT 2013

I think i just misread the docs. I somehow though that PLT_SETUP_OPTIONS  
also works for directly calling raco setup which is obviously wrong. When  
i use -j it works as expected. Sorry for the trouble.

As a side note, maybe it's worth to specify these defaults in the docs for  
raco setups -j option, e.g
"By default, raco setup uses (min (processor-count) 4) on 32bit-systems  
and (min (processor-count) 8) processors on 64bit."

Tobias


On Fri, 03 May 2013 14:53:12 +0200, Matthew Flatt <mflatt at cs.utah.edu>  
wrote:

> I don't think there's a limit for `-j' --- just maximum values for the
> default.
>
> I'm able to run `raco setup -j 5' on a 32-bit build and `raco setup -j
> 16' on a 64-bit build, and I don't see any limit in the implementation.
> So, I'm puzzled that it isn't working for you.
>
> At Fri, 3 May 2013 07:27:16 -0500, Robby Findler wrote:
>> I think it doesn't scale past about 6, which is probably why the limit  
>> of 8
>> is there.
>>
>> Robby
>>
>>
>> On Fri, May 3, 2013 at 7:00 AM, Tobias Hammer <tobias.hammer at dlr.de>  
>> wrote:
>>
>> > Good hint.
>> > Only on 32bit linux it's limited to 4 and on 64bit the hard limit  
>> seems to
>> > be 8.
>> > It's good as default but i am a bit surprised that i can't even  
>> increase
>> > it explicitly.
>> > I think at least on 64bit OS there should be no limit at all.
>> >
>> > Tobias
>> >
>> >
>> >
>> >
>> > On Fri, 03 May 2013 13:53:58 +0200, Robby Findler <
>> > robby at eecs.northwestern.edu> wrote:
>> >
>> >  It is with a 32 bit build (possibly only under windows, I forget).
>> >>
>> >> I believe the issue is that the docs building phase runs out of  
>> memory
>> >> with
>> >> more.
>> >>
>> >> Robby
>> >>
>> >>
>> >>
>> >> On Fri, May 3, 2013 at 6:47 AM, Tobias Hammer <tobias.hammer at dlr.de>
>> >> wrote:
>> >>
>> >>  Hi,
>> >>>
>> >>> is raco setup limited to use a maximum of 4 processors in parallel?  
>> I
>> >>> always get
>> >>> --- parallel build using 4 processes ---
>> >>> even if i use
>> >>> env PLT_SETUP_OPTIONS="-j 16"
>> >>> Interestingly (processor-count) shows 16, and raco setup should use  
>> this
>> >>> value by default (at least the docs claim that).
>> >>>
>> >>> Tobias
>> >>>
>> >>>
>> >>> --
>> >>> ------------------------------****---------------------------
>> >>>
>> >>> Tobias Hammer
>> >>> DLR / Robotics and Mechatronics Center (RMC)
>> >>> Muenchner Str. 20, D-82234 Wessling
>> >>> Tel.: 08153/28-1487
>> >>> Mail: tobias.hammer at dlr.de
>> >>> ____________________
>> >>>  Racket Users list:
>> >>>
>> http://lists.racket-lang.org/****users<http://lists.racket-lang.org/**users><
>> >>>  
>> http://lists.racket-lang.org/**users<http://lists.racket-lang.org/users>
>> >>> >
>> >>>
>> >>>
>> >
>> > --
>> > ------------------------------**---------------------------
>> > Tobias Hammer
>> > DLR / Robotics and Mechatronics Center (RMC)
>> > Muenchner Str. 20, D-82234 Wessling
>> > Tel.: 08153/28-1487
>> > Mail: tobias.hammer at dlr.de
>> >
>> ____________________
>>   Racket Users list:
>>   http://lists.racket-lang.org/users


-- 
---------------------------------------------------------
Tobias Hammer
DLR / Robotics and Mechatronics Center (RMC)
Muenchner Str. 20, D-82234 Wessling
Tel.: 08153/28-1487
Mail: tobias.hammer at dlr.de

Posted on the users mailing list.