- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Time sllice and Ticks
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
тАО08-20-2002 04:59 PM
тАО08-20-2002 04:59 PM
Re: Time sllice and Ticks
yes, 100ms, if it is a good process and doesn't get itself swapped out. And because it's a risc processor, every tick can execute (I stress can) many instructions, but the likelihood of a process consumimg all 100ms is slim - unless it's cpu bound.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2002 07:34 AM
тАО08-21-2002 07:34 AM
Re: Time sllice and Ticks
In the first scenario, the process will relinquish the processor voluntarily (voluntary context switch), in the latter it is a forced context switch. It is the forced context switching that literally destroys the functionality of the system when timeslice is set to 1.
In 10+ years of hp-ux support, I do not recall a single instance where timeslice set to 1 provided any benefit whatsoever.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2002 07:58 AM
тАО08-21-2002 07:58 AM
Re: Time sllice and Ticks
If the timeslice is 1ms when you configure timeslice to 1, then the operating system is spending a lot of time doing context switch (how much time a context switch takes in HP-UX 11.0 ?)
Regards.
MDF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2002 08:05 AM
тАО08-21-2002 08:05 AM
Re: Time sllice and Ticks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2002 08:16 AM
тАО08-21-2002 08:16 AM
Re: Time sllice and Ticks
Correct, a classic manifestation is low CPU util but extremely high percentage of system mode for processor util (i.e. 40% total cpu util but 70+% is system). Another common complaint is it takes a long time to login. Under these circumstances the processor is spending so much time in system mode (context switching processes reprioritizing processes) that user interrupt requests can get little if any cpu time at all.
>how much time a context switch takes in HP-UX 11.0?
To be honest, I don't know. However, even if it is a fraction of a millisecond, one clock tick is too little time for a user process to much of anything constructive and there seems to be little that can be done to clear the symptom.
The bottom line is timeslice should not be changed from the default (10) unless testing has verified beyond doubt a different value would be beneficial.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2002 11:14 AM
тАО08-21-2002 11:14 AM
Re: Time sllice and Ticks
You can see context switching using either MeasureWare or Glance. If you do not have neither of these then I do not know!
Very roughly...
2 types of context switching, forced & volantary. For a multi CPU machine I like to see for my busiest processes voluntary > forced. preferably very much greater than. If you have a single CPU machine... tough.
On the subject of timeslice. Stephen Culio & Doug Gruman suggest 10 (10ms) BUT if you feel brave I heard that 7-14 are also "acceptable". IF you are CPU bound setting it slightly higher may help as you reduce the ammount of context switching, IF not a lower value MAY help. I would try this out on a test machine first, or not bother! There are other things you could be doing that would be more productive (If it is a database tune the database etc)
Regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2004 02:51 AM
тАО12-17-2004 02:51 AM
Re: Time sllice and Ticks
- « Previous
-
- 1
- 2
- Next »