Hi All,
I have two mac boxes... on my G5 machine, all pythons
are slow to start:
time python2.4 -c "pass"
real 0m2.726s
time /usr/bin/python -c "pass"
real 0m2.909s
user 0m0.023s
sys 0m2.719s
But on my G4 laptop I get a real time of 0.09-0.15s
which is much more acceptable, but this is a slower
machine. I've been looking at ktrace to see if I can
figure out what is causing this. Can anyone give a
recommendation on how to get a little more info out of
the trace? I am guessing that it is some particular
package causing a problem.
Thanks,
-kurt
unset PYTHONPATH
type -a python
python is /sw/bin/python
python is /usr/bin/python
python
Python 2.4.3 (#1, Sep 22 2006, 08:13:21)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on
darwin
time python -c "pass"
real 0m2.656s
user 0m0.013s
sys 0m2.644s
ktrace python -c "pass"
-rw------- 1 schwehr schwehr 244285 Dec 19 08:36
ktrace.out
kdump > ktrace.out.txt
-rw------- 1 schwehr schwehr 244285 Dec 19 08:36
ktrace.out
-rw-r--r-- 1 schwehr schwehr 321138 Dec 19 08:37
ktrace.out.txt
grep python2.4 ktrace.out.txt | sort -n -k 3 | tail
27261 python2.4 0.092058 RET getdirentries
4088/0xff8
27261 python2.4 0.092059 RET getdirentries
4088/0xff8
27261 python2.4 0.092241 RET getdirentries
4088/0xff8
27261 python2.4 0.092263 RET getdirentries
4088/0xff8
27261 python2.4 0.092280 RET getdirentries
4080/0xff0
27261 python2.4 0.092341 RET getdirentries
4080/0xff0
27261 python2.4 0.092342 RET getdirentries
4080/0xff0
27261 python2.4 0.092668 RET getdirentries
4080/0xff0
27261 python2.4 0.110607 RET getdirentries
4096/0x1000
27261 python2.4 0.141015 RET getdirentries
4088/0xff8
kdump -R > ktrace.out.txt
grep python2.4 ktrace.out.txt | sort -n -k 3 | tail
27261 python2.4 0.092058 RET getdirentries
4088/0xff8
27261 python2.4 0.092059 RET getdirentries
4088/0xff8
27261 python2.4 0.092241 RET getdirentries
4088/0xff8
27261 python2.4 0.092263 RET getdirentries
4088/0xff8
27261 python2.4 0.092280 RET getdirentries
4080/0xff0
27261 python2.4 0.092341 RET getdirentries
4080/0xff0
27261 python2.4 0.092342 RET getdirentries
4080/0xff0
27261 python2.4 0.092668 RET getdirentries
4080/0xff0
27261 python2.4 0.110607 RET getdirentries
4096/0x1000
27261 python2.4 0.141015 RET getdirentries
4088/0xff8
27261 python2.4 0.000012 NAMI
"/sw/lib/python2.4/site.py"
27261 python2.4 0.000019 RET open 4
27261 python2.4 0.000016 CALL
stat(0xbfffca98,0xbfffc8b4)
27261 python2.4 0.000010 NAMI "/sw/lib/python2.4"
27261 python2.4 0.000013 RET stat 0
27261 python2.4 0.000012 CALL
open(0xbfffca98,0x4,0x11)
27261 python2.4 0.000012 NAMI "/sw/lib/python2.4"
27261 python2.4 0.000012 RET open 6
27261 python2.4 0.000012 CALL fstat(0x6,0xbfffc8b4)
27261 python2.4 0.000012 RET fstat 0
27261 python2.4 0.000012 CALL fcntl(0x6,0x2,0x1)
27261 python2.4 0.000010 RET fcntl 0
27261 python2.4 0.000013 CALL
__sysctl(0xbfffc82c,0x2,0xa000fc60,0xbfffc828,0,0)
27261 python2.4 0.000048 RET __sysctl 0
27261 python2.4 0.000012 CALL
fstatfs(0x6,0xbfffc914)
27261 python2.4 0.000017 RET fstatfs 0
27261 python2.4 0.000016 CALL
getdirentries(0x6,0x180ac00,0x1000,0x600ef4)
27261 python2.4 0.141015 RET getdirentries
4088/0xff8
python -v -c "pass"
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /sw/lib/python2.4/site.pyc matches
/sw/lib/python2.4/site.py
import site # precompiled from
/sw/lib/python2.4/site.pyc
# /sw/lib/python2.4/os.pyc matches
/sw/lib/python2.4/os.py
import os # precompiled from /sw/lib/python2.4/os.pyc
import posix # builtin
# /sw/lib/python2.4/posixpath.pyc matches
/sw/lib/python2.4/posixpath.py
import posixpath # precompiled from
/sw/lib/python2.4/posixpath.pyc
# /sw/lib/python2.4/stat.pyc matches
/sw/lib/python2.4/stat.py
import stat # precompiled from
/sw/lib/python2.4/stat.pyc
# /sw/lib/python2.4/UserDict.pyc matches
/sw/lib/python2.4/UserDict.py
import UserDict # precompiled from
/sw/lib/python2.4/UserDict.pyc
# /sw/lib/python2.4/copy_reg.pyc matches
/sw/lib/python2.4/copy_reg.py
import copy_reg # precompiled from
/sw/lib/python2.4/copy_reg.pyc
# /sw/lib/python2.4/types.pyc matches
/sw/lib/python2.4/types.py
import types # precompiled from
/sw/lib/python2.4/types.pyc
# /sw/lib/python2.4/warnings.pyc matches
/sw/lib/python2.4/warnings.py
import warnings # precompiled from
/sw/lib/python2.4/warnings.pyc
# /sw/lib/python2.4/linecache.pyc matches
/sw/lib/python2.4/linecache.py
import linecache # precompiled from
/sw/lib/python2.4/linecache.pyc
import encodings # directory
/sw/lib/python2.4/encodings
# /sw/lib/python2.4/encodings/__init__.pyc matches
/sw/lib/python2.4/encodings/__init__.py
import encodings # precompiled from
/sw/lib/python2.4/encodings/__init__.pyc
# /sw/lib/python2.4/codecs.pyc matches
/sw/lib/python2.4/codecs.py
import codecs # precompiled from
/sw/lib/python2.4/codecs.pyc
import _codecs # builtin
# /sw/lib/python2.4/encodings/aliases.pyc matches
/sw/lib/python2.4/encodings/aliases.py
import encodings.aliases # precompiled from
/sw/lib/python2.4/encodings/aliases.pyc
# /sw/lib/python2.4/encodings/ascii.pyc matches
/sw/lib/python2.4/encodings/ascii.py
import encodings.ascii # precompiled from
/sw/lib/python2.4/encodings/ascii.pyc
python2.4 /sw/lib/python2.4/site.py
sys.path = [
'/sw/lib/python2.4',
'/sw/lib/python24.zip',
'/sw/lib/python2.4/plat-darwin',
'/sw/lib/python2.4/plat-mac',
'/sw/lib/python2.4/plat-mac/lib-scriptpackages',
'/sw/lib/python2.4/lib-tk',
'/sw/lib/python2.4/lib-dynload',
'/sw/lib/python2.4/site-packages',
'/sw/lib/python2.4/site-packages/Numeric',
'/sw/lib/python2.4/site-packages/PIL',
'/sw/lib/python2.4/site-packages/PyObjC',
'/sw/lib/python2.4/site-packages/kodos',
'/sw/lib/python2.4/site-packages/gtk-2.0',
]
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel