Bug 823030 - Limits on number of process not being set when * used in limits.conf
Summary: Limits on number of process not being set when * used in limits.conf
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: pam
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-18 20:23 UTC by Joseph Shraibman
Modified: 2012-05-18 20:52 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-18 20:52:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Joseph Shraibman 2012-05-18 20:23:02 UTC
Description of problem:
In limits.conf, this does not work:
*                -       nproc        9000                                                                                      This does:                                         
0:65535          -       nproc        9000                                                                                                                              


Version-Release number of selected component (if applicable):
1.1.5-5.fc15

Also occurs on CentOS 6.2 with package: pam-1.1.1-10.el6_2.1

How reproducible:
always

Steps to Reproduce:
1. Use ulimit -a to view your limit, or car /proc/$$/limits
2. Put in limits.conf: *                -       nproc        9000
3. Open new session.  Observe that there was no change
4. In previous line, replace * with 0:65535
5. Open new session, Observe that nproc is now set to 9000



Additional info:
https://www.centos.org/modules/newbb/viewtopic.php?topic_id=35462
http://bugs.centos.org/view.php?id=5137

Comment 1 Tomas Mraz 2012-05-18 20:52:28 UTC
That's because the default values set with the * entry is overriden in the limits.d/90-nproc.conf file. You have to edit the default entry there.


Note You need to log in before you can comment on or make changes to this bug.