Skip Menu |

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id: 122745
Status: resolved
Priority: 0/
Queue: Perl-Dist-Strawberry

People
Owner: Nobody in particular
Requestors: eiii [...] twc.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Slow Windows 10 command interpreter closing
Date: Tue, 8 Aug 2017 03:27:29 -0700
To: <bug-Perl-Dist-Strawberry [...] rt.cpan.org>
From: "Lance Gropper" <eiii [...] twc.com>
Hello Developer: I’m running Strawberry Perl 64-bit 5.24.0.1, under Windows 10 Pro Creators Edition build 16257RS3, and am seeing an issue which resembles a memory leak, but I did some more investigating, and here’s what’s happening: My PERL script goes through the files in a directory, looking for files with specific names, and when it finds them, calls the system move command to move those files one-by-one, into a sub-directory called “a”. There are approximately 30,000 files in the source directory. As this is happening, the available RAM in the system starts decreasing rapidly, and there’s a lot of activity in terms of virtual memory. I opened the resource viewer, and saw several thousand occurrences of cmd.exe – each one taking approximately 3.5MB. When the program finishes, they disappear one-by-one, about one disappearing per second. Similarly, if I Ctrl-C (break) the program, the start disappearing at a slow rate. I think what is going on is Strawberry is creating processes faster than the system can close them, while at the same time, it is either not waiting for the processes to close or the system is closing the processes unusually slowly. Lance
It looks like an issue in perl core. You'd better discuss this in p5p mailing list - https://lists.perl.org/list/perl5-porters.html

On Tue Aug 08 06:28:58 2017, eiii@twc.com wrote:
Show quoted text
> Hello Developer:
>
> I’m running Strawberry Perl 64-bit 5.24.0.1, under Windows 10 Pro
> Creators Edition build 16257RS3, and am seeing an issue which
> resembles a memory leak, but I did some more investigating, and here’s
> what’s happening:
>
> My PERL script goes through the files in a directory, looking for
> files with specific names, and when it finds them, calls the system
> move command to move those files one-by-one, into a sub-directory
> called “a”. There are approximately 30,000 files in the source
> directory. As this is happening, the available RAM in the system
> starts decreasing rapidly, and there’s a lot of activity in terms of
> virtual memory. I opened the resource viewer, and saw several thousand
> occurrences of cmd.exe – each one taking approximately 3.5MB. When the
> program finishes, they disappear one-by-one, about one disappearing
> per second. Similarly, if I Ctrl-C (break) the program, the start
> disappearing at a slow rate. I think what is going on is Strawberry is
> creating processes faster than the system can close them, while at the
> same time, it is either not waiting for the processes to close or the
> system is closing the processes unusually slowly.
>
> Lance