04-02-2009
Performance degradation with KSH93
Hi,
I have a script that calls an external program to perform some calculations and then I read with "grep" and "sed" values from the output files. I've noticed that performance of KSH93 degrades with every iteration. The output files are all the same size, so I don't understand why after the first calculation it takes 5 seconds to read the values but after the 50th calculation it takes ~1 minute. Besides that, everything is working correctly, no error messages.
I had the same problem a couple of months ago with a simpler script. Back then I just executed the script with KSH88 and the problem was gone (I wasn't using any special features of KSH93).
But this actual script has gotten very complex using lots of KSH93 specific stuff, so I cannot use KSH88 here.
I've searched the internet concerning performance degradation, but found only a hint to a bug with the "unset" command. Well, I was using the "unset" command for some array variables, but even after commenting these lines out, the problem was still there.
Has anyone heard anything about KSH93 getting slower and slower with time?
By the way, I'm on a AIX 5.2 machine.
Thanks, Ingo
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Any means of running ksh93 in a ksh88-mode?
Might sound odd, but I want/need to restrict U/Win-developed scripts to correspond to the ksh88 version on my Solaris environment(s). Thanks. (2 Replies)
Discussion started by: curleb
2 Replies
2. Shell Programming and Scripting
Hi all!
Does anybody know how can I check if any UNIX installation has implemented ksh88 or ksh93?
Thanks in advance.
Néstor. (3 Replies)
Discussion started by: Nestor
3 Replies
3. UNIX for Advanced & Expert Users
Hi,
Does anyone know where can I get ksh93 for installation on CYGWIN. Thanks? (1 Reply)
Discussion started by: devtakh
1 Replies
4. UNIX for Advanced & Expert Users
Hi everyone, newbie forum poster here. I'm an Oracle DBA and I require some guidance from the Unix gurus here about how to pinpoint where a problem is within a Solaris 9 system running on an 8 CPU Fujitsu server that acts as our Oracle database server. Our sysadmins are trying their best to... (13 Replies)
Discussion started by: DBA_guy
13 Replies
5. UNIX for Advanced & Expert Users
I am looking to create some ksh93 extensions using the custom builtin feature.
I can successfully create a builtin function, load it using the builtin -f command and get an output. However, I want to get/set values of KSH variables from within my built-in.
For example, lets say I am creating... (2 Replies)
Discussion started by: a_programmer
2 Replies
6. Shell Programming and Scripting
This problem seems to be specific to ksh93.
If you run with set -x some scripts don't work properly. For example:
$ cat ksh.test2
] && print FUBAR! || print OK!
$
$ /bin/ksh93 ksh.test2
OK!
$ /bin/ksh93 -x ksh.test2
+ ]
+ print FUBAR!
FUBAR!
$
Trying to find out why this is... (8 Replies)
Discussion started by: lthorson
8 Replies
7. UNIX for Advanced & Expert Users
Hello everyone,
I am trying to embed some tcl code inside a ksh93 script but I am not having any success.
I even tried the simplest of code, something like this:
.
.
jk=$(echo $(tcl << |
write_file junkme "test"'
|
))
just to see if a file gets written. When I run there are no errors, but ... (3 Replies)
Discussion started by: gio001
3 Replies
8. Shell Programming and Scripting
Solaris 11 ksh93 if condition issue
Has anyone run into issues with Solaris 11 with ksh93 if condition where it intermittently return wrong return code?
We did not see this issue in Solaris 10 with ksh88
Any thoughts? Thanks!
Solaris version: SunOS t52-ccc-28 5.11 11.2... (4 Replies)
Discussion started by: nugent
4 Replies
9. UNIX for Advanced & Expert Users
Hi Experts,
I have several shell scripts that have been developed on a Linux box for korn ksh93.
If we want to run this software on an AIX 6.1 box that runs ksh88 by default can we just change the she-bang line to reference /bin/ksh93 which ships with AIX as its "enhanced shell" to ensure... (6 Replies)
Discussion started by: Keith Turley
6 Replies
10. AIX
Hi everyone !
Im trying to know from wich version of AIX KSH93 is available ?
Internet tell me 6.x and 7.x AIX are available, bue what about 5.x ?
Is KSH93 available on AIX 5.x ?
Is it the same way to manipulate variables as KSH93 on 7.x ?
Thanks for your support and have a nice day ! (2 Replies)
Discussion started by: majinfrede
2 Replies
LEARN ABOUT CENTOS
pmdapostfix
PMDAPOSTFIX(1) Performance Co-Pilot PMDAPOSTFIX(1)
NAME
pmdapostfix - Postfix performance metrics domain agent (PMDA)
DESCRIPTION
pmdapostfix is a Performance Metrics Domain Agent (PMDA) which exports mail queue sizes as reported by qshape(1), as well as aggregate
statistics collected from mail.log.
INSTALLATION
If you want access to the names and values for the Postfix performance metrics, do the following as root:
# cd $PCP_PMDAS_DIR/postfix
# ./Install
If you want to undo the installation, do the following as root:
# cd $PCP_PMDAS_DIR/postfix
# ./Remove
pmdapostfix is launched by pmcd(1) and should never be executed directly. The Install and Remove scripts notify pmcd(1) when the agent is
installed or removed.
FILES
$PCP_PMDAS_DIR/postfix/Install
installation script for the pmdapostfix agent
$PCP_PMDAS_DIR/postfix/Remove
undo installation script for the pmdapostfix agent
$PCP_LOG_DIR/pmcd/postfix.log
default log file for error messages from pmdapostfix
SEE ALSO
pmcd(1) and qshape(1).
3.8.10 Performance Co-Pilot PMDAPOSTFIX(1)