New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recursive multithreading causes massive amounts of context switches #9371
Comments
From thkarcher@gmx.deCreated by tk@wh4f.deHi folks, I got a performance problem with recursive multithreaded scripts on The following example script performs a simple multithreaded version of The results are fine and well sorted, but this bug report is about _how_ This is my sample script:#!/usr/bin/perl use strict; my @sortdata:shared; open (my $SORTFILE, '<', $ARGV[0]) or die ("File ".$ARGV[0]." could not my $size = @sortdata; mergesort_string (0, $size, $mergesortdepth); sub mergesort_string { if ($size < 2) { # this is the critical part: $threaddepth decides wether we continue for (my $i = $begin; $i < $half; ++$i) { my $i = $half;
|
From @rgs2008/6/10 via RT Thomas Karcher <perlbug-followup@perl.org>:
I think that's a bit expected. Perl threads don't share anything by |
The RT System itself - Status changed from 'new' to 'open' |
From thkarcher@gmx.deHi Rafael, just to add some information: I didn't mean just during thread creation Thomas |
From thkarcher@gmx.deHi Rafael, just to add some information: I didn't mean just during thread creation Regards, |
From thkarcher@gmx.deHi, as follow-up: The massive amounts of context switches is probably caused See also: Decide for yourself if this is considered a bug or just an intended but Thanks, |
Migrated from rt.perl.org#55560 (status was 'open')
Searchable as RT55560$
The text was updated successfully, but these errors were encountered: