[opensuse] how do I know if I hit a certain ulimit and how to find knowledge of ulimit?
Dear list I am in the process of learning to manage ulimits. I feel I must have hit some limits in one of my boxes but as I am googling around most information about ulimits are very very brief. It's explained how to set soft or hard limits but not mentioned what's the current status. e.g. I know from RTFM that ulimit -n can control the maximum number of open file descriptors, but how do I know the exact number of open file descriptors on my system? Also -m control the maximum resident set size, well I yet didn't find a very clear explanation of resident set size, is it what shows up when I use 'free' or 'top'? And there is no 'resident set size' in /proc/meminfo too. Most google results explain ulimits in less then 3 pages but I guess to get enough background knowledge of it I need at least a article much longer than that. Now I am still googling around and would very appreciate if someone can recommend me some good article to read. Thanks a lot in advance! -- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
OK now I think I can answer most of my own questions. The best resource on explain ulimit I found from 1 hour google search: http://answers.google.com/answers/threadview?id=311442 This article provided overview and PAM integration with ulimits http://www.seifried.org/security/index.php/Linux_Limiting_and_Monitoring_Use... To control virtual memory size limit (one of the most practical limit), PAM cannot do it. use ulimit package and edit /etc/sysconfig/ulimit to control it. On Tue, 2007-06-12 at 09:18 +0800, Zhang Weiwu wrote:
Dear list
I am in the process of learning to manage ulimits. I feel I must have hit some limits in one of my boxes but as I am googling around most information about ulimits are very very brief. It's explained how to set soft or hard limits but not mentioned what's the current status. e.g. I know from RTFM that ulimit -n can control the maximum number of open file descriptors, but how do I know the exact number of open file descriptors on my system? Also -m control the maximum resident set size, well I yet didn't find a very clear explanation of resident set size, is it what shows up when I use 'free' or 'top'? And there is no 'resident set size' in /proc/meminfo too.
Most google results explain ulimits in less then 3 pages but I guess to get enough background knowledge of it I need at least a article much longer than that.
Now I am still googling around and would very appreciate if someone can recommend me some good article to read. Thanks a lot in advance!
-- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112
-- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Zhang Weiwu wrote:
soft or hard limits but not mentioned what's the current status. e.g. I know from RTFM that ulimit -n can control the maximum number of open file descriptors, but how do I know the exact number of open file descriptors on my system? The sar(1) utility will report on the number of open file descriptors, and lsof(1) will help you identify them if needed.
Also -m control the maximum resident set size, well I yet didn't find a very clear explanation of resident set size, is it what shows up when I use 'free' or 'top'? And there is no 'resident set size' in /proc/meminfo too. Don't know the answer to that one.
HTH Ph. A. -- *Philippe Andersson* Unix System Administrator IBA Particle Therapy | Tel: +32-10-475.983 Fax: +32-10-487.707 eMail: pan@iba-group.com http://www.iba-worldwide.com The contents of this e-mail message and any attachments are intended solely for the recipient (s) named above. This communication is intended to be and to remain confidential and may be protected by intellectual property rights. Any use of the information contained herein (including but not limited to, total or partial reproduction, communication or distribution of any form) by persons other than the designated recipient(s) is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free. Ion Beam Applications does not accept liability for any such errors. Thank you for your cooperation.
participants (2)
-
Philippe Andersson
-
Zhang Weiwu