- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ulimit alterations
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
Forums
Discussions
Discussions
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
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
08-17-2004 03:09 AM
08-17-2004 03:09 AM
I have a development user that needs to regularly change the ulimit on a HPUX A-Class running HPUX 11.00 - The man pages refer to the fact that only the superuser can change the limits. Is there a way I can either allow a standard user to change their ulimits or alternatively can I as root change ulimits for a particular user.
Thanks in advance
Brian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2004 03:20 AM
08-17-2004 03:20 AM
Re: ulimit alterations
ulimit(2) says as,
[EPERM] ulimit() fails and the limit is unchanged if a
process with an effective user ID other than
super-user attempts to increase its file size
limit.
You can use command line ulimit.
ulimit informations are given in ksh man page. Search the keyword as "ulimit"
You can try as like,
ulimit -Hn
-H - Hard limit
< -n for number of file descriptors >
ulimit -Sn
-S - soft limit
10000
15000
That is all. ulimit [-HSacdfst] [limit]
To set unlimited setup use as,
$ ulimit -Hc ulimited
Regards
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2004 03:30 AM
08-17-2004 03:30 AM
Re: ulimit alterations
ulimit is on a per-shell basis.
$ ulimit -l
$ ulimit -c 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2004 03:45 AM
08-17-2004 03:45 AM
Re: ulimit alterations
Sundar - If you type man ulimit this is where it mentions superuser although I believe as Muthukumar mentioned there are possibly two ulimits....
User at present types
$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 65536
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 4096
If he then trys to up the data limit he gets the following message.
$ ulimit -d 76800
su: ulimit: The specified value exceeds the user's allowable limit.
Perhaps there is a system maximum which needs to be set somewhere and this is what I need to change.
??
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2004 01:46 PM
08-17-2004 01:46 PM
Re: ulimit alterations
data(kbytes) determined by maxdsiz
stack(kbytes) determined by maxssiz
nofiles(descriptors) determined by maxfiles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2004 03:43 PM
08-17-2004 03:43 PM
Re: ulimit alterations
If you want to configure with more values then you have to tune kernel parameters with kmtune ( < 11.23 versions ) and kctune ( >= 11.23 releases )
11.23>>
Parameters are maxfiles,maxfiles_lim,nfile,maxssiz,maxdsiz
kctune
or
kmtune -q
Recompilation needed when you tune on < 11.23 releases after tunin with kmtune
Regards
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2004 04:21 AM
08-19-2004 04:21 AM
Re: ulimit alterations
Hmmmm
I thought that a user should be able to change the ulimit up or down to the system limit.
Any thoughts...?
I have below an example of the problem. This does not occur if logged in as root.
$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 81920
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 4096
$ ulimit -d 8000
$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 8000
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 4096
$ ulimit -d 64000
su: ulimit: The specified value exceeds the user's allowable limit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2004 06:30 AM
08-19-2004 06:30 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2004 09:02 PM
08-19-2004 09:02 PM
Re: ulimit alterations
All replies helped.
I have now increased the maxdfiles kernel parameter which has increased the system default level and users are able to increase or decrease the limit within their shell using the
ulimit -S
option.
Cheers