Sponsored Content
Full Discussion: Setting Ulimit problem
Top Forums UNIX for Advanced & Expert Users Setting Ulimit problem Post 302421204 by methyl on Thursday 13th of May 2010 07:43:34 PM
Old 05-13-2010
Do you remember how you changed the ulimit and what Operating System you have?
This User Gave Thanks to methyl For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ulimit problem

i've encountered the following problem with sco unixware7. after using the "ulimit -f unlimited" command and then using "ulimit -a" it lists the filesize as unlimited. BUT, when type the ulimit command without parameters, the output is given as 4194303 so i can't create a file bigger than... (4 Replies)
Discussion started by: roydv
4 Replies

2. Solaris

ulimit setting problem on Solaris

How do you make the ulimit values permanent for a user? by default, the root login has the following ulimits: # ulimit -a time(seconds) unlimited file(blocks) unlimited data(kbytes) unlimited stack(kbytes) 8192 coredump(blocks) unlimited nofiles(descriptors) 1024 memory(kbytes)... (2 Replies)
Discussion started by: kiem
2 Replies

3. Programming

ulimit problem

I would like to know where is the ulimit value stored in the shell. And how to get or modify it using the C program. I run the command ulimit it shows me unlimited and quits. Where that value is stored. Thanks (1 Reply)
Discussion started by: mobile01
1 Replies

4. Shell Programming and Scripting

Setting Ulimit

How do i set ulimit for user (4 Replies)
Discussion started by: Krrishv
4 Replies

5. SCO

problem with ulimit

hi, i cant set ULIMIT for normal user (file size more than 2gb).but in root user it is working fine.in user it is giving error like "limit exceeded (priviledged user)". (2 Replies)
Discussion started by: prakrithi
2 Replies

6. UNIX for Advanced & Expert Users

setting ulimit -n with a value more than 1024000

I would like to set the maximum number or open files per process to be greater than 1024000 (for specific application scalability purpose). I am using RHEL 5.3/Ext4. %sysctl fs.file-max fs.file-max = 164766821 I also have added the folloing to /etc/security/limits.conf * ... (7 Replies)
Discussion started by: Hsianglung Wu
7 Replies

7. UNIX for Advanced & Expert Users

Help with Ulimit Setting

All, Our SA is considering setting the max open files from 2048 to 30K. This sounds like a drastic change. Does anybody have an idea of the negative impacts of increasing the open files too high? Would like to know if this change could negatively impact our system. What test should we run to... (2 Replies)
Discussion started by: wcrober
2 Replies

8. Red Hat

setting ulimit for a user

The root user runs the following ulimit -a | grep open and gets a result of open files (-n) 8162 A user runs the same command and gets a result of open files (-n) 2500 How can you set the ulimit of the user to... (2 Replies)
Discussion started by: jsanders
2 Replies

9. AIX

Ulimit setting

Hi, Our application team is asking me to set ulimit parameter in my AIX 6.1 TL8 box. Some of them i set already. address space limit (kbytes) (-M) unlimited locks (-L) unlimited locked address space (kbytes) (-l) 64 nice (-e) ... (3 Replies)
Discussion started by: sunnybee
3 Replies

10. Solaris

Help with setting coredumpsize using ulimit

A coredump is being created by one of our applications on Solaris server and occupying entire space on the mount, thereby bringing down the application. While we try to identify the root cause, i tried to limit to limit the size of the core dump. Executed below command in shell and also updated... (2 Replies)
Discussion started by: kesani
2 Replies
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 int ulimit(int cmd, ...); DESCRIPTION
The ulimit() function provides a method to query or alter resource limits of the calling process. The method to be performed is specified by the cmd argument; possible values are: UL_GETFSIZE Return the soft file size limit of the process. The value returned is in units of 512-byte blocks. If the result cannot be represented in an object of type long int, the result is unspecified. UL_SETFSIZE Set the hard and soft file size limits of the process to the value of the second argument passed, which is in units of 512-byte blocks, and which is expected to be of type long int. The new file size limit of the process is returned. Any process may decrease the limit, but raising it is only permitted if the caller is the super-user. If successful, the ulimit() function will not change the setting of errno. RETURN VALUES
If successful, the ulimit() function returns the value of the requested limit. Otherwise, it returns -1, sets errno to indicate an error, and the limit is not changed. Therefore, to detect an error condition applications should set errno to 0, call ulimit(), and check if -1 is returned and errno is non-zero. ERRORS
The ulimit() function will fail if: [EINVAL] The cmd argument is not valid. [EPERM] It was attempted to increase a limit, and the caller is not the super-user. SEE ALSO
getrlimit(2), setrlimit(2) STANDARDS
The ulimit() function conforms to X/Open System Interfaces and Headers Issue 5 (``XSH5'') and IEEE Std 1003.1-2001 (``POSIX.1''). It was marked as obsolete in the IEEE Std 1003.1-2008 (``POSIX.1'') revision, which recommended the use of getrlimit(2) and setrlimit(2) instead, noting that because ulimit() uses the type long rather than rlim_t, it may not be sufficient for file sizes on many current systems. BSD
April 30, 2010 BSD
All times are GMT -4. The time now is 12:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy