On Mon, Mar 28, 2016 at 10:15 AM, Volker Braun <vbraun.n...@gmail.com> wrote:
> On Monday, March 28, 2016 at 5:54:34 PM UTC+2, Nils Bruin wrote:
>>
>> It's a simple one to set, though, and in many contexts it protects against
>> silly memory errors (e.g., on a multi-user machine
>
>
> But it doesn't help when you have multiple processes, as its per-process
> limit only.

Another very common thing to ulimit is the number of processes.
e.g., the default I think on Ubuntu is maybe 1000.

I'm really sad to see that get_memory_usage() is suddenly no longer of
any use in seeing how much memory Sage is using.  It used to be
extremely useful as a first check of usage.

 -- William

>> Perhaps we should take any ulimits into account when we compute our
>> defaults?
>
>
> We do:
>
> $ sage -c "print get_memory_usage()"
> 33707.9921875
> $ ulimit -v 10000000
> $ sage -c "print get_memory_usage()"
> 3554.1171875
> $ ulimit -v 2000000
> $ sage -c "print get_memory_usage()"
> 1600.98046875
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.



-- 
William (http://wstein.org)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to