<?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>ora-solutions.net - Martin Decker &#187; Linux</title>
	<atom:link href="http://www.ora-solutions.net/web/category/unix/linux-unix-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ora-solutions.net/web</link>
	<description>Indepented Oracle consultant</description>
	<lastBuildDate>Wed, 14 Jul 2010 17:59:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Oracle Clusterware / ASM 11.1.0.7: ASM Instance crash</title>
		<link>http://www.ora-solutions.net/web/2009/10/28/oracle-clusterware-asm-11-1-0-7-asm-instance-crash/</link>
		<comments>http://www.ora-solutions.net/web/2009/10/28/oracle-clusterware-asm-11-1-0-7-asm-instance-crash/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 15:27:00 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[11g]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MetaLink]]></category>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=779</guid>
		<description><![CDATA[During a 11gR1 Clusterware installation for a Single Instance Failover Cluster at a customer site, I have experienced an interesting behaviour, which was caused by an Oracle Bug.
The environment was:

2 Node Oracle Clusterware 11.1.0.7 Cluster on Linux x86_64 using latest Recommended Patches as of October 19th. (pre PSU 11.1.0.7.1)
Clusterware installed as unix user crs
ASM installed [...]]]></description>
			<content:encoded><![CDATA[<p>During a 11gR1 Clusterware installation for a Single Instance Failover Cluster at a customer site, I have experienced an interesting behaviour, which was caused by an Oracle Bug.</p>
<p>The environment was:</p>
<ul>
<li>2 Node Oracle Clusterware 11.1.0.7 Cluster on Linux x86_64 using latest Recommended Patches as of October 19th. (pre PSU 11.1.0.7.1)</li>
<li>Clusterware installed as unix user crs</li>
<li>ASM installed as unix user oracle</li>
</ul>
<p>The ASM instances could be started with SQL*Plus without any problems, but if the ASM instances were started by means of clusterware using srvctl (either from root, crs or oracle) the  ASM instances would crash at diskgroup mount with:</p>
<blockquote>
<pre>ORA-07445: exception encountered: core dump  [sskgds_find_rtn_hdr()+1171]
[SIGBUS] [ADDR:0x2AACD701342C] [PC:0x25799DF]
[Non-existent physical address] []</pre>
</blockquote>
<p>Oracle Support identified this behaviour as Bug 6952915, for which there are patches for Linux x86, x86_64 and Solaris Sparc64.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2009/10/28/oracle-clusterware-asm-11-1-0-7-asm-instance-crash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Database version 11g Release 2 for Linux finally released</title>
		<link>http://www.ora-solutions.net/web/2009/09/02/oracle-database-version-11g-release-2-for-linux-finally-released/</link>
		<comments>http://www.ora-solutions.net/web/2009/09/02/oracle-database-version-11g-release-2-for-linux-finally-released/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 05:38:42 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[11g]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Oracle Database]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=768</guid>
		<description><![CDATA[Yesterday, on September 1st, Oracle released the much awaited database version 11gR2 for Linux x86 for both 32bit and 64bit platforms. The software can be downloaded via OTN: http://www.oracle.com/technology/software/products/database/index.html.
]]></description>
			<content:encoded><![CDATA[<p>Yesterday, on September 1st, Oracle released the much awaited <strong>database version 11gR2</strong> for Linux x86 for both 32bit and 64bit platforms. The software can be downloaded via OTN: http://www.oracle.com/technology/software/products/database/index.html.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2009/09/02/oracle-database-version-11g-release-2-for-linux-finally-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Out-of-Memory killer on 32bit Linux with big RAM</title>
		<link>http://www.ora-solutions.net/web/2009/08/25/out-of-memory-killer-on-32bit-linux-with-big-ram/</link>
		<comments>http://www.ora-solutions.net/web/2009/08/25/out-of-memory-killer-on-32bit-linux-with-big-ram/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 13:27:30 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[10g]]></category>
		<category><![CDATA[11g]]></category>
		<category><![CDATA[9iR2]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle Database]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=746</guid>
		<description><![CDATA[It is not very known that you can run into serious problems if you run Linux x86-32bit with a big amount of RAM installed, if using RHEL below 5. The official name for the issue is called &#8220;Low Memory Starvation&#8221;. The best solution is to use x86-64bit to be able to address the whole amount [...]]]></description>
			<content:encoded><![CDATA[<p>It is not very known that you can run into serious problems if you run Linux x86-32bit with a big amount of RAM installed, if using RHEL below 5. The official name for the issue is called &#8220;Low Memory Starvation&#8221;. The best solution is to use x86-64bit to be able to address the whole amount of RAM efficiently. </p>
<p>However, if that is not feasible, then make sure that you at least run the hugemem kernel if you use RHEL < 5. In RHEL5-32bit, the hugemem kernel is default.</p>
<p>A quick demonstration about what can happen if you don´t use hugemem kernel is shown here:</p>
<p>We realized that RMAN backup is taking more than 24 hours. Querying v$session, we find out that<br />
one session is in ACTION "STARTED", whereas the other sessions are FINISHED.</p>
<blockquote><pre>SQL> select program, module,action
      from v$session
      where username = 'SYS' and program like 'rman%'
/      

PROGRAM                    MODULE                       ACTION
-------------------------- ---------------------------  -------------------
rman@ora-vm1 (TNS V1-V3)    backup full datafile        0000078 FINISHED129
rman@ora-vm1 (TNS V1-V3)    backup full datafile        0000272 STARTED16
rman@ora-vm1 (TNS V1-V3)    backup full datafile        0000084 FINISHED129
rman@ora-vm1 (TNS V1-V3)    rman@ora-vm1 (TNS V1-V3)
rman@ora-vm1 (TNS V1-V3)    rman@ora-vm1 (TNS V1-V3)    0000004 FINISHED131
rman@ora-vm1 (TNS V1-V3)    backup full datafile        0000092 FINISHED129</pre>
</blockquote>
<p>Then we check the SID,serial# from v$session of this session and also query the UNIX PID from v$process.spid</p>
<blockquote><pre>SQL> select sid,serial# from v$session where event like 'RMAN%';

       SID    SERIAL#
---------- ----------
      4343       5837</pre>
</blockquote>
<p>We activate SQL Tracing for this session to determine its activity:      </p>
<blockquote><pre>SQL> select spid from v$process where addr =
   (select paddr from v$session where sid = 4343);

SPID
------------
1681

SQL> begin dbms_monitor.session_trace_enable(4343,5837,true,true);
  2  end;
  3  /</pre>
</blockquote>
<p>However, no trace file gets created. Then we start tracing system calls with strace:</p>
<blockquote><pre>ora-vm1:# strace -fp 1681
attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted</pre>
</blockquote>
<p>&#8220;Not permitted&#8221;? &#8211; Although I am connected as root?</p>
<blockquote><pre>ps -ef|grep 1681
oracle    1681 1582  0 Aug24 ?        00:00:09 [oracle] &lt;defunct&gt;</pre>
</blockquote>
<p>The linux command &#8220;ps&#8221; reports the server process as &#8220;defunct&#8221;. </p>
<blockquote><pre>ora-vm1:/usr/oracle/admin/labo/udump$ ps -ef|grep 1582
oracle   1582 21578  0 Aug24 ?        00:00:02 rman oracle/product/10.2.0/bin/rman nocatalog
oracle   21663 1582  0 Aug24 ?        00:00:01 oraclelabo (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle   21665 1582  0 Aug24 ?        00:00:03 oraclelabo (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle   1681 1582   0 Aug24 ?        00:00:09 [oracle] &lt;defunct&gt;
oracle   21691 1582  0 Aug24 ?        00:01:36 oraclelabo (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle   21695 1582  0 Aug24 ?        00:01:41 oraclelabo (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle   21793 1582  0 Aug24 ?        00:01:30 oraclelabo (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))</pre>
</blockquote>
<p>Next, I checked logfile /var/log/messages.1 and realized that the kernel out-of-memory killer (OOM) killed this PID because of low memory starvation.</p>
<blockquote><pre>/var/log/messages.1:
Aug  24 22:32:44 ora-vm1 kernel: Out of Memory: Killed process 1681 (oracle).</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2009/08/25/out-of-memory-killer-on-32bit-linux-with-big-ram/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Multipathing Configuration issue waiting to happen</title>
		<link>http://www.ora-solutions.net/web/2009/08/05/multipathing-configuration-issue-waiting-to-happen/</link>
		<comments>http://www.ora-solutions.net/web/2009/08/05/multipathing-configuration-issue-waiting-to-happen/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 20:52:49 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Itanium]]></category>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[Real Application Clusters]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=728</guid>
		<description><![CDATA[Quite some time ago, I came across a quite hard to find issue during a consulting engagement, which i find worth mentioning. A 2 node RAC cluster running on RHEL4 x86-64 was relocated to a different data center. Apart from making sure, that the switch ports and Fibre Channel Ports are available on the new [...]]]></description>
			<content:encoded><![CDATA[<p>Quite some time ago, I came across a quite hard to find issue during a consulting engagement, which i find worth mentioning. A 2 node RAC cluster running on RHEL4 x86-64 was relocated to a different data center. Apart from making sure, that the switch ports and Fibre Channel Ports are available on the new location, there is not much to worry about.</p>
<p>After the relocation, on one node the multipathing configuration, implemented with dev-mapper-multipath would not work. The command &#8220;multipath -ll&#8221; would just not return any output. After more than an hour, we pinned the issue down to the error message:</p>
<blockquote><p># multipath -v 3<br />
#<br />
# all paths in cache :<br />
#<br />
&#8230;<br />
&#8230;<br />
&#8230;<br />
path sdh not found in pathvec</p></blockquote>
<p>When checking what device sdh was, we realized that this was a KVM device, plugged in by the sysadmins. </p>
<blockquote><p>
May 27 14:46:26 host1 kernel: Attached scsi removable disk sdh at scsi10, channel 0, id 0, lun 0<br />
May 27 14:46:26 host1 kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02<br />
May 27 14:46:26 host1 kernel:   Vendor: KVM       Model: vmDisk            Rev: 0.01<br />
May 27 14:46:26 host1 kernel: scsi10 : SCSI emulation for USB Mass Storage devices<br />
May 27 14:46:26 host1 kernel: sr1: scsi3-mmc drive: 0x/0x caddy<br />
May 27 14:46:26 host1 kernel:   Type:   CD-ROM                             ANSI SCSI revision: 02<br />
May 27 14:46:26 host1 kernel:   Vendor: KVM       Model: vmDisk-CD         Rev: 0.01
</p></blockquote>
<blockquote><p>
<strong>BTW: What is a KVM device?</strong><br />Wikipedia states: A KVM switch (with KVM being an abbreviation for Keyboard, Video or Visual Display Unit, Mouse) is a hardware device that allows a user to control multiple computers from a single keyboard, video monitor and mouse.</p></blockquote>
<p>We then added the device sdh to the multipath blacklist section in /etc/multipath.conf, and the problem was solved:</p>
<blockquote><p>devnode_blacklist {<br />
devnode &#8220;^sdh$&#8221;<br />
}</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2009/08/05/multipathing-configuration-issue-waiting-to-happen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Your experience with RAC Dynamic Remastering (DRM) in 10gR2?</title>
		<link>http://www.ora-solutions.net/web/2009/05/12/your-experience-with-rac-dynamic-remastering-drm-in-10gr2/</link>
		<comments>http://www.ora-solutions.net/web/2009/05/12/your-experience-with-rac-dynamic-remastering-drm-in-10gr2/#comments</comments>
		<pubDate>Tue, 12 May 2009 14:37:48 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[10g]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Itanium]]></category>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[Performance Tuning]]></category>
		<category><![CDATA[Real Application Clusters]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=662</guid>
		<description><![CDATA[One of my customers is having severe RAC performance issues, which appeared a dozen times so far. Each time, the performance impact lasted around 10 minutes and caused basically a hang of the application. ASH investigation revealed that the time frame of performance issues exactly matches a DRM operation of the biggest segment of the [...]]]></description>
			<content:encoded><![CDATA[<p>One of my customers is having severe RAC performance issues, which appeared a dozen times so far. Each time, the performance impact lasted around 10 minutes and caused basically a hang of the application. ASH investigation revealed that the time frame of performance issues exactly matches a DRM operation of the biggest segment of the database. During the problematic time period, there are 20-50 instead of 5-10 active sessions and they are mostly waiting for gc related events: &#8220;gc buffer busy&#8221;,&#8221;gc cr block busy&#8221;, &#8220;gc cr block 2-way&#8221;, &#8220;gc current block 2-way&#8221;, &#8220;gc current request&#8221;, &#8220;gc current grant busy&#8221;, etc.</p>
<p>In addition, there is one single session which has wait event &#8220;<strong>kjbdrmcvtq lmon drm quiesce: ping completion</strong>&#8221; (on instance 1) and 1-3 sessions with wait event &#8220;<strong>gc remaster</strong>&#8220;. (on instance 2) The cur_obj# of the session waiting on &#8220;gc remaster&#8221; is pointing to the segment being remastered.</p>
<p>Does anybody have any experience with DRM problems with 10.2.0.4 on Linux Itanium?</p>
<p>I know that it is possible to deactive DRM, but usually it should be beneficial to have it enabled. I could not find any reports of performance impact during DRM operation on metalink. Support is involved but clueless so far.</p>
<p>Regards,<br />
Martin</p>
<p><a href="http://forums.oracle.com/forums/message.jspa?messageID=3447436#3447436">http://forums.oracle.com/forums/message.jspa?messageID=3447436#3447436</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2009/05/12/your-experience-with-rac-dynamic-remastering-drm-in-10gr2/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Session waiting for &#8220;enq: RO &#8211; fast object reuse&#8221; &#8211; DBWR Process spinning on CPU</title>
		<link>http://www.ora-solutions.net/web/2009/01/20/session-waiting-for-enq-ro-fast-object-reuse-dbwr-process-spinning-on-cpu/</link>
		<comments>http://www.ora-solutions.net/web/2009/01/20/session-waiting-for-enq-ro-fast-object-reuse-dbwr-process-spinning-on-cpu/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 16:07:08 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[10g]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Itanium]]></category>
		<category><![CDATA[MetaLink]]></category>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=564</guid>
		<description><![CDATA[I have encountered the following problem on a 10.2.0.4 database on Linux x86_64 today:
A user session has been waiting for &#8220;enq: RO &#8211; fast object reuse&#8221; for almost 60 minutes while executing a &#8220;truncate table&#8221; SQL statement.
SQL>  select username, event, sql_id, taddr, last_call_et from v$session where sid = 234;
USERNAME    EVENT  [...]]]></description>
			<content:encoded><![CDATA[<p>I have encountered the following problem on a 10.2.0.4 database on Linux x86_64 today:<br />
A user session has been waiting for &#8220;enq: RO &#8211; fast object reuse&#8221; for almost 60 minutes while executing a &#8220;truncate table&#8221; SQL statement.</p>
<blockquote><p>SQL>  select username, event, sql_id, taddr, last_call_et from v$session where sid = 234;</p>
<p>USERNAME    EVENT                         SQL_ID        TADDR            LAST_CALL_ET<br />
&#8212;&#8212;&#8212;-  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;<br />
MD          enq: RO &#8211; fast object reuse   ljk299jlkj003 0000000153264570 3542</p>
<p>SQL>  select sql_text from v$sqlstats where sql_id = &#8216;ljk299jlkj003&#8242;;</p>
<p>SQL_TEXT<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
truncate table tab1</p></blockquote>
<p>The Session was blocked by the CKPT process:</p>
<blockquote><p>SQL> select * from dba_waiters;</p>
<p>WAITING_SESSION HOLDING_SESSION LOCK_TYPE                  MODE_HELD                                MODE_REQUESTED                  LOCK_ID1   LOCK_ID2<br />
&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;-<br />
            234             423 RO                         Row-S (SS)                               Exclusive                  65573   1</p>
<p>SQL> select sid, serial#, sql_id, last_call_et, machine, program, username from v$session where sid = 423;</p>
<p>       SID    SERIAL# SQL_ID        LAST_CALL_ET MACHINE          PROGRAM<br />
&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
       423          1                4133636     ora-vm1.intra    oracle@ora-vm1.intra (CKPT)
</p></blockquote>
<p>The checkpoint process was waiting for database writer DBWR process, which was spinning on one cpu:</p>
<p>top</p>
<blockquote><p> PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND<br />
10712 oracle    25   0 2201m 1.7g 1.7g R 99.5 21.7 108:18.03 oracle</p></blockquote>
<p>PID 10712 maps to DBW0:</p>
<blockquote><p>[oracle@ora-vm1 ]$ ps -ef|grep 10712<br />
oracle   10712     1  0  2008 ?        03:23:05 ora_dbw0_MDDB01
</p></blockquote>
<p>mpstat</p>
<blockquote><p>Linux 2.6.9-78.ELsmp (ora-vm1.intra)        01/20/2009</p>
<p>02:21:56 PM  CPU   %user   %nice %system %iowait    %irq   %soft   %idle    intr/s<br />
02:21:57 PM  all   49.75    0.00    0.00    0.00    0.00    0.00   50.25   1055.00<br />
02:21:57 PM    0    0.00    0.00    0.00    0.00    0.00    0.00  100.00   1006.00<br />
02:21:57 PM    1  100.00    0.00    0.00    0.00    0.00    0.00    0.00     49.00</p>
<p>02:21:57 PM  CPU   %user   %nice %system %iowait    %irq   %soft   %idle    intr/s<br />
02:21:58 PM  all   50.75    0.00    0.00    0.50    0.00    0.00   48.76   1161.00<br />
02:21:58 PM    0    1.00    0.00    0.00    1.00    0.00    0.00   98.00   1087.00<br />
02:21:58 PM    1  100.00    0.00    0.00    0.00    0.00    0.00    0.00     74.00
</p></blockquote>
<p>The stack of dbw0 during the time showed these signatures:</p>
<blockquote><p>[oracle@ora-vm1 oracle]$ pstack 10712<br />
#0  0&#215;000000000074b7fb in kslfre ()<br />
#1  0&#215;00000000010ccc3b in kcbo_exam_buf ()<br />
#2  0&#215;00000000010d0d62 in kcbo_service_ockpt ()<br />
#3  0&#215;0000000001080cd7 in kcbbdrv ()<br />
#4  0&#215;00000000007ddcc2 in ksbabs ()<br />
#5  0&#215;00000000007e4b32 in ksbrdp ()<br />
#6  0&#215;0000000002efcb50 in opirip ()<br />
#7  0&#215;00000000012da326 in opidrv ()<br />
#8  0&#215;0000000001e62456 in sou2o ()<br />
#9  0&#215;00000000006d2555 in opimai_real ()<br />
#10 0&#215;00000000006d240c in main ()<br />
[oracle@ora-vm1 oracle]$ pstack 10712<br />
#0  0&#215;000000000074b36d in kslfre ()<br />
#1  0&#215;00000000010cc203 in kcbo_write_process ()<br />
#2  0&#215;00000000010ce608 in kcbo_write_q ()<br />
#3  0&#215;0000000001080a6d in kcbbdrv ()<br />
#4  0&#215;00000000007ddcc2 in ksbabs ()<br />
#5  0&#215;00000000007e4b32 in ksbrdp ()<br />
#6  0&#215;0000000002efcb50 in opirip ()<br />
#7  0&#215;00000000012da326 in opidrv ()<br />
#8  0&#215;0000000001e62456 in sou2o ()<br />
#9  0&#215;00000000006d2555 in opimai_real ()<br />
#10 0&#215;00000000006d240c in main ()<br />
[oracle@ora-vm1 oracle]$ pstack 10712<br />
#0  0&#215;00000000010ccb60 in kcbo_exam_buf ()<br />
#1  0&#215;00000000010d0d62 in kcbo_service_ockpt ()<br />
#2  0&#215;0000000001080cd7 in kcbbdrv ()<br />
#3  0&#215;00000000007ddcc2 in ksbabs ()<br />
#4  0&#215;00000000007e4b32 in ksbrdp ()<br />
#5  0&#215;0000000002efcb50 in opirip ()<br />
#6  0&#215;00000000012da326 in opidrv ()<br />
#7  0&#215;0000000001e62456 in sou2o ()<br />
#8  0&#215;00000000006d2555 in opimai_real ()<br />
#9  0&#215;00000000006d240c in main ()<br />
[oracle@ora-vm1 oracle]$ pstack 10712<br />
#0  0&#215;00000000010d0da5 in kcbo_service_ockpt ()<br />
#1  0&#215;0000000001080cd7 in kcbbdrv ()<br />
#2  0&#215;00000000007ddcc2 in ksbabs ()<br />
#3  0&#215;00000000007e4b32 in ksbrdp ()<br />
#4  0&#215;0000000002efcb50 in opirip ()<br />
#5  0&#215;00000000012da326 in opidrv ()<br />
#6  0&#215;0000000001e62456 in sou2o ()<br />
#7  0&#215;00000000006d2555 in opimai_real ()<br />
#8  0&#215;00000000006d240c in main ()</p></blockquote>
<p>A MetaLink Research for the term &#8220;kcbo_service_ockpt&#8221; leads to Bug 7376934, which is a duplicate of Bug 7385253 &#8211; DBWR IS CONSUMING HIGH CPU. </p>
<p>Patch 7385253 is available for Linux x86_64, HP-UX, Solaris, AIX.<br />
Reference:<br />
MetaLink Note 762085.1 &#8211; Subject: 	&#8216;enq: RO &#8211; fast object reuse&#8217; contention when gathering schema/table statistics in parallel</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2009/01/20/session-waiting-for-enq-ro-fast-object-reuse-dbwr-process-spinning-on-cpu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hugepages revisited II: Be aware of kernel bugs!</title>
		<link>http://www.ora-solutions.net/web/2009/01/07/hugepages-revisited-ii-be-aware-of-kernel-bugs/</link>
		<comments>http://www.ora-solutions.net/web/2009/01/07/hugepages-revisited-ii-be-aware-of-kernel-bugs/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 11:31:08 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[10g]]></category>
		<category><![CDATA[11g]]></category>
		<category><![CDATA[9iR2]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Itanium]]></category>
		<category><![CDATA[Oracle Database]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=547</guid>
		<description><![CDATA[It is well known that hugepages can reduce the overhead of managing memory pages of Oracle SGA by the operating system thus leading to lower system cpu utilization. I have written two blog entries regarding this topic already: Listener Coredumps on heavy load system  and Hugepages revisited.
However, there is a potential risk with it: [...]]]></description>
			<content:encoded><![CDATA[<p>It is well known that hugepages can reduce the overhead of managing memory pages of Oracle SGA by the operating system thus <a href="http://www.pythian.com/blogs/1326/performance-tuning-hugepages-in-linux/">leading to lower system cpu utilization.</a> I have written two blog entries regarding this topic already: <a href="http://www.ora-solutions.net/web/2008/11/10/listener-coredumps-on-heavy-load-system/">Listener Coredumps on heavy load system </a> and <a href="http://www.ora-solutions.net/web/2008/11/30/hugepages-revisited/">Hugepages revisited.</a></p>
<p>However, there is a potential risk with it: Certain kernels / platforms have bugs regarding hugepages which can lead to problems:</p>
<ul>
<li><a href="https://bugzilla.redhat.com/show_bug.cgi?id=131295">Bug 131295</a> &#8211; Hugepages configured on kernel boot line causes x86_64 kernel boot to fail with OOM: Fixed in RHEL3: kernel-2.4.21-40.EL</li>
</ul>
<ul>
<li><a href="http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=248954">Bug 248954</a> &#8211; Oracle ASM DBWR process goes into 100% CPU spin when using hugepages on ia64 (Fixed in kernel-2.6.9-78.EL.ia64.rpm available as update for RHEL4U7)</li>
</ul>
<ul>
<li><a href="http://rhn.redhat.com/errata/RHSA-2008-1017.html">RHSA-2008:1017-14</a>: on the Itanium® architecture, setting the &#8220;vm.nr_hugepages&#8221; sysctl parameter caused a kernel stack overflow resulting in a kernel panic, and possibly stack corruption. With this fix, setting vm.nr_hugepages works correctly. Fixed with RHEL5 kernel-2.6.18-92.1.22.el5.ia64.rpm</li>
</ul>
<ul>
<li><a href="http://rhn.redhat.com/errata/RHSA-2008-1017.html">RHSA-2008:1017-14</a>: hugepages allow the Linux kernel to utilize the multiple page size capabilities of modern hardware architectures. In certain configurations, systems with large amounts of memory could fail to allocate most of this memory for hugepages even if it was free. This could result, for example, in database restart failures. Fixed with RHEL5 kernel-2.6.18-92.1.22.el5.ia64.rpm</li>
</ul>
<p>Therefore, before enabling hugepages, I recommend to check with your OS Vendor Bug Database, test on a test system and apply recent OS upgrades first.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2009/01/07/hugepages-revisited-ii-be-aware-of-kernel-bugs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NUMA enabled in 10.2.0.4</title>
		<link>http://www.ora-solutions.net/web/2008/12/18/numa-enabled-in-10204/</link>
		<comments>http://www.ora-solutions.net/web/2008/12/18/numa-enabled-in-10204/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 11:33:59 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[10g]]></category>
		<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Itanium]]></category>
		<category><![CDATA[MetaLink]]></category>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=515</guid>
		<description><![CDATA[When upgrading from pre 10.2.0.4 to 10.2.0.4, Oracle enables NUMA support. This has the effect that there can be multiple shared memory segments (MetaLink Note: 429872.1) although shmmax/shmall are set to high values.
I have read MetaLink Notes (7171446.8, 6730567.8, 6689903.8) and this blog entry, where a customer had problems on HP-UX with the default NUMA [...]]]></description>
			<content:encoded><![CDATA[<p>When upgrading from pre 10.2.0.4 to 10.2.0.4, Oracle enables NUMA support. This has the effect that there can be multiple shared memory segments (MetaLink Note: 429872.1) although shmmax/shmall are set to high values.</p>
<p>I have read MetaLink Notes (7171446.8, 6730567.8, 6689903.8) and this <a href="http://skrajend.blogspot.com/2008/09/numa-after-10204-upgrade-is.html">blog entry</a>, where a customer had problems on HP-UX with the default NUMA settings. </p>
<p>Better than that, it can also lead to instance crashes in 10.2.0.4 as reported in MetaLink Note 743191.1. Good news is that there is a patch available for Linux x86_64/10.2.0.4.</p>
<p>I have asked Oracle Support whether it is safe to leave NUMA enabled for Linux Itanium, but they would not comment on it. Instead they asked me to check with the OS vendor. Great. ;-(</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2008/12/18/numa-enabled-in-10204/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hugepages revisited</title>
		<link>http://www.ora-solutions.net/web/2008/11/30/hugepages-revisited/</link>
		<comments>http://www.ora-solutions.net/web/2008/11/30/hugepages-revisited/#comments</comments>
		<pubDate>Sun, 30 Nov 2008 19:31:02 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.ora-solutions.net/web/?p=446</guid>
		<description><![CDATA[A while ago I wrote a post about a specific listener coredump issue which could be solved by 1) installing an oracle patch and 2) by implementing hugepages. I have also linked to an article from Pythian Group Oracle expert Riyaj Shamsudeen, who demonstrated problems with memory page management overheads with big SGAs without hugepages.
Today, [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago<a href="http://www.ora-solutions.net/web/2008/11/10/listener-coredumps-on-heavy-load-system/"> I wrote a post </a>about a specific listener coredump issue which could be solved by 1) installing an oracle patch and 2) by implementing hugepages. I have also linked to an article from Pythian Group Oracle expert <span class="author"><a title="Posts by Riyaj Shamsudeen" href="http://www.pythian.com/blogs/author/shamsudeen/">Riyaj Shamsudeen</a>, who demonstrated problems with memory page management overheads with big SGAs without hugepages.</span></p>
<p>Today, I want to document the steps necessary to implement hugepages after doing some research:</p>
<ul>
<li>Check your /etc/sysctl.conf shmall and shmmax values. I recommend that you set shmmax bigger or</li>
<li>Check your current total shared memory segment size. Depending on your &#8220;bc -l&#8221; skills by summing all byte lines from ipcs -m or by executing a script from metalink Note <small>401749.1 </small>(which does exactly that). Calculate how many hugepages you need by &#8220;cat /proc/meminfo&#8221; and dividing it by the pagesize of your platform. (Linux IA64 has 256MB pages for example) I recommend to add 1 extra page for safety.</li>
<li>Say, you need 200 hugepages. Multiply it with the pagesize and enter this value in<br />
<strong>/etc/security/limits.conf</strong>: (values in kb)</li>
</ul>
<blockquote><p>oracle soft memlock 2097152<br />
oracle hard memlock 2097152</p></blockquote>
<ul>
<li>Set the parameters in <strong>/etc/sysctl.conf</strong>:</li>
</ul>
<blockquote><p>vm.nr_hugepages=200<br />
vm.hugetlb_shm_group=&lt;group id of dba group from /etc/group&gt;<br />
e.g. vm.hugetlb_shm_group=201</p></blockquote>
<p>I am going to implement hugepages on Linux Itanium for a Real Application Cluster system. I have read posts that there are different issues regarding startup with srvctl or sqlplus and startup by oracle or root. I will investigate and write more soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ora-solutions.net/web/2008/11/30/hugepages-revisited/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
