- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- timeslice and user time
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
07-01-2003 02:47 AM
07-01-2003 02:47 AM
timeslice and user time
We are using HP-UX 10.20. We were trying certain changes in timeslice value. On changing it to a lower value like 50 or 20, we observe that the CPU utilisation of a process goes up.
Question is
1) In Threaded processes, why do both utime and stime increase compared to a timeslice of 100?
2) How are utime and stime of non-threaded processes affected?
Thanks,
Prashanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 02:57 AM
07-01-2003 02:57 AM
Re: timeslice and user time
Everything I've ever read about timeslice says "leave it alone":
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xbf8393e260b0d611abdb0090277a778c,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5862c1c4ceddd61190050090279cd0f9,00.html
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 03:02 AM
07-01-2003 03:02 AM
Re: timeslice and user time
The default value for 'timeslice' is 10. 'timeslice' controls the amount of time a process will execute before a context switch to a process of equal priority occurs. If the value is too small, more time will be spent context switching than doing user work and system time will be proportionally larger than user time. Setting 'timeslice' to a very large value will result in higher-priority processess "hogging" time while lower-priority ones are "starved".
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 03:11 AM
07-01-2003 03:11 AM
Re: timeslice and user time
Some more information. In our system, the threads of the different processes seem to require very little amount of CPU in the order of less than 10 msec. In order to increase response time, we were exploring the option of reducing the timeslice.
On reducing timeslice, we find that both utime and stime of threaded and non-threaded processes increase.
We do understand that the stime increase can be due to more context switches. Is there any other reason why stime can increase?
Why would utime of a threaded/non-threaded process be affected by the change?
Thanks,
Prashanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 04:02 AM
07-01-2003 04:02 AM
Re: timeslice and user time
As many sysadmins have found out, response time is very seldom fixed by changing timeslice. response time is best fixed by improving the underlying application code. If the code is a web page, change the order of processing so that something is immediately sent to the browser before processing any internal data. Perhaps set the background and common images and graphics. This makes the page seem responsive and gives the end-user soemthing to look at while the internal code is running.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 05:03 AM
07-01-2003 05:03 AM
Re: timeslice and user time
instead of changing time slice, look at optimizing the other long running processes
changing the time slice to make short transactions run faster is the wrong approach, optimize code instead