Intermittant slow startup

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Mossey

    Intermittant slow startup

    Runnng python 2.2 on HP-UX, I get intermittant slow startup.
    Sometimes python starts up in a small fraction of a second, and
    sometimes takes 3-5 seconds. This applies to any script I run, or
    just typing 'python' at the prompt.

    I also observed something similar on Linux.

    Any ideas what would cause *intermittant* slow startup?

    -Mike
  • Erik Max Francis

    #2
    Re: Intermittant slow startup

    Michael Mossey wrote:
    [color=blue]
    > Runnng python 2.2 on HP-UX, I get intermittant slow startup.
    > Sometimes python starts up in a small fraction of a second, and
    > sometimes takes 3-5 seconds. This applies to any script I run, or
    > just typing 'python' at the prompt.
    >
    > I also observed something similar on Linux.
    >
    > Any ideas what would cause *intermittant* slow startup?[/color]

    Caching? Is it a long time between invocations that it takes a long
    time to start up?

    --
    __ Erik Max Francis && max@alcyone.com && http://www.alcyone.com/max/
    / \ San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
    \__/ A father is a thousand schoolmasters.
    -- Louis Nizer

    Comment

    • Michael Mossey

      #3
      Re: Intermittant slow startup

      Erik Max Francis <max@alcyone.co m> wrote in message news:<4071A86D. 97CA6CAE@alcyon e.com>...[color=blue]
      > Michael Mossey wrote:
      >[color=green]
      > > Runnng python 2.2 on HP-UX, I get intermittant slow startup.
      > > Sometimes python starts up in a small fraction of a second, and
      > > sometimes takes 3-5 seconds. This applies to any script I run, or
      > > just typing 'python' at the prompt.
      > >
      > > I also observed something similar on Linux.
      > >
      > > Any ideas what would cause *intermittant* slow startup?[/color]
      >
      > Caching? Is it a long time between invocations that it takes a long
      > time to start up?[/color]

      It is quite intermittant without much of a pattern I can see. One
      thing that is definitely true is that if I start up python several
      times in a row one right after the other, some can be slow and some
      fast. I just observed it start fast twice, then start slow. I don't
      remember if it ever does the other way around but I think it does.

      -Mike

      Comment

      • simo

        #4
        Re: Intermittant slow startup

        I've noticed that on Windows a lot, but not on Linux or Solaris.

        Comment

        • Andrew MacIntyre

          #5
          Re: Intermittant slow startup

          On Tue, 5 Apr 2004, Michael Mossey wrote:
          [color=blue]
          > Erik Max Francis <max@alcyone.co m> wrote in message news:<4071A86D. 97CA6CAE@alcyon e.com>...[color=green]
          > > Michael Mossey wrote:
          > >[color=darkred]
          > > > Runnng python 2.2 on HP-UX, I get intermittant slow startup.
          > > > Sometimes python starts up in a small fraction of a second, and
          > > > sometimes takes 3-5 seconds. This applies to any script I run, or
          > > > just typing 'python' at the prompt.
          > > >
          > > > I also observed something similar on Linux.
          > > >
          > > > Any ideas what would cause *intermittant* slow startup?[/color]
          > >
          > > Caching? Is it a long time between invocations that it takes a long
          > > time to start up?[/color]
          >
          > It is quite intermittant without much of a pattern I can see. One
          > thing that is definitely true is that if I start up python several
          > times in a row one right after the other, some can be slow and some
          > fast. I just observed it start fast twice, then start slow. I don't
          > remember if it ever does the other way around but I think it does.[/color]

          is any resource coming from an NFS mount? or other network source?

          --
          Andrew I MacIntyre "These thoughts are mine alone..."
          E-mail: andymac@bullsey e.apana.org.au (pref) | Snail: PO Box 370
          andymac@pcug.or g.au (alt) | Belconnen ACT 2616
          Web: http://www.andymac.org/ | Australia

          Comment

          • Michael Mossey

            #6
            Re: Intermittant slow startup

            Andrew MacIntyre <andymac@bullse ye.apana.org.au > wrote in message news:<mailman.3 91.1081257204.2 0120.python-list@python.org >...[color=blue]
            > On Tue, 5 Apr 2004, Michael Mossey wrote:
            >[color=green]
            > > Erik Max Francis <max@alcyone.co m> wrote in message news:<4071A86D. 97CA6CAE@alcyon e.com>...[color=darkred]
            > > > Michael Mossey wrote:
            > > >
            > > > > Runnng python 2.2 on HP-UX, I get intermittant slow startup.
            > > > > Sometimes python starts up in a small fraction of a second, and
            > > > > sometimes takes 3-5 seconds. This applies to any script I run, or
            > > > > just typing 'python' at the prompt.
            > > > >
            > > > > I also observed something similar on Linux.
            > > > >
            > > > > Any ideas what would cause *intermittant* slow startup?
            > > >
            > > > Caching? Is it a long time between invocations that it takes a long
            > > > time to start up?[/color]
            > >
            > > It is quite intermittant without much of a pattern I can see. One
            > > thing that is definitely true is that if I start up python several
            > > times in a row one right after the other, some can be slow and some
            > > fast. I just observed it start fast twice, then start slow. I don't
            > > remember if it ever does the other way around but I think it does.[/color]
            >
            > is any resource coming from an NFS mount? or other network source?[/color]

            I double-checked that and asked the sysadmin to check if the python
            build was using any network source. I do have AFS and NFS drives
            mounted on this machine, but I'm not reading any python code from them
            as nearly as I can tell. PYTHONPATH points only to local disk.

            -Mike

            Comment

            Working...