01-05-2015
Quote:
Originally Posted by
scriptor
is higher value of %idle is good
or lower value of %idle is good
Both are good. Actually any value of %idle comprised between 0% and 100% inclusive is good, i.e. shouldn't be a concern.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a command called
cd $HDRROOT/release/tools/cfg
My query is what it means?
tHat is.... $HDRROOT part is not clear.
If I put this command it says path not found....
I doubt that $HDRROOT is trying to mean smething I am not clear of.
PL help......... (4 Replies)
Discussion started by: rraajjiibb
4 Replies
2. HP-UX
Dear All,
Our HPUX 8 GB 8CPU database server is behaving abnormally for the last 4+ weeks. I have generated a sar output and it is here-
11:46:52 %usr %sys %wio %idle
11:46:53 1 1 6 92
11:46:54 0 1 0 99
11:46:55 0 1 0... (3 Replies)
Discussion started by: Ashrunil
3 Replies
3. UNIX for Dummies Questions & Answers
Can you please tell me what this means?
use grep to find from the file myfile.txt all lines containing the sequence tt but not more 2 ts?
I have no idea. (2 Replies)
Discussion started by: rushhour
2 Replies
4. UNIX for Advanced & Expert Users
:) Hi,
In some script i got these regular expression
like ,
n=$#
and
for i in $*
can anybody let me know, what does it means (5 Replies)
Discussion started by: deb.simply
5 Replies
5. UNIX for Dummies Questions & Answers
I can not find out what the %U means in the following command:
ooffice -calc %U (2 Replies)
Discussion started by: borobudur
2 Replies
6. Shell Programming and Scripting
Hi,
I have seen in some ksh script, that we are executing shell scripts inside other shell script as
. variable.sh
What is . here? Their is space between . and variabloe. And why we are not executing it like ./variable.sh? I know that . signifies current directory , but what its... (2 Replies)
Discussion started by: jatanig
2 Replies
7. Shell Programming and Scripting
what exactly $? and $# means ? (1 Reply)
Discussion started by: mail2sant
1 Replies
8. Programming
#define abc '\xE8' (7 Replies)
Discussion started by: kamlesh33
7 Replies
9. UNIX for Beginners Questions & Answers
HI
what does the $(NF) means.
here i want to understand the working.
what i know is that in awk NF argument will tell number of column in a file
i have below file
alpha
a
beta
b
if i use command cat kv | paste - - | awk '{print $1," "$2 "------>"$(NF)}'
i get the o/p as
alpha ... (3 Replies)
Discussion started by: scriptor
3 Replies
LEARN ABOUT DEBIAN
anyevent::aggressiveidle
AnyEvent::AggressiveIdle(3pm) User Contributed Perl Documentation AnyEvent::AggressiveIdle(3pm)
NAME
AnyEvent::AggressiveIdle - Aggressive idle processes for AnyEvent.
SYNOPSIS
use AnyEvent::AggressiveIdle qw(aggressive_idle};
aggressive_idle {
... do something important
};
my $idle;
$idle = aggressive_idle {
... do something important
if (FINISH) {
undef $idle; # do not call the sub anymore
}
};
DESCRIPTION
Sometimes You need to do something that takes much time but can be split into elementary phases. If You use AE::idle and Your program is a
highload project, idle process can be delayed for much time (second, hour, day, etc). aggressive_idle will be called for each AnyEvent loop
cycle. So You can be sure that Your idle process will continue.
EXPORTS
aggressive_idle
Register Your function as aggressive idle watcher. If it is called in VOID context, the watcher wont be deinstalled. Be carrefully.
In NON_VOID context the function returns a guard. Hold the guard until You want to cancel idle process.
stop_aggressive_idle
You can use the function to stop idle process. The function receives idle process PID that can be received in idle callback (the first
argument).
Example:
use AnyEvent::AggressiveIdle ':all'; # or:
use AnyEvent::AggressiveIdle qw(aggressive_idle stop_aggressive_idle);
aggressive_idle {
my ($pid) = @_;
....
stop_aggressive_idle $pid;
}
The function will throw an exception if invalid PID is received.
Continuous process.
Sometimes You need to to something continuous inside idle callback. If You want to stop idle calls until You have done Your work, You can
hold guard inside Your process:
aggressive_idle {
my ($pid, $guard) = @_;
my $timer;
$timer = AE::timer 0.5, 0 => sub {
undef $timer;
undef $guard; # POINT 1
}
}
Until 'POINT 1' aggressive_idle won't call its callback. Feel free to stop_aggressive_idle before free the guard.
AUTHOR
Dmitry E. Oboukhov, <unera@debian.org>
COPYRIGHT AND LICENSE
Copyright (C) 2011 by Dmitry E. Oboukhov
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or,
at your option, any later version of Perl 5 you may have available.
VCS
The project is placed on my GIT repo: <http://git.uvw.ru/?p=anyevent-aggressiveidle;a=summary>
perl v5.10.1 2011-03-01 AnyEvent::AggressiveIdle(3pm)