- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to increase ulimit in csh
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2003 11:32 PM
тАО06-13-2003 11:32 PM
How to increase ulimit in csh
I would like to increase the ulimit to 4GB in csh, but actually i do not know how to do it?
and can I assign it to a specific user ?
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2003 11:40 PM
тАО06-13-2003 11:40 PM
Re: How to increase ulimit in csh
In ulimit you have a limit of your kernel
so you use ulimit with the wanted change,
put it in wanted user .cshrc so it will
affect on every sesion.
If you want to change the values to high than
it can you will need to change it in the
kernel, recompile kernel and only then you could use with high values.
(Change and recompile kernel use sam)
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2003 11:57 PM
тАО06-13-2003 11:57 PM
Re: How to increase ulimit in csh
this is what i want to do. How ?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2003 04:46 AM
тАО06-14-2003 04:46 AM
Re: How to increase ulimit in csh
If you can edit the program that is starten
(the one that on csh) than add the ulimit into.
Other way is to add the ulimit to your ksh
start script, sorry i don't know to much ksh.
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2003 06:18 AM
тАО06-14-2003 06:18 AM
Re: How to increase ulimit in csh
A simple script is also provided in /usr/bin/ulimit but since it is a script, it must run in a subshell and will not propagate any changes back to the parent. Try this:
/usr/bin/ulimit -a
to see all the ulimit settings. If you are running the POSIX shell, you can change a value to unlimited if you wish, then start the csh script. csh will inherit the new ulimit value from your POSIX shell.
Or you can simply use the csh builtin: limit
which is the equivalent to ulimit for POSIX shells. See man csh
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2003 06:32 AM
тАО06-14-2003 06:32 AM
Re: How to increase ulimit in csh
ulimit -d --> maxdsiz
ulimit -s --> maxssiz
ulimit -n --> maxfiles
If you switch to the POSIX shell then by default ulimit is unlimited, per user.
man sh-posix
ulimit is a shell builtin and supports these options:
-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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2003 08:07 AM
тАО06-14-2003 08:07 AM
Re: How to increase ulimit in csh
ulimit -Sc 0
in /etc/profile so that core files will no longer be created by default. However, the -S option says that the user can override this value for a given session (ulimit -Sc 5000). As mentioned, there are a few kernel parameters that govern some of the ulimit values.
The question then becomes: do you meed ulimit -f (to limit the maximum size of files written by a process)? Or do you need ulimit -d (to limit the maximum data area inside the program)? There is no kernel parameter for ulimit -f so setting it to unlimited allows any size file to be created.
For ulimit -d, you can specify a larger data area up to (but not exceeding) maxdsiz. Typically, maxdsiz is set way too small (about 65megs) so you'll need to change the kernel to raise the protective fence. Note also that raising that fence above 950megs can be done, but now your programs must be compiled with special flags to request memory above this limit.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2003 12:15 AM
тАО06-15-2003 12:15 AM
Re: How to increase ulimit in csh
frist thanks all for ur support.
1) if i run
# ulimit -a
ksh: ulimit: bad option(s)
2) # csh
#ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 800
what i want to increase is data(kbytes) to 4GB
any idea please ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2003 02:14 AM
тАО06-15-2003 02:14 AM
Re: How to increase ulimit in csh
b) CAN NOT EXCEED 'maxdsiz' !
b) uname -d ####
-d The number of kilobytes in the size of the data area.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2003 01:53 PM
тАО06-15-2003 01:53 PM
Re: How to increase ulimit in csh
For csh, the command is:
limit
to see the current settings, and
limit filesize 4000
to set the limit to 4Gb. See the man page for csh.
Bill Hassell, sysadmin