What are the nofiles in ulimit for? How can these affect the server performance? What are the desired values for this? below is the result of ulimit -a on the server.
Is it okay that almost all (except stack) is set to unlimited?
Last edited by jim mcnamara; 02-08-2012 at 09:50 AM..
Reason: code tags
All
I am trying to do
ulimit -d unlimited
and I get "sh: ulimit: The specified value exceeds the user's allowable limit."
Can someone please help me understand, how to change this!
Thanks (1 Reply)
Hi,
I need to increase the open files on my server to run a test. Usually what I do is:
ulimit -n 5000
My questions are:
1] I want to set this parameter once and for all. What is the right parameter to set in /etc/system: rlim_fd_max or rlim_fd_cur?
2] How to make sure that this... (1 Reply)
hi
what is the difference between file and data? if file is unlimited, does that mean we can have a file as big as we like?
thanks.
file(blocks) unlimited
data(kbytes) 1048576 (6 Replies)
Hi,
We have an AIX system on oslevel 5.2 and we have the current limits set for the user "XXX"
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1024000
stack(kbytes) 32768
memory(kbytes) unlimited
coredump(blocks) 2097151... (4 Replies)
Hi folk,
I have a question..
$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 131072
stack(kbytes) 32768
memory(kbytes) unlimited
coredump(blocks) 2097151
nofiles(descriptors) 5000
What is the significance of... (2 Replies)
Hi, All
I need to increase the ulimit value permanently without changing /etc/system file. i.e nofiles descriptor.
For all NIS Users logging in.
I know the command to do this:
# ulimit -Sn 4096
This change is temporary.
So, I went on adding this command in the /etc/profile.
... (6 Replies)
Hello, could you help me please?
I write in command line: "ulimit 500"
-> i've set the max size of 512-bytes blocks that i can write in one file.
But when after it i use ulimit.3c in my program: "ulimit(UL_GETFSIZE);"
the result turns out 1000. Why is it so? They always differ so that one is... (2 Replies)
Hi im a complete noob to shell commands but here is my problem i have a dedicated server i7 with 24 gig ram i have whm/cpanel on it now ive added a minecraft system to root but i cannot set the server to more than 512mb memory i was told its because the memory is being blocked and was told to... (7 Replies)
I am installing a statistical applicaton and for its web components it is a listed requirement that I have soft limits of files (20480) and no of processes (soft t o 10240). I am on RHEL 6.1.
As root I made the following changes in /etc/security/limits.conf
* soft nproc 10240
* hard nproc... (4 Replies)
Discussion started by: rsheikh01
4 Replies
LEARN ABOUT FREEBSD
ulimit
ULIMIT(3) BSD Library Functions Manual ULIMIT(3)NAME
ulimit -- get and set process limits
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <ulimit.h>
long
ulimit(int cmd, ...);
DESCRIPTION
The ulimit() function will get and set process limits. Currently this is limited to the maximum file size. The cmd argument is one of the
following:
UL_GETFSIZE will return the maximum file size in units of 512 blocks of the current process.
UL_SETFSIZE will attempt to set the maximum file size of the current process and its children with the second argument expressed as a long.
RETURN VALUES
Upon successful completion, ulimit() returns the value requested; otherwise the value -1 is returned and the global variable errno is set to
indicate the error.
ERRORS
The ulimit() function will fail if:
[EINVAL] The command specified was invalid.
[EPERM] The limit specified to ulimit() would have raised the maximum limit value, and the caller is not the super-user.
SEE ALSO getrlimit(2)STANDARDS
The ulimit() function conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
The ulimit() function first appeared in FreeBSD 5.0.
BUGS
The ulimit() function provides limited precision for setting and retrieving process limits. If there is a need for greater precision than
the type long provides, the getrlimit(2) and setrlimit(2) functions should be considered.
BSD January 4, 2003 BSD