![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| keep context in awk | VTAWKVT | Shell Programming and Scripting | 2 | 05-23-2008 02:06 PM |
| thread context switches: detection, prevention | fabulous2 | UNIX for Advanced & Expert Users | 2 | 03-23-2008 11:35 AM |
| [ES rehat 4] telnet and default context at login | progressdll | UNIX for Advanced & Expert Users | 0 | 02-09-2006 11:59 AM |
| korn shellscript execution context - exit statement | richgi | UNIX for Dummies Questions & Answers | 3 | 03-30-2005 12:48 AM |
| Context Free Grammar | Nisha | High Level Programming | 4 | 08-13-2002 08:03 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Context Switching
I know that this is a relative question but can someone give me an idea of what would be considered a high number of context switches?
I am running vmstat and show a cs value of between 5000 and 6000 on a 4 processor system. How can I deduce if this number is high or not? Also, the timeslice kernel parameter set to 1 when I know the HP default is 10. What would be the benefits or detriments to changing this value? |
|
||||
|
Someone has reset the timeslice from 10 to 1. You should inquire why this has been done first of all, and maybe other settings has been changed as well that you need to be aware of.
If your througput is low - reset the timeslice to the default. If not - then it seems to be ok. You have approx 1000 cs / CPU which is high for an old system, but nothing to be concerned about for a new highperforming system, even with a timeslice of 10. In general a timeslice of 1 millisecond is to short and the processes get timed out too soon, not that HPUX is a Unix kernel with pre-emptive multitasking and when higher priority processes/threads are available, processes and threads with lower priority will be pre-empted. Also when performing I/O the process/thread will be "put aside" until the I/O is completed and then it will rejoin. This is of course a very simplified description. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|