11-15-2002
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.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
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
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
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
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
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
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
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
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
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
LEARN ABOUT HPUX
pthread_settimeslice_np
pthread_gettimeslice_np(3T) pthread_gettimeslice_np(3T)
NAME
pthread_gettimeslice_np(), pthread_settimeslice_np() - set or get the scheduling timeslice value for PTHREAD_SCOPE_PROCESS threads with
SCHED_TIMESHARE scheduling policy
SYNOPSIS
PARAMETERS
tslice This parameter specifies the timeslice value in milliseconds to be set.
DESCRIPTION
The functions are used to set and retrieve the timeslice value in milliseconds for timeshare process scope threads. The timeslice value
will not take into effect until the current time quantum is used up for the thread.
sets the timeslice value to tslice for all timeshare process scope threads in the process.
retrieves the process' timeslice value. tslice may range between 0 and
RETURN VALUE
returns the current timeslice value in tslice.
Upon successful completion, returns zero. Otherwise, an error number is returned to indicate the error (the variable is not set).
ERRORS
If any of the following occur, the function returns the following error number:
[EINVAL] The timeslice value was negative or greater than
WARNINGS
Setting the timeslice value lesser than the default timeslice value may cause a performance deterioration.
AUTHOR
and were developed by HP.
SEE ALSO
pthread_getschedparam(3T), pthread_attr_setschedpolicy(3T), pthread_attr_getschedparam(3T), pthread_attr_getschedpolicy(3T), rtsched(2).
STANDARDS CONFORMANCE
Pthread Library pthread_gettimeslice_np(3T)