On Tue, Jan 18, 2005 at 09:46:07AM +0100, Oliver Keeble wrote:
> Hi,
>
> New BDII and PBS info provider rpms have been made available -
>
> lcg-info-dynamic-pbs-1.0.3-1
>
> They incorporate the following bug fixes
[snip]
> #6216 - Free CPU count incorrect
>
> http://grid-deployment.web.cern.ch/grid-deployment/RpmDir_i386-sl3/external/lcg-info-dynamic-pbs-1.0.3-1_sl3.noarch.rpm
>
> for SL3
Hello Oliver,
Are you sure that the SL3 rpm fixes bug #6216? I just downloaded it and
as far as I can tell the offending code is exactly as it used to be:
$FreeCPU=0;
while(<QSTAT>) {
if (/state = free/){
$state="free";
}elsif(/state =/){
undef $state;
}
if(/np =/){
$num_pro = $_;
$num_pro =~s/^[^=]*=//;
chomp $num_pro;
$TotalCPU=$TotalCPU + $num_pro;
if ($state){
$FreeCPU=$FreeCPU + $num_pro;
}
}
}
(The above code assumes that if PBS reports a node's state as 'free',
all CPUs of this node are Free, which is not the case...)
Cheers.
--
Kyriakos Ginis
|