Sorry, it's either line 513/514 - the one that gets the kstat
"swapresv_zone" or 504/504, the one that gets the kstat
"lockedmem_zone".

I need to clean out the "deadwood" in v1.5, too.

On Thu, Jun 11, 2009 at 5:41 PM, Phil Freund<no-re...@opensolaris.org> wrote:
> Jeff,
>
> Those lines were already commented out. It looks like the problem is in these 
> lines:
>
> 500  # Get amount and cap of memory locked by processes in each zone.
>   501  $kstat->update();
>   502  my $zh = $kstat->{caps};
>   503  foreach my $z (keys(%$zh)) {
>   504    ($lkd_use[$z], $lkd_cap[$z]) = @{$kstat->{caps}{$z}
>   505                                   {"lockedmem_zone_".$z}}{qw(usage 
> value)};
>   506  #printf ("kstat: lkd_use[$z
>   507    $lkd_use_sum += $lkd_use[$z];
>   508  # $lkd_cap[$z] = $lkd_cap[$z]/1024;
>   509  # printf ("$z:lkd:%d MB / %d %s.\n", $lkd_use[$z]/1024/1024,
>   510  #    $lkd_cap[$z]>(1024^3) ? $lkd_cap[$z]/1024/1024/1024 : 
> $lkd_cap[$z]/1024,
>   511  #    $lkd_cap[$z]>(1024^3) ? "TB" : "MB");
>   512
>   513    ($vm_use[$z], $vm_cap[$z]) = @{$kstat->{caps}{$z}
>   514                                 {"swapresv_zone_".$z}}{qw(usage value)};
>   515    $vm_use_sum += $vm_use[$z];


-- 
--JeffV
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to