Ticket #9398 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Sage meddles with soft rlimits

Reported by: nbruin Owned by: jason
Priority: major Milestone: sage-4.5.2
Component: misc Keywords:
Cc: Work issues:
Report Upstream: N/A Reviewers: William Stein
Authors: Nils Bruin Merged in: sage-4.5.2.alpha1
Dependencies: Stopgaps:

Description

Sage currently removes any soft resource limits set. If those limits are set, it's probably with good reason, so it would be better if it kept limits in place

sh-3.2$ ulimit -S -v 1000000
sh-3.2$ ulimit -v
1000000
sh-3.2$ sage
----------------------------------------------------------------------
| Sage Version 4.4.4, Release Date: 2010-06-23                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: import os
sage: os.system("ulimit -v")
unlimited
0

Attachments

preserve_rlimits.patch Download (797 bytes) - added by nbruin 3 years ago.
change all.py to not touch rlimits

Change History

Changed 3 years ago by nbruin

change all.py to not touch rlimits

comment:1 Changed 3 years ago by nbruin

  • Status changed from new to needs_review
  • Authors set to Nils Bruin

comment:2 Changed 3 years ago by was

  • Status changed from needs_review to positive_review

I can't remember why this was added to Sage in 2005, so... positive review.

comment:3 Changed 3 years ago by ddrake

  • Status changed from positive_review to closed
  • Resolution set to fixed
  • Merged in set to sage-4.5.2.alpha1

comment:4 Changed 3 years ago by ddrake

  • Reviewers set to William Stein
Note: See TracTickets for help on using tickets.