Resource Capping Help!


 
Thread Tools Search this Thread
Operating Systems Solaris Resource Capping Help!
# 1  
Old 09-12-2011
Resource Capping Help!

Hi guys.

Quick question for some hopefully ;-)

When using resource capping (for CPU in this case). If a container is restricted to use a single CPU/core, are the other containers intelligent enough to know that they have fewer CPU's available to them?

My question relates to a T2000 which is 8core. I want to restrict one zone to use only a single core while the other remain unrestricted, Would the other zone still think they've got 8core available to them though?

Ta
# 2  
Old 09-12-2011
Take a look at the dedicated-cpu property of the zonecfg tool: zonecfg(1M) (man pages section 1M: System Administration Commands)
# 3  
Old 09-12-2011
Quote:
Originally Posted by boneyard
When using resource capping (for CPU in this case). If a container is restricted to use a single CPU/core, are the other containers intelligent enough to know that they have fewer CPU's available to them?
No, they are intelligent enough to know they (potentially) still have all of the CPUs available. The other containers are not implicitly capped.
Quote:
My question relates to a T2000 which is 8core. I want to restrict one zone to use only a single core while the other remain unrestricted, Would the other zone still think they've got 8core available to them though?
Sure, they'll have the CPUs available (more precisely all zones will still share all of the CPUs).
By the way, if you want to cap the container to one core on a T2000, make sure you set ncpu to 8, not 1.
# 4  
Old 09-19-2011
thats great thanks.

i did wonder if the machine was capable of taking that core out of use as it were to other zones, but i guess not.

thanks guys
# 5  
Old 09-19-2011
Quote:
Originally Posted by boneyard
i did wonder if the machine was capable of taking that core out of use as it were to other zones, but i guess not.
The machine is capable to do it too, just use dedicated-cpu, as already suggested by bartus11, not capped-cpu.
# 6  
Old 09-27-2011
thanks guys....just me being stupid and not reading things correctly ;-)

ta
# 7  
Old 09-28-2011
pooladm is the best way to go. I had this excercise when I had to enforce Oracle licensing. Only latest versions of solaris 10 will allow dedicated cpu parameters to be used within the zone.

Therefore I tend to use pooladm / set up dedicated processor pools, align the zone to use them. This means that when in the zone, if you do a `mpstat` you will see on the number of dedicated cpus. If you use the zonecfg configuration method, `mpstat` will show all cpus from the GZ.

pooladm -c / see /etc/pooladm.conf

SBK
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Memory capping Solaris 11.3

I want to allocate RAM : 64GB (Dedicated allocation) Swap : 8GB Please assist and recommend the correct capping values capped-memory: physical: XXG Had allocated physical=64GB, Swap=8GB, and locaked 16GB and found my non-global zone were unable to use... (1 Reply)
Discussion started by: Shirishlnx
1 Replies

2. Solaris

Need to understand CPU capping in Zones

Hi All I am using below command to do zone capping #zonecfg -z zone1 zonecfg:zone1> zonecfg:zone1>add capped-cpu zonecfg:zone1>capped-cpu> set ncpus=2 zonecfg:zone1>capped-cpu> end zonecfg:zone1> commit zonecfg:zone1> exit It means that it can used two CPUs in zone1 then I run... (5 Replies)
Discussion started by: sb200
5 Replies

3. Solaris

Solaris 10 - capping CPU

Hi all I've purchased a T3-1 server. The T3-1 has a 16 core CPU. I want to create a zone to install an Oracle DB server in. Due to Oracle licensing issues I want to limit the zone to 8 cores. I've done some research and it seems there are 2 ways of setting a CPU core limit for a zone. 1. ... (0 Replies)
Discussion started by: soliberus
0 Replies

4. UNIX for Dummies Questions & Answers

Capping output redirection log file length

I am trying to write a script which will output notifications to a logfile, but I would like to cap the logfile to, let's say, 200 lines. Specifically I am using custom firmware, DD-wrt, on my router and I am implementing a script to connect to my work vpn. I have a loop that pings a computer... (2 Replies)
Discussion started by: joemommasfat
2 Replies

5. Solaris

Resource management (projadd)

Hi When I create a new project: For example: projadd -K "project.max-shm-memory=(priv,16GB,deny)" project_name I need to associate this project to a user in /etc/user_attr: User_name::::project=project_name Otherwise, id -p shows reveals that the user has project default. Is there... (0 Replies)
Discussion started by: melanie_pfefer
0 Replies

6. UNIX for Advanced & Expert Users

Fork:resource unavailable

Hello. I have code which create processes with fork(). I set a limit for processes by typing ulimit -u 20. Then I run my code who should create 100 processes. Unfortunately, I have a mistake there and I forgot to quit all of my forked processes when fork gave me return value -1. So I am trapped in... (5 Replies)
Discussion started by: samos
5 Replies

7. Solaris

Solaris 10 : Memory Capping Query

Hi Folks, Im running solaris 10 8/07 and im trying to set up some memory capping within zones for the system project. ie. zone1# cat /etc/project system:0::::rcap.max-rss=41943040 user.root:1:::: noproject:2:::: default:3:::: group.staff:10:::: zone2# cat /etc/project... (3 Replies)
Discussion started by: trevagreene
3 Replies

8. Solaris

resource worries

When I run the prstat -a command I get the following output for user oracle. NPROC USERNAME SIZE RSS MEMORY TIME CPU 118 oracle 70G 30G 100% 4:38:03 52% The reading under the "MEMORY" heading is 100%. What does this mean? I hope it doesn't mean user oracle is using... (2 Replies)
Discussion started by: soliberus
2 Replies

9. Linux

Resource management

Hi all, we have a big problem, we are running an IA-64 linux system, with 8 CPUs and some GB of RAM, for user usage. The user are compiling and testing programs on this system, and this caused some problems. Sometimes, a user program used the hole memory, blocks the other users, and also... (1 Reply)
Discussion started by: malcom
1 Replies

10. UNIX for Dummies Questions & Answers

resource manaement

Hi all I would like to know which other tools i can use besides top & sar to track the system resources i heard of somthing that sounds like acamdmin or acsadm... Thanks for your help (1 Reply)
Discussion started by: yelalouf
1 Replies
Login or Register to Ask a Question