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

gregor herrmann gregoa at debian.org
Sun Oct 2 21:12:20 UTC 2016


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20161002/b0f045c4/attachment.sig>


More information about the Perl-maintainers mailing list