Sponsored Content
Full Discussion: Context Switching
Top Forums UNIX for Advanced & Expert Users Context Switching Post 31828 by keelba on Wednesday 13th of November 2002 06:54:33 PM
Old 11-13-2002
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?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

keep context in awk

here is a data file. ------------------------------------- KSH, CSH, BASH, PERL, PHP, SED, AWK KSH, CSH, BASH, PERL, PHP, BASH, PERL, PHP, SED, AWK CSH, BASH, PERL, PHP, SED, KSH, CSH, BASH, PERL, PHP, SED, AWK ------------------------------------- My desired output is... (2 Replies)
Discussion started by: VTAWKVT
2 Replies

2. Shell Programming and Scripting

grep help after context

Hi, There's a file with below contents which I have to read based on the input parameter provided by the user. FILE_ID=1 FILE_FTP_ID=ftp.server1.com FILE_FTP_USER=user1 FILE_FTP_PASS=pass1 FILE_ID=2 FILE_FTP_ID=ftp.server2.com FILE_FTP_USER=user2 FILE_FTP_PASS=pass2 FILE_ID=3... (6 Replies)
Discussion started by: dips_ag
6 Replies

3. UNIX for Dummies Questions & Answers

Context-switching question

Hi all, I've got this question that i need to solve: "Type `vmstat -s; vmstat -n 1 5; vmstat -n 1 5; vmstat -s` to your Ruby interpreter. Then terminate your Ruby session. Run the Unix com- mand vmstat -s; vmstat -n 1 5; vmstat -s in the same terminal window you had been using for Ruby. Did... (1 Reply)
Discussion started by: snowboarder
1 Replies

4. Homework & Coursework Questions

context-switching - vmstat

Hi all, I've got this question that i need to solve: "Type `vmstat -s; vmstat -n 1 5; vmstat -n 1 5; vmstat -s` to your Ruby interpreter. Then terminate your Ruby session. Run the Unix com- mand vmstat -s; vmstat -n 1 5; vmstat -s in the same terminal window you had been using for Ruby. Did... (1 Reply)
Discussion started by: snowboarder
1 Replies

5. Homework & Coursework Questions

Context-switching - vmstat

1. The problem statement, all variables and given/known data: Type `vmstat -s; vmstat -n 1 5; vmstat -n 1 5; vmstat -s` to your Ruby interpreter. Then terminate your Ruby session. Run the Unix com- mand vmstat -s; vmstat -n 1 5; vmstat -s in the same terminal window you had been using for... (2 Replies)
Discussion started by: snowboarder
2 Replies

6. Linux

involuntary context switching

In a kernel based on 2.6.27: In the schedule() routine they have a local variable switch_count: /* * schedule() is the main scheduler function. */ asmlinkage void __sched schedule(void) { struct task_struct *prev, *next; unsigned long *switch_count; struct rq... (2 Replies)
Discussion started by: chriskot
2 Replies

7. UNIX for Dummies Questions & Answers

Regarding context to add in a file

Hi Folks, I have one query is that I can reach to a location of a file named Integration_Config_3.properties through putty cd /usr/local/pos/jlan/config/byStore/il ls -ltr I can open this file in vi editior also vi Integration_Config_3.properties But now my query is I want to add the... (3 Replies)
Discussion started by: SankalpS
3 Replies

8. UNIX for Advanced & Expert Users

Interupt Context Switching

If suppose a middle level interrupt is being serviced and a high priority interrupts comes in then in that case what all process will take place. The interrupt context switch will happen. But where will the interrupt context be saved? Is there something called as part process data area? (4 Replies)
Discussion started by: rupeshkp728
4 Replies

9. Shell Programming and Scripting

Confusion with "su -c" and quotes, user context switching?

Trying to execute commands for different Unix user with that user's environment variable context without fully switching as that user using sudo && su capabilities. Hoping this would help with security and not having to waste time switching between 10 different app users on same server. I do... (6 Replies)
Discussion started by: kchinnam
6 Replies

10. Shell Programming and Scripting

Questions related to if in awk context and if without awk context

I wrote this code, questions follow #! /bin/bash -f # Purpose - to show how if syntax is used within an awk clear; ls -l; echo "This will print out the first two columns of the inputted file in this directory"; echo "Enter filename found in this directory"; read input; ... (11 Replies)
Discussion started by: Seth
11 Replies
lcpu_attr(5)							File Formats Manual						      lcpu_attr(5)

NAME
lcpu_attr - dynamically enable or disable LCPU attribute of the default processor set VALUES
Fail Safe Default the LCPU attribute of the default processor set is disabled Allowed values or DESCRIPTION
This tunable dynamically enables or disables the logical processor (LCPU) attribute in the default processor set. On systems supporting hyper-threading technology, each hyper-thread is represented as an LCPU. When the LCPU attribute is enabled, the processor cores in the default processor have hyper-threading enabled. If the LCPU attribute is disabled, the physical processors in the default processor set behave as single threaded processor cores. See pset_setattr(2) for information about managing the LCPU attribute in processor sets other than the default processor set. Who Is Expected to Change This Tunable? System administrators that wish to change hyper-threading ability in the default processor set. Restrictions on Changing The tunable has no effect on platforms that do not have hyper-threading capability or systems with hyper-threading disabled at the firmware level. On systems that support hyper-threading, the firmware feature must be enabled to dynamically enable/disable the LCPU attribute in the default processor set. When Should the Tunable Be Turned On? The tunable should be turned on to enable the LCPU attribute in the default processor set to take advantage of hyper-threading. If the applications running on the system see performance benefits, the LCPU attribute should remain enabled. What Are the Side Effects of Turning the Tunable On? Some workloads may experience performance degradation when the LCPU attribute is enabled. When Should the Tunable Be Turned Off? Some applications may experience performance degradation or may not see any performance benefits from using hyper-threading. In this case, this tunable should be turned off. What Are the Side Effects of Turning the Tunable Off? With LCPU turned off, applications may not take advantage of hyper-threading. What Other Tunables Should Be Changed at the Same Time? None. WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of HP-UX. Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation, some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun- able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was factory installed on your system, see at AUTHOR
was developed by HP. SEE ALSO
psrset(1M), pset_assign(2), pset_bind(2), pset_create(2), pset_ctl(2), pset_destroy(2), privgrp(4). Tunable Kernel Parameters lcpu_attr(5)
All times are GMT -4. The time now is 07:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy