Received: (qmail 32632 invoked from network); 12 Dec 2011 19:57:31 -0600
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by static-ip-85-25-126-90.inaddr.ip-pool.com with SMTP; 12 Dec 2011 19:57:25 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 7FFC3E68905;
 Mon, 12 Dec 2011 20:57:24 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1323741444; bh=AmtTvMjADp3bJR0eGKy9iMro4p99uPaoQwPl3wMq
 izM=; h=From:To:CC:Date:Subject:Message-ID:References:Content-type:
	 MIME-Version:Content-Transfer-Encoding:Sender:Reply-To:List-help:
	 List-unsubscribe:List-Id:List-subscribe:List-owner:List-post:
	 List-archive; b=aSIqA7iwE1X3dSxGqhvjLIUkidcXoZ4tqdJnYTBEV+6h6fssds
 TIqKYxj3mYSZNZoYMNm63jO+tzXA65ErLmCVMl/phvCBgFEE3Zu85gV0Br8JSFBbPTc
 uwtlPmxQtNs2/ZQ6L64GxeFv6phqgo7qNdJRWJ299W7XAGmQt2jlnU=
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id plPZBtQJP2qT; Mon, 12 Dec 2011 20:57:24 -0500 (EST)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 5B8DEE68849;
 Mon, 12 Dec 2011 20:56:41 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Mon, 12 Dec 2011 20:56:00 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id EC7CCE6827D
 for <oracle-l@freelists.org>; Mon, 12 Dec 2011 20:55:59 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id FMfso3srFHnw for <oracle-l@freelists.org>;
 Mon, 12 Dec 2011 20:55:59 -0500 (EST)
Received: from us194mx95mailout.tycoelectronics.com (us194mx95mailout.tycoelectronics.com [198.175.153.156])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id EC0F7E6784F
 for <oracle-l@freelists.org>; Mon, 12 Dec 2011 20:55:57 -0500 (EST)
X-IronPort-AV: E=Sophos;i="4.71,342,1320642000"; 
   d="scan'208,217";a="83739420"
Received: from us194mx010.tycoelectronics.net ([163.241.185.53])
  by us194mx95mailout.tycoelectronics.com with ESMTP; 12 Dec 2011 20:55:56 -0500
Received: from us194mx07.tycoelectronics.net (163.241.185.38) by
 US194MX010.tycoelectronics.net (163.241.185.53) with Microsoft SMTP Server
 (TLS) id 8.3.213.0; Mon, 12 Dec 2011 20:55:56 -0500
Received: from us194mx002.tycoelectronics.net ([163.241.202.108]) by
 us194mx07.tycoelectronics.net ([163.241.185.38]) with mapi; Mon, 12 Dec 2011
 20:55:56 -0500
From: "Johnson, William L (TEIS)" <WLJohnson@te.com>
To: Jared Still <jkstill@gmail.com>
CC: ORACLE-L <oracle-l@freelists.org>
Date: Mon, 12 Dec 2011 20:55:54 -0500
Subject: RE: Solaris 10 dtrace command...
Thread-Topic: Solaris 10 dtrace command...
Message-ID: <2F161F8A09B99B4ABF8AE832D546E7890E9911CCA4@us194mx002.tycoelectronics.net>
References: <2F161F8A09B99B4ABF8AE832D546E7890E9903B541@us194mx002.tycoelectronics.net>
 <CAORjz=N-JrjB8vWiuB=9ZOxcruZqfknVynrrFhPVrQJ-xEVWMg@mail.gmail.com> 
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-type: text/plain
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-archive-position: 40609
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: WLJohnson@te.com
Precedence: normal
Reply-To: WLJohnson@te.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l

I was able to catch the hang in production again.  Really ugly this time - one command took 8-9 minutes to execute and a simple lsnrctl status took close to 15 minutes to execute in a production environment.
Here was my command...
truss -d -D -f -o bill2.out ls -lrt

This is a small section of the resulting output...A bad start right out of the gates...

Base time stamp:  1323721323.0651  [ Mon Dec 12 15:22:03 EST 2011 ]
1186: 0.0000     0.0000     execve("/usr/bin/ls", 0xFFBFF514, 0xFFBFF520)  argc = 2
1186: 102.3725    102.3725    resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
1186: 107.4393    5.0668     resolvepath("/usr/bin/ls", "/usr/bin/ls", 1023) = 11
1186: 107.4420    0.0027     stat64("/usr/bin/ls", 0xFFBFF1D0)         = 0

Here was the second incident...(I replaced some of our file system names with variables to protect the innocent...  :) )  The wait times are outrageous...
truss -d -D -f -o bill3.out lsnrctl status <listener_name>
Base time stamp:  1323722672.7062  [ Mon Dec 12 15:44:32 EST 2011 ]
9898: 0.0000     0.0000     execve("{ORACLE_HOME}/bin/lsnrctl", 0xFFFFFFFF7FFFF368, 0xFFFFFFFF7FFFF388)  argc = 3
9898: 80.3434     80.3434     resolvepath("/usr/lib/sparcv9/ld.so.1", "/lib/sparcv9/ld.so.1", 1023) = 20
9898: 116.6389    36.2955     resolvepath("{ORACLE_HOME}/bin/lsnrctl", "{ORACLE_HOME}/bin/lsnrctl", 1023) = 46
9898: 116.6403    0.0014     stat("{ORACLE_HOME}/bin/lsnrctl", 0xFFFFFFFF7FFFEF60) = 0
9898: 569.7705    453.1302    open("/var/ld/64/ld.config", O_RDONLY)          Err#2 ENOENT



________________________________
From: Johnson, William L (TEIS)
Sent: Sunday, December 11, 2011 7:37 PM
To: 'Jared Still'
Cc: ORACLE-L
Subject: RE: Solaris 10 dtrace command...

Well, this is rather embarrassing.  I just looked through my .sh_history file and found that I never included the "-d -D" option for my truss command.  I was building a script to run and never ran the script when the problem surfaced...I ran the command by hand and forgot the options.  Now I have to hope I can catch the system hanging again...

Here is what the output looks like when I run it properly...
<server_name>:XXX02/xxx02/data00/oracle/local>more bill2.out
Base time stamp:  1323649536.7395  [ Sun Dec 11 19:25:36 EST 2011 ]
1402:    0.0000  0.0000 execve("/usr/bin/ls", 0xFFBFF51C, 0xFFBFF528)  argc = 2
1402:    0.0031  0.0031 resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
1402:    0.0032  0.0001 resolvepath("/usr/bin/ls", "/usr/bin/ls", 1023) = 11
1402:    0.0034  0.0002 stat64("/usr/bin/ls", 0xFFBFF1D8)               = 0
1402:    0.0035  0.0001 open("/var/ld/ld.config", O_RDONLY)             Err#2 ENOENT
1402:    0.0037  0.0002 stat64("/usr/lib/X11R5/libsec.so.1", 0xFFBFE968) Err#2 ENOENT
1402:    0.0038  0.0001 stat64("/usr/lib/Motif1.2/libsec.so.1", 0xFFBFE968) Err#2 ENOENT



________________________________
From: Jared Still [mailto:jkstill@gmail.com]
Sent: Friday, December 09, 2011 6:50 PM
To: Johnson, William L (TEIS)
Cc: ORACLE-L
Subject: Re: Solaris 10 dtrace command...

On Fri, Dec 9, 2011 at 10:46 AM, Johnson, William L (TEIS) <WLJohnson@te.com<mailto:WLJohnson@te.com>> wrote:
I am having sporadic problems with a Solaris 10 database server running on a ZFS file system.  Every once in a while, a simple OS command like "ls -al" in a directory with 10-20 files will hang for more than 1 minute.  I was able to use the truss command to finally capture one of the incidents where the "ls -al" command took over 1 minute.  The unfortunate thing is that the truss output wasn't able to capture where the wait occurred.  I am now moving on to dtrace - but wow...I am really hoping that someone on the list has had prior

Please share the truss output.

You can use http://pastebin.com<http://pastebin.com/fmtGg5rM>  to share it.

Just paste the text into the box, click submit, and share the resulting URL.

Such as:  http://pastebin.com/fmtGg5rM

Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist
Oracle Blog: http://jkstill.blogspot.com
Home Page: http://jaredstill.com



--
http://www.freelists.org/webpage/oracle-l


