Sponsored Content
Full Discussion: Resource Capping Help!
Operating Systems Solaris Resource Capping Help! Post 302559741 by sbk1972 on Wednesday 28th of September 2011 04:23:28 AM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
pooladm(1M)															       pooladm(1M)

NAME
pooladm - activate and deactivate the resource pools facility SYNOPSIS
/usr/sbin/pooladm [-n] [-s] [-c] [filename] | -x /usr/sbin/pooladm [-d | -e] The pooladm command provides administrative operations on pools and sets. pooladm reads the specified filename and attempts to activate the pool configuration contained in it. Before updating the current pool run-time configuration, pooladm validates the configuration for correctness. Without options, pooladm prints out the current running pools configuration. The following options are supported: -c Instantiate the configuration at the given location. If a filename is not specified, it defaults to /etc/pooladm.conf. -d Disable the pools facility so that pools can no longer be manipulated. -e Enable the pools facility so that pools can be manipulated. -n Validate the configuration without actually updating the current active files. Checks that there are no syntactic errors and that the configuration can be instantiated on the current system. No validation of application specific properties is performed. -s Update the specified location with the details of the current dynamic configuration. This option requires update permission to the configuration that you are going to instantiate. If you use this option with the -c option, the dynamic configuration is updated before the static location. -x Remove the currently active pool configuration. Destroy all defined resources, and return all formerly partitioned compo- nents to their default resources. The following operands are supported: filename Use the configuration contained within this file. Example 1: Instantiating a Configuration The following command instantiates the configuration contained at /home/admin/newconfig: example# /usr/sbin/pooladm -c /home/admin/newconfig Example 2: Validating the Configuration Without Instantiating It The following command attempts to instantiate the configuration contained at /home/admin/newconfig. It displays any error conditions that it encounters, but does not actually modify the active configuration. example# /usr/sbin/pooladm -n -c /home/admin/newconfig Example 3: Removing the Current Configuration The following command removes the current pool configuration: example# /usr/sbin/pooladm -x Example 4: Enabling the Pools Facility The following command enables the pool facility: example# /usr/sbin/pooladm -e Example 5: Saving the Active Configuration to a Specified Location The following command saves the active configuration to /tmp/state.backup: example# /usr/sbin/pooladm -s /tmp/state.backup /etc/pooladm.conf See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWpool | +-----------------------------+-----------------------------+ |Interface Stability |See below. | +-----------------------------+-----------------------------+ The invocation is Evolving. The output is Unstable. poolcfg(1M), poolbind(1M), psrset(1M), pset_destroy(2), libpool(3LIB), attributes(5) Resource bindings that are not presented in the form of a binding to a partitionable resource, such as the scheduling class, are not neces- sarily modified in a pooladm -x operation. The pools facility is not active by default when Solaris starts. pooladm -e explicitly activates the pools facility. The behavior of cer- tain APIs related to processor partitioning and process binding are modified when pools is active. See libpool(3LIB). You cannot enable the pools facility on a system where processor sets have been created. Use the psrset(1M) command or pset_destroy(2) to destroy processor sets manually before you enable the pools facility. 15 Feb 2005 pooladm(1M)
All times are GMT -4. The time now is 04:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy