- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to limit cputime for interactive job ?
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
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
11-26-2003 10:41 PM
11-26-2003 10:41 PM
We have a system running HP-UX 11.23 and install a queueing system, LSF. we hope the jobs submitted through LSF without cputime limt or by queue config and force limiting the cputime 1 hour for submitted not through LSF. If set the limit in /etc/profile or cshrc, users can modify the value to unlimit.
Have any solution or kernel value can meet my requirement ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2003 10:49 PM
11-26-2003 10:49 PM
Re: How to limit cputime for interactive job ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2003 11:08 PM
11-26-2003 11:08 PM
SolutionPRM could only limit shares on CPU, but not the total amount I think. But I'm more suprised by what you've written about ulimit. Once it's set, I think it can't be increased later (or at least I didn't succeed). From sh-posix man page :
The -H and -S flags specify whether the hard limit or the soft limit is set for the given resource. A hard limit cannot be increased once it is set. A soft limit can be increased up to the hard limit. If neither -H nor -S is specified, the limit applies to both.
On my system :
/home/phelix> ulimit -t
unlimited
/home/phelix> ulimit -t 2000
/home/phelix> ulimit -t
2000
/home/phelix> ulimit -t 3000
sh: ulimit: The specified value exceeds the user's allowable limit.
/home/phelix> ulimit -t
2000
/home/phelix>
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2003 11:40 PM
11-26-2003 11:40 PM
Re: How to limit cputime for interactive job ?
Thanks for your reply.
When user's shell is csh, user can re-set the limit, just like the following:
% uname -a
HP-UX hermes1 B.11.23 U ia64 0658772443 unlimited-user license
% limit cputime
cputime unlimited
% limit cputime 10000
% limit cputime
cputime 2:46:40
% unlimit
% limit cputime
cputime unlimited
Could the ulimit value can apply to the cputime limit like the above?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2003 05:47 AM
12-01-2003 05:47 AM
Re: How to limit cputime for interactive job ?
You can use Workload Manager to set up an SLO that allows the job x% for some amount of time and then some smaller amount (or nothing) after that. It won't kill it, but it will make sure it doesn't impact other things running on the system.
WLM is part of the Mission Critical OE. If this sounds interesting, let me know and I will provide more details on how to set up WLM to do this.
Dan