develooper Front page | perl.perl5.porters | Postings from June 2008

TODO of the week: installman cachegrind profile

From:
Martin Kutter
Date:
June 24, 2008 23:31
Subject:
TODO of the week: installman cachegrind profile
Message ID:
1214345084.8313.38.camel@cyclops
Hi,

I've just read through David Landgren's summary and remembered I set up
cachegrind some time ago for a similar task, so I rsynced bleadperl and
gave it a try.

installman took almost an hour running under cachegrind on my notebook
(Pentium M Dothan, Ubuntu 8.04). The raw data can be downloaded from 
http://www.fen-net.de/martin.kutter/perl/installman-blead.cachegrind

>From looking at kcachegrind, candidates for inclusion into pp_hot.c
might be:

S_regtry 
Perl_runops_standard (already with good cache hitrate)
Perl_leave_scope
Perl_hv_common
Perl_sv_setsv_flags
Perl_pp_padsv (already with fairly good cache hit rate)
S_reginclass
Perl_save_vptr
S_regrepeat
Perl_sv_upgrade
Perl_regexec_flags
Perl_pp_nextstate (already with fairly good cache hit rate)
Perl_pp_entersub
Perl_pp_helem

Things look a bit different if ordered by L1 cache miss, though most ops
appearing on top are leaders in both lists.

 ./perl -V
Summary of my perl5 (revision 5 version 11 subversion 0 patch 34080)
configuration:
  Platform:
    osname=linux, osvers=2.6.24-19-generic,
archname=i686-linux-thread-multi
    uname='linux cyclops 2.6.24-19-generic #1 smp wed jun 18 14:43:41
utc 2008 i686 gnulinux '
    config_args='-es -DDEBUG'
    hint=previous, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    ccversion='', gccversion='4.2.3 (Ubuntu 4.2.3-2ubuntu7)',
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.7.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.7'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib
-fstack-protector'


Characteristics of this binary (from libperl): 
  Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
USE_ITHREADS
                        USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API
  Locally applied patches:
	DEVEL
  Built under linux
  Compiled at Jun 23 2008 23:37:03
  @INC:
    /tmp/bleadperl/lib/5.11.0/i686-linux-thread-multi
    /tmp/bleadperl/lib/5.11.0
    /tmp/bleadperl/lib/site_perl/5.11.0/i686-linux-thread-multi
    /tmp/bleadperl/lib/site_perl/5.11.0
    .





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About