Re: [Catalyst] Slow Makefile.PL
On 23 Mar 2010, at 21:52, Wade Stuart wrote: The other option is to wait (up to 2 minutes) for RAM to write to disk and the sleep light to slow blink before moving your lappy; I am just too impatient. Or just shell out for the SSD option. :) Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Slow Makefile.PL
On 23 Mar 2010, at 21:52, Wade Stuart wrote: The other option is to wait (up to 2 minutes) for RAM to write to disk and the sleep light to slow blink before moving your lappy; I am just too impatient. See also http://www.jinx.de/SmartSleep.html ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Slow Makefile.PL
- Original Message From: Ovid publiustemp-catal...@yahoo.com Yeah, I'm using FileVault. I've had a couple of issues with it already. I think it's time for me to rethink things. I've moved my project outside of the FileVault protected directory and the Makefile.PL is almost twice as fast now. Cheers, Ovid-- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog - http://blogs.perl.org/users/ovid/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6 ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Slow Makefile.PL
On Tue, Mar 23, 2010 at 3:37 AM, Ovid publiustemp-catal...@yahoo.comwrote: - Original Message From: Ovid publiustemp-catal...@yahoo.com Yeah, I'm using FileVault. I've had a couple of issues with it already. I think it's time for me to rethink things. I've moved my project outside of the FileVault protected directory and the Makefile.PL is almost twice as fast now. Beyond filevalt, macbook(pro)s also have a pretty bad track record of trashing drives (after the intel changeover mac sleep writes RAM to disk before the drive spins down -- and before many users put their laptops in bags and start walking). This trashed drive can present as random long io blocking for weeks or months before the drive fails. http://discussions.apple.com/thread.jspa?threadID=960977start=0tstart=0 is an old thread about the issue. http://www.macworld.com/article/53471/2006/10/sleepmode.html is the fix I run my macs with -- one caveat is that if the computer runs completely out of battery it in effect does a hard boot. The other option is to wait (up to 2 minutes) for RAM to write to disk and the sleep light to slow blink before moving your lappy; I am just too impatient. -Wade ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Slow Makefile.PL
Hi all, I'm not sure what I did, but recently, my perl Makefile.PL run time dropped from 4 minutes down to about 40 seconds. The latter still seems rather slow. A generic Makefile.PL on my box (generated with catalyst.pl MyApp) takes about 1.5 seconds to run. The slowdown appears to be when the Makefile.PL hits the catalyst; line. Devel::NYTProf shows it's I/O slowing things down (sorry for the rubbish formatting): Top 15 Subroutines — ordered by exclusive time Calls P F Exclusive Time Inclusive Time Subroutine 2556 1 2 20.0s 20.0s File::Copy::CORE:sysread (opcode) 1274 1 2 5.19s 5.19s File::Copy::CORE:syswrite (opcode) 2636 3 2 1.87s 1.87s File::Copy::CORE:close (opcode) 142 1 2 796ms 796ms Cwd::CORE:backtick (opcode) 2708 2 2 781ms 781ms File::Copy::CORE:open (opcode) 36 1 1 749ms 5.78s Module::AutoInstall::_load 2844 3 2 463ms 463ms File::Copy::Recursive::CORE:chmod (opcode) 26 2 2 303ms 303ms Module::Install::Admin::CORE:close (opcode) 1 1 1 208ms 214ms MooseX::Types::be...@11 1354 1 1 205ms 28.1s File::Copy::copy 14 1 2 181ms 181ms DynaLoader::dl_load_file (xsub) 72 2 1 172ms 236ms Module::Install::__ANON__[inc/Module/Install.pm:324] 1 1 1 155ms 254ms Module::Install::Admin::Metadata::dump_meta 28 1 1 155ms 2.52s Class::MOP::__ANON__[Class/MOP.pm:103] 5706 6 2 153ms 153ms File::Copy::Recursive::CORE:stat (opcode) Does this look familiar to anyone? You can see right away that File::Copy::CORE::sysread is taking 20 seconds. Is a total runtime of 40 seconds a *normal* response time on running Makefile.PL? This is a relatively new project and I'm often rebuilding from scratch. That extra 40 seconds seems like a lot. This is perl 5.10.1 (OS X Snow Leopard) and there are currently only 36 .pm files in the lib/ directory. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog - http://blogs.perl.org/users/ovid/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6 ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Slow Makefile.PL
Wow, is that on an NFS-mounted partition or something? Something is very wrong. Cheers, Peter On Mar 22, 2010 7:24 PM, Ovid publiustemp-catal...@yahoo.com wrote: Hi all, I'm not sure what I did, but recently, my perl Makefile.PL run time dropped from 4 minutes down to about 40 seconds. The latter still seems rather slow. A generic Makefile.PL on my box (generated with catalyst.plMyApp) takes about 1.5 seconds to run. The slowdown appears to be when the Makefile.PL hits the catalyst; line. Devel::NYTProf shows it's I/O slowing things down (sorry for the rubbish formatting): Top 15 Subroutines — ordered by exclusive time Calls P F Exclusive Time Inclusive Time Subroutine 2556 1 2 20.0s 20.0s File::Copy::CORE:sysread (opcode) 1274 1 2 5.19s 5.19s File::Copy::CORE:syswrite (opcode) 2636 3 2 1.87s 1.87s File::Copy::CORE:close (opcode) 142 1 2 796ms 796ms Cwd::CORE:backtick (opcode) 2708 2 2 781ms 781ms File::Copy::CORE:open (opcode) 36 1 1 749ms 5.78s Module::AutoInstall::_load 2844 3 2 463ms 463ms File::Copy::Recursive::CORE:chmod (opcode) 26 2 2 303ms 303ms Module::Install::Admin::CORE:close (opcode) 1 1 1 208ms 214ms MooseX::Types::be...@11 1354 1 1 205ms 28.1s File::Copy::copy 14 1 2 181ms 181ms DynaLoader::dl_load_file (xsub) 72 2 1 172ms 236ms Module::Install::__ANON__[inc/Module/Install.pm:324] 1 1 1 155ms 254ms Module::Install::Admin::Metadata::dump_meta 28 1 1 155ms 2.52s Class::MOP::__ANON__[Class/MOP.pm:103] 5706 6 2 153ms 153ms File::Copy::Recursive::CORE:stat (opcode) Does this look familiar to anyone? You can see right away that File::Copy::CORE::sysread is taking 20 seconds. Is a total runtime of 40 seconds a *normal* response time on running Makefile.PL? This is a relatively new project and I'm often rebuilding from scratch. That extra 40 seconds seems like a lot. This is perl 5.10.1 (OS X Snow Leopard) and there are currently only 36 .pm files in the lib/ directory. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog - http://blogs.perl.org/users/ovid/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6 ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Slow Makefile.PL
From: Peter Edwards pe...@dragonstaff.co.uk To: The elegant MVC web framework catalyst@lists.scsys.co.uk Sent: Mon, 22 March, 2010 19:30:13 Subject: Re: [Catalyst] Slow Makefile.PL Wow, is that on an NFS-mounted partition or something? Something is very wrong. Nope. It's on my Macbook Pro's hard drive. I've been meaning to dig into it more, but I was hoping someone might magically *know* what this issue is and save me the trouble :) Cheers, Ovid-- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog - http://blogs.perl.org/users/ovid/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6 ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Slow Makefile.PL
On Mon, Mar 22, 2010 at 3:20 PM, Ovid publiustemp-catal...@yahoo.com wrote: Does this look familiar to anyone? I don't use the Makefile.PL all that often so I hadn't noticed, but my 10.6.2 box reports similar results: Total Elapsed Time = 50.86615 Seconds User+System Time = 48.08246 Seconds Exclusive Times %Time ExclSec CumulS #Calls sec/call Csec/c Name 93.5 44.96 44.967441 0.1020 0.1020 File::Copy::copy 2.55 1.228 1.229 13 0.0944 0.0945 Module::Install::Admin::copy 1.76 0.846 45.744 1042 0.0008 0.0439 File::Copy::Recursive::__ANON__ [...] If I move this out of my home directory and into /tmp it's as fast as you'd expect. My guess is that FileVault is slowing things down. k. -- kevin montuori ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Slow Makefile.PL
- Original Message From: kevin montuori montu...@gmail.com I don't use the Makefile.PL all that often so I hadn't noticed, but my 10.6.2 box reports similar results: Total Elapsed Time = 50.86615 Seconds If I move this out of my home directory and into /tmp it's as fast as you'd expect. My guess is that FileVault is slowing things down. Yeah, I'm using FileVault. I've had a couple of issues with it already. I think it's time for me to rethink things. Cheers for that! Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog - http://blogs.perl.org/users/ovid/ Twitter - http://twitter.com/OvidPerl Official Perl 6 Wiki - http://www.perlfoundation.org/perl6 ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/