- 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
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
08-16-2002 09:31 AM
08-16-2002 09:31 AM
thanks
MDF
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2002 10:06 AM
08-16-2002 10:06 AM
Re: Time sllice and Ticks
the simplest way seems to be "SAM". Go to the "Kernel Configuration", then "Configurable Parameters" and towards the very end of the list you'll find "timeslice", the value and the explanation...
But don't change it - lots of problems ahead then :-(
My experience show advantages only rarely, and only for small changes (between 7 and 14), so stay with the default 10.
ANd NEVER, EVER use that mistaken "1" form the kernel template for database servers!
Just my $0.02,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2002 10:07 AM
08-16-2002 10:07 AM
Re: Time sllice and Ticks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2002 01:46 PM
08-16-2002 01:46 PM
Re: Time sllice and Ticks
In addition to that already offered, see:
http://docs.hp.com/hpux/onlinedocs/TKP-90202/TKP-90202.html
If you are running any version of 11.x, use
# 'kmtune -l -q timeslice'
to interrogate your setting. 'sysdef' is appropriate for 10.20 may not be reliable for all parameters supported in 11.x releases.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2002 04:43 PM
08-16-2002 04:43 PM
Re: Time sllice and Ticks
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x96b70bce6f33d6118fff0090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x316efd3f91d3d5118ff40090279cd0f9,00.html
Great help in finding them:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1e6f84534efbd5118ff40090279cd0f9,00.html
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2002 05:55 AM
08-20-2002 05:55 AM
Re: Time sllice and Ticks
I have a following value:
kmtune -l -q timeslice
Parameter: timeslice
Value: 1
Default: (100/10)
Minimum: -
Module: -
So my workload is DataBase Server, any recomendations.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2002 06:19 AM
08-20-2002 06:19 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2002 11:15 AM
08-20-2002 11:15 AM
Re: Time sllice and Ticks
ok, The value of 1, what the meaning of this value ?
mean every milisecond context switch ocurrs ?
Thanks
MDF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2002 11:25 AM
08-20-2002 11:25 AM
Re: Time sllice and Ticks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2002 02:21 PM
08-20-2002 02:21 PM
Re: Time sllice and Ticks
So, one process can run until 100msec, when the value is 10 for timeslice ?
Regards
MDF
- 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