ts-hosts-allocate-Executive: improve debugging slightly
PATCH 1/1 ts-hosts-allocate-Executive: improve debugging slightly
I spotted a logfile where an allocation had failed (later worked OK) with $allocatable=0 here. Provide more info next time.
Signed-off-by Ian Jackson <[email protected]>
--- ts-hosts-allocate-Executive | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
ts-hosts-allocate-Executive +2 -1
@@ -644,7 +644,8 @@ sub actual_allocation ($) { my $allocatable= $cand->{owntaskid} == $magictaskid{allocatable}; my $dbg= "$hid->{Ident} $sel->{Reso}"; - printf DEBUG "%s ALLOC PLAIN %d\n", $dbg, $allocatable; + printf DEBUG "%s ALLOC PLAIN %d (%d, %d)\n", $dbg, $allocatable, + $cand->{owntaskid}, $magictaskid{allocatable}; my $shared; my $shrestype= 'share-'.$sel->{restype};
Signature · 1 line
1.7.10.4
Quoted 4 lines · Ian Jackson
I spotted a logfile where an allocation had failed (later worked OK) with $allocatable=0 here. Provide more info next time.
Signed-off-by Ian Jackson <[email protected]>
FWIW Acked-by: Ian Campbell <[email protected]>
Quoted 18 lines
--- ts-hosts-allocate-Executive | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)ts-hosts-allocate-Executive +2
-1@@ -644,7 +644,8 @@ sub actual_allocation ($) { my $allocatable= $cand->{owntaskid} == $magictaskid{allocatable}; my $dbg= "$hid->{Ident} $sel->{Reso}"; - printf DEBUG "%s ALLOC PLAIN %d\n", $dbg, $allocatable; + printf DEBUG "%s ALLOC PLAIN %d (%d, %d)\n", $dbg, $allocatable, + $cand->{owntaskid}, $magictaskid{allocatable}; my $shared; my $shrestype= 'share-'.$sel->{restype};