Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #771232

Bug#839600: perl: concatenating string instead of sprintf takes all computation power of server

From gregor herrmann <gregoa@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#839600: perl: concatenating string instead of sprintf takes all computation power of server
Date 2016-10-02 23:20 +0200
Message-ID <snWkV-3D0-11@gated-at.bofh.it> (permalink)
References <snShj-11m-31@gated-at.bofh.it> <snUVQ-2Gn-7@gated-at.bofh.it> <snVRT-3e4-7@gated-at.bofh.it> <snWbf-3zE-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Sun, 02 Oct 2016 23:59:12 +0300, Niko Tyni wrote:

> > > I see this on current sid/amd64 (Perl 5.24) too fwiw, and also in an
> > > amd64 chroot with Perl 5.22. I've no idea why it goes away for you on
> > > stretch. Can you confirm that? Are you only testing on i386 or on amd64
> > > as well?
> > I don't see this on sid (amd64):
> Sorry, should have said I see it with the 'sed -n '1,9000p'
> line uncommented.

Ah :)

Ok, then I get:

% for i in $(seq 1 100); time perl run_tests.pl
perl run_tests.pl  63.54s user 0.02s system 99% cpu 1:03.59 total
perl run_tests.pl  67.39s user 0.15s system 99% cpu 1:07.69 total
perl run_tests.pl  70.04s user 0.08s system 99% cpu 1:10.37 total
^C
 
> It seems to have to do with the size of the input file rather
> than its contents, but I'm not quite sure yet.

Weird indeed.
With "sed -n '1,9001p'" it's fast again; with "sed -n '1,8999p'" as
well?!

Cheers,
gregor

-- 
 .''`.  Homepage https://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer -  https://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Bruce Springsteen: Forever Young

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#839600: perl: concatenating string instead of sprintf takes all computation power of server Leszek Dubiel <leszek.dubiel@dubielvitrum.pl> - 2016-10-02 19:00 +0200
  Bug#839600: perl: concatenating string instead of sprintf takes all computation power of server Niko Tyni <ntyni@debian.org> - 2016-10-02 21:50 +0200
    Bug#839600: perl: concatenating string instead of sprintf takes all computation power of server gregor herrmann <gregoa@debian.org> - 2016-10-02 22:50 +0200
      Bug#839600: perl: concatenating string instead of sprintf takes all computation power of server Niko Tyni <ntyni@debian.org> - 2016-10-02 23:10 +0200
        Bug#839600: perl: concatenating string instead of sprintf takes all computation power of server gregor herrmann <gregoa@debian.org> - 2016-10-02 23:20 +0200
        Bug#839600: perl: concatenating string instead of sprintf takes all computation power of server Niko Tyni <ntyni@debian.org> - 2016-10-03 21:30 +0200
          Bug#839600: perl: concatenating string instead of sprintf takes all computation power of server Niko Tyni <ntyni@debian.org> - 2016-10-03 22:30 +0200
    Bug#839600: perl: concatenating string instead of sprintf takes all computation power of server Leszek Dubiel <leszek.dubiel@dubielvitrum.pl> - 2016-10-02 23:30 +0200

csiph-web