Re: [zones-discuss] zonestat 1.4.1 problem
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 Freundno-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
Re: [zones-discuss] zonestat 1.4.1 problem
On Wed, Jun 10, 2009 at 4:03 PM, Phil Freundno-re...@opensolaris.org wrote: I have a couple of servers that are still running U1 but I'd still like to use zonestat to get as much info as I can. I get the following output when I run zonestat 1.4.1 with debug turned on: root zonestat -l -N /usr/sbin/prtconf /bin/pagesize /bin/echo 'pages_pp_maximum/D;segspt_minfree/D' | mdb -k /usr/sbin/zoneadm list -v /usr/sbin/psrinfo /usr/bin/svcs -H pools svcs: Pattern 'pools' doesn't match any instances /bin/ps -eo zone,pset,pid,comm | grep ' [z]*sched' /usr/bin/ipcs -mbZ Attempt to access disallowed key 'caps' in a restricted hash at zonestat line 502. root Any ideas on how to fix this? Temporarily, you can fix this by commenting out these lines in the zonestat script: $statname = sprintf swapresv_zone_%d, $zoneid{$z}; $vm_use[$zoneid{$z}] = $kstat-{caps}{$zoneid{$z}}{$statname}{usage}; $vm_use_sum += $vm_use[$zoneid{$z}]; $vm_cap[$zoneid{$z}] = $kstat-{caps}{$zoneid{$z}}{$statname}{value}; That kstat wasn't added until the swap cap was added, in S10 5/08. Solaris releases older than that will all have that problem. Sorry about that. This bug is on my list to fix for v1.5 of zonestat. --JeffV ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] zonestat 1.4.1 problem
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]; Thanks, Phil -- This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
[zones-discuss] zonestat 1.4.1 problem
I have a couple of servers that are still running U1 but I'd still like to use zonestat to get as much info as I can. I get the following output when I run zonestat 1.4.1 with debug turned on: root zonestat -l -N /usr/sbin/prtconf /bin/pagesize /bin/echo 'pages_pp_maximum/D;segspt_minfree/D' | mdb -k /usr/sbin/zoneadm list -v /usr/sbin/psrinfo /usr/bin/svcs -H pools svcs: Pattern 'pools' doesn't match any instances /bin/ps -eo zone,pset,pid,comm | grep ' [z]*sched' /usr/bin/ipcs -mbZ Attempt to access disallowed key 'caps' in a restricted hash at zonestat line 502. root Any ideas on how to fix this? Thanks, Phil -- This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org