Return-Path: X-Original-To: apmail-incubator-lucy-user-archive@www.apache.org Delivered-To: apmail-incubator-lucy-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1DF7B944A for ; Tue, 27 Sep 2011 12:24:32 +0000 (UTC) Received: (qmail 37334 invoked by uid 500); 27 Sep 2011 12:24:32 -0000 Delivered-To: apmail-incubator-lucy-user-archive@incubator.apache.org Received: (qmail 37276 invoked by uid 500); 27 Sep 2011 12:24:31 -0000 Mailing-List: contact lucy-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucy-user@incubator.apache.org Delivered-To: mailing list lucy-user@incubator.apache.org Received: (qmail 37265 invoked by uid 99); 27 Sep 2011 12:24:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 12:24:31 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gorankent@gmail.com designates 209.85.220.175 as permitted sender) Received: from [209.85.220.175] (HELO mail-vx0-f175.google.com) (209.85.220.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 12:24:24 +0000 Received: by vcbfl17 with SMTP id fl17so4000638vcb.6 for ; Tue, 27 Sep 2011 05:24:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=LzKVwrY5rQfNqkE5VrPS/OFlno2CJClcl8QQ894gQBI=; b=nw2QfCj+N6eMPFqsvfuRywt/7bD+4q+wnRDTbi4svrmMxGBbI9fNsXVqxIH4t9Wqr2 kmjwN62+3o205XqwuaVJ5elqUl/ekD8BX2AxscjSDoBV/jFQ1REeNE23vvwqZsPIub6B 2vEC+30ENIqZxltErd1CdmFtDxpNiFweyGbYI= MIME-Version: 1.0 Received: by 10.52.74.100 with SMTP id s4mr7308866vdv.376.1317126244021; Tue, 27 Sep 2011 05:24:04 -0700 (PDT) Received: by 10.52.112.74 with HTTP; Tue, 27 Sep 2011 05:24:04 -0700 (PDT) Date: Tue, 27 Sep 2011 14:24:04 +0200 Message-ID: From: goran kent To: lucy-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Subject: [lucy-user] Perl modules used on different machines (very slow search on one, but not other) Hi, I've noticed a difference (and a massive difference in performance) in what appears to be the Perl modules being used on two different machines: Actual search time (on the same small test index) is nice and respectable on both machines: 0.05s: But, total run time time is different and it seems to be related to Perl modules: machineA (slow) ~% dprofpp Total Elapsed Time = 1.751774 Seconds User+System Time = 1.671774 Seconds Exclusive Times %Time ExclSec CumulS #Calls sec/call Csec/c Name 18.3 0.306 0.512 5162 0.0001 0.0001 Text::Balanced::_match_variable 13.9 0.233 0.275 4280 0.0001 0.0001 Text::Balanced::_match_quotelike 11.4 0.191 0.962 20 0.0095 0.0481 Switch::filter_blocks 6.52 0.109 0.109 10596 0.0000 0.0000 Text::Balanced::_failmsg 6.40 0.107 0.307 2408 0.0000 0.0001 Text::Balanced::_match_codeblock 4.19 0.070 1.668 16 0.0044 0.1043 main::BEGIN .... machineB (fast) ~% dprofpp Total Elapsed Time = 0.369657 Seconds User+System Time = 0.299657 Seconds Exclusive Times %Time ExclSec CumulS #Calls sec/call Csec/c Name 13.3 0.040 0.096 19 0.0021 0.0050 MyModdule0::BEGIN 6.67 0.020 0.020 1 0.0200 0.0200 utf8::AUTOLOAD 6.67 0.020 0.020 9 0.0022 0.0022 MyModule::BEGIN 6.67 0.020 0.088 17 0.0012 0.0052 MyModule2::BEGIN 6.67 0.020 0.213 16 0.0012 0.0133 main::BEGIN 3.34 0.010 0.010 1 0.0100 0.0100 Lucy::Index::Snapshot::read_file 3.34 0.010 0.010 1 0.0100 0.0100 Lucy::Search::PolySearcher::new 3.34 0.010 0.010 3 0.0033 0.0033 utf8::SWASHNEW ... It looks like it's got something to do with Lucy deciding to use the Perl module Text::* at configure time, but I may be wrong. What should I look for to get an idea why this is happening? More information: perl Build test on fast machine: all pass. On slow machine, the following fails: t/core/051-fs_file_handle.t .......... Failed 42/46 subtests t/core/103-fs_folder.t ............... 1/108 Can't clean up directory _fstest S_tear_down at /home/gk/projects/lucy/lucy/perl/../core/Lucy/Test/Store/TestFSFolder.c line 67 at t/core/103-fs_folder.t line 20 t/core/103-fs_folder.t ............... Dubious, test returned 39 (wstat 9984, 0x2700) Failed 106/108 subtests Lucy: svn trunk (Revision: 1167124) perl: 5.8.8 I had to install a few perl modules via CPAN to get the required versions (I'm using CentOS): Module::Build Devel::PPPort Scalar::Util (this was required instead of the builtin since the XS version was required, etc) Thanks