07-16-2007
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i have a server constantly have high iowait, but i am not able to tell which process generate the most of io. none commands, such as iostat, sar, top will give me this kind of information.
hope there is some command can help me to spot the process generate the most of io
let to know input... (1 Reply)
Discussion started by: giantpanda77
1 Replies
2. AIX
hello, we have a aix 5.2 server with 8GB of ram. is it possible, without actually removing the hardware, to have the O/S think it has only 4GB of ram? We would like to see how the handles and responds if it only had 4Gb instead of the 8GB. Any ideas or suggestions? Thanks
Looks like i found... (6 Replies)
Discussion started by: zuessh
6 Replies
3. Shell Programming and Scripting
Hi ,
how can i reduce the or conditions:
if ]; then
whatever
fi (8 Replies)
Discussion started by: hitmansilentass
8 Replies
4. Linux
Hi all,
Under top command you could see some iowait output.
Is any way to locate which process(s) is causing the high percentage of iowait?
17:48:39 up 19 days, 18:54, 3 users, load average: 3.24, 3.14, 3.17
392 processes: 389 sleeping, 1 running, 2 zombie, 0 stopped
CPU states: cpu user... (3 Replies)
Discussion started by: will_mike
3 Replies
5. Shell Programming and Scripting
printf "\nClosing stats:\n" >> data.txt
echo >> data.txt
sed 's/^ \t*//;/^#/d;/^$/d' $stats | while read line
do
close=$(grep -w "^$line" $datafile | sed -e 's/\(.*\),\(.*\),\(.*\)/\2/')
if ; then
printf "%5d. %-s was not found in file\n"... (3 Replies)
Discussion started by: jafa401
3 Replies
6. Shell Programming and Scripting
Hi All,
Could some one help me to reduce the code...
if
then
./plist -m "$queuename" |grep $2|awk '{print $3}' >unlock.log
elif
then
./plist -m "$queuename" |grep $2|awk '{print $4}' >unlock.log
else
./plist -m "$queuename" |grep $2|awk '{print $5}' >unlock.log
.
.
.
.
... (1 Reply)
Discussion started by: harshakusam
1 Replies
7. SuSE
Hello,
I do not know Linux. It is a black box.
We have 2 virtuals servers (SAPVM01 and SAPVM06) in one physical server.
The first virtual system (SAPVM01) has a total size of 420 Gb and a free space of 170 GB. A SAP system is running.
The second virtual system (SAPVM06) has a total... (3 Replies)
Discussion started by: daniel04
3 Replies
8. UNIX for Dummies Questions & Answers
Hi all
Can anyone advise/confirm whether total CPU usage when running sar is %user+%system+%iowait or is it %user+%system only?
I want to confirm whether I am having a CPU-bound problem or not.
This is a single-CPU VMware machine.
$ sar 5 20
Linux 2.6.18-238.5.1.el5... (7 Replies)
Discussion started by: newbie_01
7 Replies
9. Shell Programming and Scripting
Hello, I need to monitor IOwait on a server and have started this script directly on the ssh prompt.
Effectively it almost does what it is supposed to do, but I have no idea how to stop it?
How can I make it run it as a file based bash script?
(
iostat -xk 1 /dev/sdb2 | \
perl... (10 Replies)
Discussion started by: cuantica
10 Replies
10. Red Hat
Hello guys,
I would like to ask you kindly if you don't know some quick and safe method how to shrink ext4 filesystem and reduce the size of a Logical Volume in Linux, please?
Thank you very much. (2 Replies)
Discussion started by: los_bandidos
2 Replies
LEARN ABOUT REDHAT
pdl::reduce
Reduce(3) User Contributed Perl Documentation Reduce(3)
NAME
PDL::Reduce -- a "reduce" function for PDL
DESCRIPTION
Many languages have a "reduce" function used to reduce the rank of an N-D array by one. It works by applying a selected operation along a
specified dimension. This module implements such a function for PDL by providing a simplified interface to the existing projection func-
tions (e.g. "sumover", "maximum", "average", etc).
SYNOPSIS
use PDL::Reduce;
$a = sequence 5,5;
# reduce by adding all
# elements along 2nd dimension
$b = $a->reduce('add',1);
@ops = $a->canreduce; # return a list of all allowed operations
FUNCTIONS
reduce
reduce dimension of piddle by one by applying an operation along the specified dimension
$a = sequence 5,5;
# reduce by adding all
# elements along 2nd dimension
$b = $a->reduce('add',1);
$b = $a->reduce('plus',1);
$b = $a->reduce('+',1); # three ways to do the same thing
[ As an aside: if you are familiar with threading you will see that this is actually the same as
$b = $a->mv(1,0)->sumover
]
NOTE: You should quote the name of the operation (1st arg) that you want "reduce" to perform. This is important since some of the names are
identical to the names of the actual PDL functions which might be imported into your namespace. And you definitely want a string as argu-
ment, not a function invocation! For example, this will probably fail:
$b = $a->reduce(avg,1); # gives an error from invocation of 'avg'
Rather use
$b = $a->reduce('avg',1);
"reduce" provides a simple and unified interface to the projection functions and makes people coming from other data/array languages hope-
fully feel more at home.
$result = $pdl->reduce($operation [,$dim]);
"reduce" applies the named operation along the specified dimension reducing the input piddle dimension by one. If the dimension is omitted
the operation is applied along the first dimension. To get a list of valid operations see canreduce.
canreduce
return list of valid named "reduce" operations Some common operations can be accessed using a number of names, e.g. '+', "add" and "plus"
all sum the elements along the chosen dimension.
@ops = PDL->canreduce;
This list is useful if you want to make sure which operations can be used with "reduce".
AUTHOR
Copyright (C) 2000 Christian Soeller (c.soeller@auckland.ac.nz). All rights reserved. There is no warranty. You are allowed to redistribute
this software / documentation under certain conditions. For details, see the file COPYING in the PDL distribution. If this file is sepa-
rated from the PDL distribution, the copyright notice should be included in the file.
perl v5.8.0 2001-07-07 Reduce(3)