#6283: [with patch, positive review] Make it so NUM_THREADS is set intelligently
instead of idiotically in makefile so doing "make ptest" or "make
ptestlong" doesn't kill some computers
---------------------------+------------------------------------------------
Reporter: was | Owner: jhpalmieri
Type: defect | Status: closed
Priority: major | Milestone: sage-4.1.2
Component: doctest | Resolution: fixed
Keywords: | Reviewer: Dan Drake, Minh Van Nguyen
Author: John Palmieri | Merged: Sage 4.1.2.alpha3
---------------------------+------------------------------------------------
Comment(by mvngu):
Replying to [comment:9 drkirkby]:
> I realise this has got positive review, but I would have personally not
given it that. I would have personally not allowed the default to exceed
8, since for 99% of machines with 8 or more 'CPUs/threads', they are
mutli-user servers, not personal workstations. As such, people should not
be exploiting them to the full.
Agreed.
[[BR]][[BR]]
> On 't2' currently this would not cause an issue, since it is not used a
lot. But it would be an issue once there are many users. I doubt it would
be sensible on sage.math to exploit it to the full.
I think a value of 1 would be sensible. No matter if one runs doctest
using `SAGE_ROOT/makefile` on a personal machine such as a Pentium 4, a
dual core PC or sage.math, it would still use one thread as default. After
manually merging changes to `SAGE_ROOT/makefile`, I did:
{{{
make ptestlong
}}}
only to realize that it spawned 24 cores on mod.math to parallel doctest.
In panic mode, I hastily killed all of my threads. So how about opening
another ticket to make `NUM_THREADS=1`?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6283#comment:10>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---