- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Control the resource usage
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
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
тАО09-04-2007 01:36 PM
тАО09-04-2007 01:36 PM
Could you please advise me if I want to lower the priority ( or reduce the system resource usage to the process ), what should I do ? after change the priority , what should be the figure of NI and PRI value ? thx in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2007 04:59 PM
тАО09-04-2007 04:59 PM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2007 09:33 PM
тАО09-04-2007 09:33 PM
Re: Control the resource usage
You could try cpulimit.
http://cpulimit.sourceforge.net/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2007 11:04 PM
тАО09-06-2007 11:04 PM
Re: Control the resource usage
I have tried cpulimit , but it seems have problem , could advise what is wrong ?
cpulimit --pid 17285 --limit 50
Segmentation fault
where 17285 is ppid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2007 11:20 PM
тАО09-06-2007 11:20 PM
Re: Control the resource usage
I tried renice many times , I use renice -19 pid or renice +19 pid , when I use top to find this process , this process is stlll on the top CPU usage (99%) , I wonder why NI is 19 or -19 , its CPU usage is still 99% , could advise what is wrong ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2007 02:47 PM
тАО09-07-2007 02:47 PM
Re: Control the resource usage
1) You need to be super-user to use negative nice values.
2) What tool do you use to show the priority? (top? ps?)
3) nice (or nasty) is all about priority relative to the competition. You might pick +5, but if all other processes are nicer (+10?) or autoniced, then your are still the mean kid on the block.
Specifically, if the target process is the only runnable process most of the time, then it can easily, legitimately, still get 99% of the cpu, because no other process wants it more. This would quickly SEEM the case if the competition is for example a 'vi' session which only needs the cpu for a very short time.
4) you may have stumbled into a problem. Which Linux? Which version? Which platform?
Hope this helps some,
Hein van den Heuvel (at gmail dot com)
HvdH Performance Consulting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2007 01:12 PM
тАО09-09-2007 01:12 PM
Re: Control the resource usage
I use RHEL 3 , I use "top" to show priority , I already use root user to renice the process.
I strange that even the NI value is -19 or 19 , the CPU usage is also 99% , can advise what is wrong ? thx