- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to use ULIMIT Command
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
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
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
тАО01-27-2009 09:18 PM
тАО01-27-2009 09:18 PM
I created a user X for my server but there is a requirement for ulimit values.
How do I edit these ulimit values for a particular user?
Here are the requried values for user X:
1. datasize: 4gb
2. stacksize: 400mb
3. core dump size: 4gb
4. descriptor: 2048
5. memory size: unlimited
Thanks and in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2009 09:42 PM
тАО01-27-2009 09:42 PM
Re: How to use ULIMIT Command
2) is controlled by maxssiz and maxssiz_64bit.
4) is controlled by maxfiles and maxfiles_lim.
3) can just be made bigger using ulimit:
ulimit -c $((4194303 * 2))
5) is typically unlimited.
A user will not be able to use 4 Gb for 1) unless he uses 64 bit or jumps through hoops.
If you set maxssiz to 400 Mb, you will take away 400 Mb from maxdsiz for ordinary programs. You can set maxssiz_64bit to 400 Mb without problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2009 09:44 PM
тАО01-27-2009 09:44 PM
Re: How to use ULIMIT Command
ulimit commands in the user's shell start-up
file (~/.profile, ~/.cshrc, ...)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2009 09:51 PM
тАО01-27-2009 09:51 PM
Re: How to use ULIMIT Command
maxdsiz 1073741824 1073741824 yes
maxdsiz_64bit 4294967296 4294967296 yes
How is this related to the datasize value that I want which is 4gig?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2009 10:01 PM
тАО01-27-2009 10:01 PM
Re: How to use ULIMIT Command
>maxdsiz_64bit 4294967296
>How is this related to the datasize value that I want which is 4gig?
This says the maximum datasize for a 32 bit app is 1 Gb. For a 64 bit app, it is 4 Gb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2009 10:25 PM
тАО01-27-2009 10:25 PM
Re: How to use ULIMIT Command
root:/>ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 98252
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048
Please help me to change the value for "data" to 4194303 instead of the current value 1048576.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 04:18 AM
тАО01-28-2009 04:18 AM
SolutionAs I said, you change maxdsiz to 4294967296. But it will not help you for a 32 bit application. You will have to relink it with -N and use chatr to get more.
If you already have a 64 bit application, you should ignore ulimit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 04:20 AM
тАО01-28-2009 04:20 AM
Re: How to use ULIMIT Command
I was able to modify my ulimit values already.