You are not logged in.

#1 2013-05-24 22:31:25

cladmi
Member
Registered: 2013-05-24
Posts: 3

ulimit -n == 256 in graphical environment

TL;DR: When in tty I have 'ulimit -n == 8192'  but in graphical environment I only get 'ulimit -n == 256'.
I'm running SLiM + WMII


For some games, I'm trying to increase the value of 'ulimit -n' but it does not work in graphical environment.

I added the following lines to /etc/security/limits.conf (I tried with username in place of stars before, and same result)

*          soft       nofile          8192
*          hard       nofile          8192

And when I login via tty, I get

$ ulimit -n
8192

So It I could say, it's working.


But in the graphical environment, I get:

$ ulimit -n
256

I checked the '/etc/pam.d/slim', it contains

#%PAM-1.0

auth        include     system-local-login
-auth       optional    pam_gnome_keyring.so
account     include     system-local-login
session     include     system-local-login
-session    optional    pam_gnome_keyring.so auto_start

and 'system-local-login' includes 'system-login' which includes 'system-auth' which has the line 'session required pam_limits.so', so it should be good.

And even if I add directly in the '/etc/pam.d/slim' the 'session required pam_limits.so' line, it does not work.


Now, I don't know what to do. Any help would be welcome.

Thank you in advance.

Last edited by cladmi (2013-05-24 22:31:55)

Offline

#2 2013-06-01 07:37:24

cladmi
Member
Registered: 2013-05-24
Posts: 3

Re: ulimit -n == 256 in graphical environment

After further investigation, it looks like the problem comes from gnome-terminal.

Outside of it, ulimit -n == 8192 but in gnome-terminal ulimit -n == 256.

Offline

Board footer

Powered by FluxBB