|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|
|||
Login class 'staff' datasize limits
Hello, my main user is assigned to the login class staff, as I can see issuing a userinfo command. File /etc/login.conf is the default and unchanged.
The problem is that I hit the datasize-cur memory limit of 512 Mb as expected and the process dies, but then I wonder why is the datasize-max limit set to infinity for, if the system does not allows a process to go farther than datasize-cur. I am puzzled. |
|
|||
So you mean it is not automatic, and one have to raise the limit oneself using ulimit?
Thanks! Last edited by Martillo; 12th May 2013 at 01:12 AM. |
|
||||
What would be the point of having a *limit* if it automatically rose with use?
It's designed such that you can do something like the following: alias firefox='ulimit -d 768000; firefox' It allows you to configure per-process limits (while maintaining sane default settings).
__________________
Linux/Network-Security Engineer by Profession. OpenBSD user by choice. |
|
|||
Good to know. Thanks again!
|
|
|||
I have tried to alias some commands like your example, upping datasize limits, and they work from command line as expected. However when I tried them from spectrwm's dmenu (using xdm to log in), the processes crash when they reach the limits in login.conf, not the specified in the aliases.
Alias are set in ~/.profile |
|
|||
It happens in WindowMaker too.
I think it is something related to xdm. edit: 2013-05-17: BTW, in the end, having 6 GB of memory, I raised datasize-cur to 5 GB, enough for most desktop applications. Lazy me Thanks again, rocket357, I had not thought about ulimit without your help. I was more familiar with csh than with ksh. Last edited by Martillo; 17th May 2013 at 05:05 PM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
25,000 Danish hospital staff to move to LibreOffice | J65nko | News | 0 | 20th August 2011 08:15 PM |
Private connection class problem | majkelos | OpenBSD Security | 7 | 22nd September 2010 08:10 PM |
UML Class Diagrams with umbrello | corey_james | Programming | 1 | 19th May 2008 04:13 AM |
Going to my First Solaris Class | roundkat | Solaris | 9 | 6th May 2008 02:23 AM |