<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: User default shell impact on program performance in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783645#M77852</link>
    <description>That is odd.&lt;BR /&gt;&lt;BR /&gt;The only thing I can think of right now is that you may have issues with various 'ulimit' values.  You might check that for both shells.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sun, 11 Aug 2002 22:25:49 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2002-08-11T22:25:49Z</dc:date>
    <item>
      <title>User default shell impact on program performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783644#M77851</link>
      <description>Hi&lt;BR /&gt;We are running HPUX 11.0 Class N machine. We are using Oracle 734 with associated tool like Developer 2000 tools and pro*c for batch.&lt;BR /&gt;Recently, we have noticed a significant performance degrade on an annual batch job when run in production environment. But the same job on development environment with lower resources runs 10 times faster.&lt;BR /&gt;After dredful investigations, it pointed to the user environment who is submitting the job.&lt;BR /&gt;In the development environment the user's default shell is /usr/bin/ksh.&lt;BR /&gt;In production environment the user's default shell is /usr/bin/sh.&lt;BR /&gt;We proved the above theory by modifying development default shell to /usr/bin/sh and it run slower when compared to the default shell of /usr/bin/ksh.&lt;BR /&gt;This job is submitted throught a third party tool in the background.&lt;BR /&gt;Any thoughts on this, like job scheduling in the two shells, priority etc.&lt;BR /&gt;Any help is much appreciated.</description>
      <pubDate>Sun, 11 Aug 2002 22:04:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783644#M77851</guid>
      <dc:creator>Prasad Pillutla</dc:creator>
      <dc:date>2002-08-11T22:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: User default shell impact on program performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783645#M77852</link>
      <description>That is odd.&lt;BR /&gt;&lt;BR /&gt;The only thing I can think of right now is that you may have issues with various 'ulimit' values.  You might check that for both shells.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 11 Aug 2002 22:25:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783645#M77852</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-08-11T22:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: User default shell impact on program performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783646#M77853</link>
      <description>Unless the shell (ksh or sh) have massive tasks to perform (which will show up as huge CPU consumption), there is likely another reason. ksh and sh are both POSIX shells and have similar code bases. Normally, shell scripts complete so quickly that it is not possible to measure the time they use.&lt;BR /&gt;&lt;BR /&gt;Since this is a batch job, the only way to trace what components are causing the dalays is to start Measureware and configure the process groups carefully to separate the shell and Oracle processes. I would be concerned about using Oracle 734...it is really old, especially for use on HP-UX 64bit 11.0 or later.</description>
      <pubDate>Mon, 12 Aug 2002 01:51:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783646#M77853</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-08-12T01:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: User default shell impact on program performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783647#M77854</link>
      <description>Thanks .&lt;BR /&gt;While the job is running, the average cpu load is around1.5 to 2. This machine has 6cpus and 12GB mem.</description>
      <pubDate>Mon, 12 Aug 2002 02:09:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783647#M77854</guid>
      <dc:creator>Prasad Pillutla</dc:creator>
      <dc:date>2002-08-12T02:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: User default shell impact on program performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783648#M77855</link>
      <description>I would like to add some points here&lt;BR /&gt;&lt;BR /&gt;1.Do you have the similar configuration of Oracle instance on both the machines or you are pointing the &lt;BR /&gt;application to look at a Oracle instance remotely from there.&lt;BR /&gt;The point is that is your application looking for some files outside the system that is on the network.&lt;BR /&gt;&lt;BR /&gt;2.Do you have a log file for your application so that you could trace which batch is taking long time.&lt;BR /&gt;Also you could use GlancePlus to find the process taking too much resources.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3.Are your kernel parameters tuned as recommended by the application.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Assuming that you have investigated a lot about the problem,I dont think the shell of the user should matter.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 12 Aug 2002 02:47:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783648#M77855</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-08-12T02:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: User default shell impact on program performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783649#M77856</link>
      <description>Assuming it really is the shell that is causing the performance degradation of your job, you should concentrate your investigation on the statements in your shell script that are actually processed by the shell, e.g. testing for existance of files, expanding wildcards, etcetera.&lt;BR /&gt;&lt;BR /&gt;I found that testing a simple thing like the value of a variable in the posix shell (/usr/bin/sh) using&lt;BR /&gt;&lt;BR /&gt;typeset -i i=0&lt;BR /&gt;while test $i -lt 10000&lt;BR /&gt;do&lt;BR /&gt;   i=$((i + 1))&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;is not very efficient.&lt;BR /&gt;Using&lt;BR /&gt;&lt;BR /&gt;typeset -i i=0&lt;BR /&gt;while [[ $i -lt 10000 ]]&lt;BR /&gt;do&lt;BR /&gt;   i=$((i + 1))&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;runs two times as fast.&lt;BR /&gt;&lt;BR /&gt;I'm not sure, but I think that the 'test' statement in the Korn shell is a builtin command, which is not the case with the posix shell, which uses /bin/test to test things.&lt;BR /&gt;&lt;BR /&gt;Maybe this helps&lt;BR /&gt;&lt;BR /&gt;Timo&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Aug 2002 10:13:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783649#M77856</guid>
      <dc:creator>Timo Ruiter</dc:creator>
      <dc:date>2002-08-12T10:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: User default shell impact on program performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783650#M77857</link>
      <description>Prasad,&lt;BR /&gt;&lt;BR /&gt;We have also recently had upgrade performance issues of a similar nature.&lt;BR /&gt;&lt;BR /&gt;A solution that we found was that the system performance using /usr/bin/sh was significantly reduced when the EDITOR variable was set to vi (no such problem existed when using /usr/bin/ksh).&lt;BR /&gt;&lt;BR /&gt;In our case, we noticed that when we scanned barcode data into the system, using ksh, the entire code was displayed on screen immediately, whereas when using sh, with EDITOR=vi set in the users .profile a distinct pause was present part way through the display of the code.&lt;BR /&gt;&lt;BR /&gt;You may wish to check if this is the case on your system too.&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Mon, 12 Aug 2002 10:48:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783650#M77857</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2002-08-12T10:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: User default shell impact on program performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783651#M77858</link>
      <description>Can you do a &lt;BR /&gt;&lt;BR /&gt;what /usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;Also, what's the last patch bundle installed?&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 12 Aug 2002 10:51:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783651#M77858</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-08-12T10:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: User default shell impact on program performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783652#M77859</link>
      <description>So just changing the shell from ksh to sh slowed the job down a lot.&lt;BR /&gt;&lt;BR /&gt;You should check the startup files and differences between shell built-in commands.&lt;BR /&gt;&lt;BR /&gt;The ksh startup files (/etc/profile, $HOME/.profile, $ENV) may be setting the PATH differently or setting other variables that have an impact.&lt;BR /&gt;&lt;BR /&gt;ksh has many more built-ins than sh does. So sh may have to spawn a sub-shell to do an echo while ksh uses it's built-in equivalent. sh may be spawning many sub-shells during this process.&lt;BR /&gt;&lt;BR /&gt;Tom&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Aug 2002 13:53:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783652#M77859</guid>
      <dc:creator>Tom Maloy</dc:creator>
      <dc:date>2002-08-12T13:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: User default shell impact on program performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783653#M77860</link>
      <description>&lt;BR /&gt;I have seldom seen the shell get in the way, so I, too, would have been blaming differences in how Oracle is configured in the two nodes.  However, I *have* seen the shell get in the way.  Pet Peve #847: what are these "not a teletype" messages in my output?  Answer: why are you setting an interactive environment for a batch job?  EDITOR is a known suspect.  ENV is in the top-10 wanted list.  ENV is great for making sure that an environment specific to ksh or POSIX is set appropriately, but, exporting ENV can turn a demure shell into a performance hog (it causes the environment file pointed to by ENV to be sourced *every* time a shell script is called -- many of the commands in any UNIX are shell scripts).  If your script is calling other scripts repeatedly, the problem compounds.  Plus, shells are not very efficient (they are interpreted code), fortunately, their impact is _usually_ negligible.  Want further proof?  If the script is short, port it back to Bourne (/usr/old/bin/sh) and see what happens.&lt;BR /&gt;&lt;BR /&gt;-dlt-</description>
      <pubDate>Tue, 13 Aug 2002 15:11:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783653#M77860</guid>
      <dc:creator>David Totsch</dc:creator>
      <dc:date>2002-08-13T15:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: User default shell impact on program performance</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783654#M77861</link>
      <description>And to answer pet peeve #847, all profiles (including /etc/profile, .profile, .kshrc, bashrc, etc) must explicitly test for the lack of a controlling tty device. The "not a teletype" messages seen in logfiles are due to commands like ttytype, tabs, tset, etc which are always executed.  Instead, bypass all terminal or tty commands like this:&lt;BR /&gt;&lt;BR /&gt;[[ -o interactive ]] &amp;amp;&amp;amp; INTERACTIVE=/usr/bin/true || INTERACTIVE=/usr/bin/false&lt;BR /&gt;&lt;BR /&gt;if $INTERACTIVE&lt;BR /&gt;then&lt;BR /&gt;   eval $(/usr/bin/ttytype -s)&lt;BR /&gt;   /usr/bin/tabs&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Now you won't see the "typewriter" message.</description>
      <pubDate>Tue, 13 Aug 2002 15:28:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-default-shell-impact-on-program-performance/m-p/2783654#M77861</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-08-13T15:28:14Z</dc:date>
    </item>
  </channel>
</rss>

