By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,543 Members | 1,316 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,543 IT Pros & Developers. It's quick & easy.

Intermittant slow startup

P: n/a
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
Jul 18 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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?

--
__ Erik Max Francis && ma*@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
Jul 18 '05 #2

P: n/a
Erik Max Francis <ma*@alcyone.com> wrote in message news:<40***************@alcyone.com>...
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?


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
Jul 18 '05 #3

P: n/a
I've noticed that on Windows a lot, but not on Linux or Solaris.
Jul 18 '05 #4

P: n/a
On Tue, 5 Apr 2004, Michael Mossey wrote:
Erik Max Francis <ma*@alcyone.com> wrote in message news:<40***************@alcyone.com>...
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?


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.


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

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

Jul 18 '05 #5

P: n/a
Andrew MacIntyre <an*****@bullseye.apana.org.au> wrote in message news:<ma**************************************@pyt hon.org>...
On Tue, 5 Apr 2004, Michael Mossey wrote:
Erik Max Francis <ma*@alcyone.com> wrote in message news:<40***************@alcyone.com>...
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?


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.


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


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
Jul 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.