How to check the disk and network I/O throughput of non-global zones?
On Solaris 11 you can use: "zonestat -r network 10" to view network utilization. I do now know how to do this on Solaris 10.
Disk I/O depends on how you have configured disk for non-global zones. If each zone is on separate LUN, then it is quite easy to check disk statistics with "iostat -xn 10". If zones are (for example) on single LUN, then I do not know how to view statistics per zone.
Additionally, there is fsstat that can be used to monitor logical I/O operations. Note that logical I/O reported by fsstat will not correspond directly to physical I/O reported by iostat. By comparing the two, you can see the effectiveness of caching.
Yes, I am also trying to check the network I/O in non-global zone Solaris 11 and below is the result:
Running in non-global zone:
# zonestat -r network 10 1
Collecting data for first interval...
Interval: 1, Duration: 0:00:10
Not giving any result.... please suggest
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
net0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.0.7.32 netmask ffff8000 broadcast 10.0.127.255
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
net0: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 2
root@solaris:~# zonecfg -z testzone info
bootargs: -m verbose