[SERVER-12810] mongod/ mongos/ etc. should raise their soft limits as needed Created: 20/Feb/14  Updated: 11/Jul/16  Resolved: 11/Jul/16

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Nicholas Tang Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:

 Description   

Unix systems have both soft and hard limits. Non-privileged processes are allowed to raise their soft limit up to the ceiling set by the hard limit. Currently, if mongod, mongos, etc. hit the soft limit, they don't attempt to raise it to the hard limit. They should.

More:
http://linux.die.net/man/2/setrlimit



 Comments   
Comment by Ian Whalen (Inactive) [ 11/Jul/16 ]

The Integration team is in agreement with Eric's previous assessment that we should respect the soft limits set by the system.

Comment by Eric Milkie [ 21/Feb/14 ]

I'm not sure this ticket is in the spirit of soft and hard limits. If every program decided to ignore process soft resource limits (including bash, which is just another program), then what would the point of setting soft limits be?
Also, some administrators may be surprised at the behavior of a program that ignores soft resource limits.

Generated at Thu Feb 08 03:29:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.