Transcript

How to Determine Current Zone Resources

>> Mick:  So let’s move on and have a look. How do we know what a kernel zone currently is using in terms of resources? There are a variety of ways. First of all, from the global zone we can do zonecfg -z the name of the zone and then export, and that will print on the screen the detailed configuration that is stored in the etc zones for the particular zone. Here we can see the amount of RAM, 4 gigs and the number of CPUs, 4. Very shortly we’re going to have a look at how that can be changed.

 

[pause]

 

We can also log into the zone.

 

[pause]

 

I’m just using the z login command. And as I’m running as root on my global zone, I get in without a password.

 

My zone is called woody, as you can see and I can use the normal commands such as psrinfo and I can see I’ve got four virtual CPUs assigned and I can do things like prtconf|gref Mem and I can see that I’ve got four gigabytes of RAM installed as well.

 

By the way, I’m also going to show you how to do networks in the zone where I can do dladm show-link and I can see that we currently have one network interface running. So very shortly I’m going to add another network interface to the zone and I’m going to make some changes to the memory and the CPUs as well.

 

[pause]

 

When zones are running, you can use the zone stat command to display information about zone resources, and you would do this within the global zone. And the example there on the left-hand side is running zone stat at an interval of every five seconds. I can show you quickly, if I exit from the zone, clear the screen and then run the zonestat 5. I’ll get some zone information coming out every five seconds.

 

There are other options to zonestat. For example, I can do zonestat -z and specify specific zone. Then that gives me a bit of a clue as to the resources that are currently being consumed.

Copyright SkillBuilders.com 2017

×
Free Online Registration Required

The tutorial session you want to view requires your registering with us.

It’s fast and easy, and totally FREE.

And best of all, once you are registered, you’ll also have access to all the other 100’s of FREE Video Tutorials we offer!

 

×