1837655 Members
2948 Online
110117 Solutions
New Discussion

set ulimit

 
SOLVED
Go to solution
hi_5
Frequent Advisor

set ulimit

how do I set the ulimit to unlimited and the large file is enable???
6 REPLIES 6
Bill Hassell
Honored Contributor

Re: set ulimit

ulimit covers many different values. To see the current settings, use ulimit -a and you'll see something like this:

$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 65536
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 0
nofiles(descriptors) 60

NOTE: ulimit -a is NOT available in ksh. You'll need to use the standard POSIX shell /usr/bin/sh. To see the options for ulimit, use the command:

man sh-posix

ulimit is a shell builtin and supports these options:

(If no option is given, -f is assumed)

-a List all of the current resource limits.
-c The number of 512-byte blocks in the size of core dumps.
-d The number of kilobytes in the size of the data area.
-f The number of 512-byte blocks in files written by child processes (files of any size can be read).
-n The number of file descriptors.
-s The number of kilobytes in the size of the stack area.
-t The number of seconds to be used by each process.

To set the size of files written by a child process to unlimited:

$ ulimit -f unlimited

The ability to create large files is not a shell feature, it is a filesystem feature. You can enable largefiles when you first create the filesystem (newfs -l) or change an existing filesystem to allow largefiles using fsadm:

fsadm -F vxfs -o largefiles /dev/vg02/whatever

To make sure that the filesystem is mounted with largefile option, add the largefiles option to /etc/fstab.


Bill Hassell, sysadmin
steven Burgess_2
Honored Contributor

Re: set ulimit

Hi

ulimit -a shows all userlimits.
If [file] is not set to unlimited, this can be done additional with:
ulimit -f unlimited

If this is not set to unlimited, after the next reboot, it is recommended to insert
ulimit -f unlimited

into /etc/profile.

HTH

Steve
take your time and think things through
hi_5
Frequent Advisor

Re: set ulimit

this is the error that I got when i try to run fsadm
vxfs fsadm: /dev/EmcVG/lvemc is not the root inode of a vxfs file sytem
Con O'Kelly
Honored Contributor
Solution

Re: set ulimit

Hi

I believe you need to use the FS name (mount point) as the arguement. It look like you are using the LV Name.

Note as well that alot of the functionality of fsadm is only available if you have OnLine JFS installed.

Cheers
Con
Jeff Schussele
Honored Contributor

Re: set ulimit

Hi,

Con - a lot? Try almost all.
Well over 90%.
Along with Mirror-UX, On-Line JFS is fundamentally necessary tool in a Production environment today - period.

My 2 cents,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Caesar_3
Esteemed Contributor

Re: set ulimit

Hello!

Check you kernel parameters if you want to change the size of the large file or enable
that will be your default you can do it ther

Caesar