Sponsored Content
Full Discussion: Load Average and Lwps
Operating Systems Solaris Load Average and Lwps Post 302415622 by jlliagre on Friday 23rd of April 2010 03:37:33 AM
Old 04-23-2010
Quote:
Originally Posted by snjksh
1) Can any one tell me why the load average is so high though the cpu utilization is 85%.
Because there are some short periods of time where the run queue is empty and all threads are waiting for something to happen while there are more other periods of time when plenty of threads want a CPU but none is available. To know if this is an issue, you should tell how many CPUs/Cores/Chip Threads are available on your machine.
Quote:
2) what is lwps and is it harmfull for the system
lwps are light weight processes a.k.a threads. The number of lwps isn't harmful at all.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

load average

we have an unix system which has load average normally about 20. but while i am running a particular unix batch which performs heavy operations on filesystem and database average load reduces to 15. how can we explain this situation? while running that batch idle cpu time is about %60-65... (0 Replies)
Discussion started by: gfhgfnhhn
0 Replies

2. UNIX for Dummies Questions & Answers

Load Average

Hello all, I have a question about load averages. I've read the man pages for the uptime and w command for two or three different flavors of Unix (Red Hat, Tru64, Solaris). All of them agree that in the output of the 2 aforementioned commands, you are given the load average for the box, but... (3 Replies)
Discussion started by: Heathe_Kyle
3 Replies

3. Shell Programming and Scripting

Determening load average.

Hi, I'm new to shell scripting. I need to make a script to add on to my cronjobs. The script must get the value of load average from my server and if its greater than 10 it should stop my apache service. I cant find a way to get the value of load average in integer type to do the check. Any... (4 Replies)
Discussion started by: jibsonline
4 Replies

4. UNIX for Dummies Questions & Answers

top - Load average

Hello, Here is the output of top command. My understanding here is, the load average 0.03 in last 1 min, 0.02 is in last 5 min, 0.00 is in last 15 min. By seeing this load average, When can we say that, the system load averge is too high? When can we say that, load average is medium/low??... (8 Replies)
Discussion started by: govindts
8 Replies

5. Solaris

load average query.

Hi, i have installed solaris 10 on t-5120 sparc enterprise. I am little surprised to see load average of 2 or around on this OS. when checked with ps command following process is using highest CPU. looks like it is running for long time and does not want to stop, but I do not know... (5 Replies)
Discussion started by: upengan78
5 Replies

6. UNIX for Dummies Questions & Answers

Please Help me in my load average

Hello AlL,.. I want from experts to help me as my load average is increased and i dont know where is the problem !! this is my top result : root@a4s # top top - 11:30:38 up 40 min, 1 user, load average: 3.06, 2.49, 4.66 Mem: 8168788k total, 2889596k used, 5279192k free, 47792k... (3 Replies)
Discussion started by: black-code
3 Replies

7. UNIX for Dummies Questions & Answers

Load Average threshold

What should be the threshold for load average of a quad core processor? What constitutes "good" and "bad" load average values? (2 Replies)
Discussion started by: proactiveaditya
2 Replies

8. UNIX for Advanced & Expert Users

Load average in UNIX

Hi , I am using 48 CPU sunOS server at my work. The application has facility to check the current load average before starting a new process to control the load. Right now it is configured as 48. So it does mean that each CPU can take maximum one proces and no processe is waiting. ... (2 Replies)
Discussion started by: kumaran_5555
2 Replies

9. UNIX for Dummies Questions & Answers

Help with load average?

how load average is calculated and what exactly is it difference between cpu% and load average (9 Replies)
Discussion started by: robo
9 Replies

10. HP-UX

Load average unit

Hi, On load average graph, unit is 100m, 200m, 300...800m. I don't understand what it means. Thx for helping (3 Replies)
Discussion started by: Michenux
3 Replies
plgrp(1)							   User Commands							  plgrp(1)

NAME
plgrp - observe and affect home lgroup and lgroup affinities of threads SYNOPSIS
plgrp [-F] [-h] pid | core [/lwps] ... plgrp [-F] -a lgroup_list pid[/lwps] ... plgrp [-F] -H lgroup_list pid[/lwps] ... plgrp [-F] -A lgroup_list/none | weak |strong [,...] pid [/lwps] ... DESCRIPTION
plgrp displays or sets the home lgroup and lgroup affinities for one or more processes, threads, or LWPs. An lgroup represents the set of CPU and memory-like hardware devices that are at most some distance (latency) apart from each other. Each lgroup in the system is identified by a unique lgroup ID. The lgroups are organized into a hierarchy to facilitate finding the nearest resources (see lgrpinfo(1) for more about lgroups and the lgroup hierarchy). By default, each thread is assigned a home lgroup upon creation. When the system needs to allocate a CPU or memory resource for a thread, it searches the lgroup hierarchy from the thread's home lgroup for the nearest available resources to the thread's home. Typically, the home lgroup for a thread is the lgroup for which the thread has the most affinity. Initially, the system chooses a home lgroup for each thread, but leaves the thread's affinity for that lgroup set to none. If a thread sets a stronger affinity for an lgroup in its processor set other than its home, the thread is rehomed to that lgroup as long as the thread is not bound to a CPU. The thread can be re-homed to the lgroup in its processor set with the next highest affinity when the affinity (if any) for its home lgroup is removed (set to none). The different levels of lgroup affinities and their semantics are fully described in lgrp_affinity_set(3LGRP). USAGE
Specifying lgroups lgroup_list is a comma separated list of one or more of the following: - lgroup_ID - Range of lgroup_IDs specified as <start lgroup_ID>-<end lgroup_ID> - all - root - leaves The all keyword represents all lgroup IDs in the system. The root keyword represents the ID of the root lgroup. The leaves keyword repre- sents the IDs of all leaf lgroups, that is, lgroups which do not have any children. Specifying Processes and Threads plgrp takes one or more space separated processes or threads as arguments. Processes and threads can be specified in a manner similiar to the proc(1) tools. A process ID may be specified as an integer pid or /proc/pid. Shell expansions can be used to specify processes when /proc/pid is used. For example, /proc/* can be used to specify all the processes in the system. If a process ID is given alone, then all the threads of the process are included as arguments to plgrp. A thread can be explicitly specified with its process ID and thread ID given together as pid/lwpid. Multiple threads of a process can be selected at once by using the hyphen (-) and comma(,). For example, pid/1,2,7-9 specifies threads 1, 2, 7, 8, and 9 of the process with pid as its process ID. OPTIONS
The following options are supported: -a lgroup_list Display lgroup affinities of specified processes or threads for the specified lgroup_list. -A lgroup_list/none|weak|strong[,...] Set affinity of specified processes or threads for the specified lgroup_list. A comma separated list of lgroups/affinity assignments can be given to set several affinities at once. -F Force by grabbing the target process even if another process has control. Caution should be exercised when using the -F flag. Imposing two controlling processes on one victim process can lead to chaos. Safety is assured only when the primary controlling process (typi- cally a debugger) has stopped the victim process, but isn't doing anything during the application of this proc tool. See WARNINGS for more details. -h Get home lgroup of specified processes and/or threads. If no options are specified, this is the default. -H lgroup_list Set home lgroup of specified processes and threads. This sets a strong affinity for the desired lgroup to rehome the threads. If more than one lgroup is specified, plgrp tries to home the threads to the lgroups in a round robin fashion. OPERANDS
The following operands are supported: lwps Specifies thread. See USAGE. pid Specifies process ID. See USAGE. EXAMPLES
Example 1 Getting the Home lgroup for the Shell The following example gets the home lgroup for the shell: % plgrp $$ PID/LWPID HOME 3401/1 1 Example 2 Setting the Home lgroup of Multiple Threads to the Root lgroup The following example sets the home lgroup of multiple threads to the root lgroup: % plgrp -H root `pgrep firefox` PID/LWPID HOME 918/1 1 => 0 934/1 2 => 0 934/2 1 => 0 934/3 2 => 0 934/625 1 => 0 934/626 2 => 0 934/624 2 => 0 934/623 2 => 0 934/630 1 => 0 Example 3 Getting Two Threads' Affinities for lgroups 0-2 The following example gets two threads' affinities for lgroups 1-2: % plgrp -a 0-2 101398/1 101337/1 PID/LWPID HOME AFFINITY 101398/1 1 0-2/none 101337/1 1 0-2/none Example 4 Setting lgroup Affinities The following example sets lgroup affinities: % plgrp -A 0/weak,1/none,2/strong 101398 PID/LWPID HOME AFFINITY 101398/1 1 => 2 0,2/none => 2/strong,0/weak EXIT STATUS
The following exit values are returned: 0 Successful completion. 1 Syntax error. Nothing was changed. 2 Non-fatal error or interrupt. Something might have changed. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWesu | +-----------------------------+-----------------------------+ |Interface Stability |See below. | +-----------------------------+-----------------------------+ The command syntax is Unstable. The output formats are Unstable. SEE ALSO
lgrpinfo(1), madv.so.1(1), pmadvise(1), pmap(1), proc(1), ps(1), prstat(1M), lgrp_affinity_get(3LGRP), lgrp_affinity_set(3LGRP), lgrp_home(3LGRP), liblgrp(3LIB), proc(4), attributes(5) WARNINGS
Like the proc(1) tools, the plgrp utility stops its target processes while inspecting them and reports the results when invoked with any option. There are conditions under which processes can deadlock. A process can do nothing while it is stopped. Stopping a heavily used process in a production environment (even for a short amount of time) can cause severe bottlenecks and even hangs of these processes, making them to be unavailable to users. Thus, stopping a UNIX process in a production environment should be avoided. See proc(1). A process that is stopped by this tool might be identified by issuing the following command: /usr/bin/ps -eflL and looking for a T in the first column of the output. Certain processes, for example, sched, can show the T status by default most of the time. SunOS 5.11 8 Sep 2006 plgrp(1)
All times are GMT -4. The time now is 09:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy