<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sys-Admin Information&#039;s &#187; Projadd</title>
	<atom:link href="http://sysinfo.bascomp.org/tag/projadd/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysinfo.bascomp.org</link>
	<description></description>
	<lastBuildDate>Fri, 23 Apr 2010 09:43:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Kernel setup for Solaris 10 using project files - Special for Oracle10g</title>
		<link>http://sysinfo.bascomp.org/2008/03/kernel-setup-for-solaris-10-using-project-files-special-for-oracle10g/</link>
		<comments>http://sysinfo.bascomp.org/2008/03/kernel-setup-for-solaris-10-using-project-files-special-for-oracle10g/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 10:20:49 +0000</pubDate>
		<dc:creator>Hell-me</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Projadd]]></category>
		<category><![CDATA[Projmod]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2008/03/04/kernel-setup-for-solaris-10-using-project-files-special-for-oracle10g/</guid>
		<description><![CDATA[1. Recommended method for modifying the /etc/project file is to use the "projadd" and "projmod" :
a.

bash&#62; projadd -c &#34;Oracle&#34; 'user.oracle'

b.

bash&#62; projmod -s -K &#34;project.max-shm-memory=(privileged,10GB,deny)&#34; 'user.oracle'

c. verify with

bash&#62; cat /etc/project

or

bash&#62; prctl -i project user.oracle

2. Resource Control assignments made in this way (in the /etc/project file) are permanent, and will survive a system re-boot.
3. There is also [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1</strong>. Recommended method for modifying the /etc/project file is to use the "projadd" and "projmod" :</p>
<p>a.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> projadd <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;Oracle&quot;</span> <span style="color: #ff0000;">'user.oracle'</span></pre></div></div>

<p>b.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> projmod <span style="color: #660033;">-s</span> <span style="color: #660033;">-K</span> <span style="color: #ff0000;">&quot;project.max-shm-memory=(privileged,10GB,deny)&quot;</span> <span style="color: #ff0000;">'user.oracle'</span></pre></div></div>

<p>c. verify with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>project</pre></div></div>

<p>or</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> prctl <span style="color: #660033;">-i</span> project user.oracle</pre></div></div>

<p><strong>2</strong>. Resource Control assignments made in this way (in the /etc/project file) are permanent, and will survive a system re-boot.</p>
<p><strong>3</strong>. There is also an <strong><u>"on-the-fly"</u></strong> way to temporarily set Resource Control assignments using the prctl(1) command.</p>
<p>a. Should we need to temporarily increase the setting to <strong>48</strong> GB:<br />
For example, assuming the preceding /etc/project</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> prctl <span style="color: #660033;">-n</span> project.max-shm-memory <span style="color: #660033;">-i</span> project user.oracle
project: <span style="color: #000000;">100</span>: user.oracle
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged 16.0GB - deny -
system 16.0EB max deny -</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> prctl <span style="color: #660033;">-n</span> project.max-shm-memory <span style="color: #660033;">-r</span> <span style="color: #660033;">-v</span> 48GB <span style="color: #660033;">-i</span> project user.oracle</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> prctl <span style="color: #660033;">-n</span> project.max-shm-memory <span style="color: #660033;">-i</span> project user.oracle
project: <span style="color: #000000;">100</span>: user.oracle
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged <span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000;">48</span><span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span> .0GB - deny -
system 16.0EB max deny</pre></div></div>

<p>b. fix parameter ; entry new value on max-shm</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>project</pre></div></div>

<p>values such as 48GB instead of the 51539607552</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">project.max-shm-memory=(privileged, 51539607552, deny);</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2008/03/kernel-setup-for-solaris-10-using-project-files-special-for-oracle10g/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
