Displaying 20 results from an estimated 9000 matches similar to: "Finding instrumented code"
2008 May 21
9
Slow pkginstalls due to long door_calls to nscd
Hi all,
I am installing a zone onto two different V445s running S10U4 and the
zones are taking hours to install (about 1000 packages), that is, the
problem is identical on both systems. A bit of trussing and dtracing has
shown that the pkginstalls being run by the zoneadm install are making
door_call calls to nscd that are taking very long, so far observed to be
5 to 40 seconds, but always in
2008 Feb 24
2
Can DTrace display non-instrumented function argument counts and types?
Is it possible to use DTrace to display the number of arguments and their types for userland or kernel functions that are not explicitly instrumented or documented by their authors? We''re talking about functions provided by Veritas VxVM/VxFS and the like, and for example, we might want to try tracing I/Os from App => VxFS => VxVM => ssd driver to see where I/Os get aggregated or
2007 Feb 13
2
How to print kernel global variable.
I am doing some testing on the adjtime syscall, and I want to
dump out the value of the kernel variable "timedelta", and I
am failing at it. Some of my attempts got "Module is no longer
loaded" and some got "Symbol table entry is not a data object"
I found some info that dtrace can print out kernel global
variable, so what am I missing here?
--
blu
"Remember
2007 Aug 21
4
Core analysis !
Can i use dtrace to anlayze my core files ?
--
This message posted from opensolaris.org
2007 Apr 18
3
dtrace-discuss: cannot get a ''string'' to print...
hi,
I''m using the PID provider to trace a 32-bit app, prtdiag.
I''m trying to print the value of "propname" (arg1) in the
following func:
int
picl_get_propval_by_name(picl_nodehdl_t nodeh, const char *propname,
void *valbuf, size_t nbytes)
...
i''ve tried many versions, but this is a representative one:
53 this string propname;
54
55
2009 Feb 13
5
Trace Memory Access
Hello, everyone
I am a newbie of DTrace and OpenSolaris. Just wondering is it possible
to trace every memory read/write of a specific process given the pid?
Basically speaking, I want to record the virtual addresses being
accessed by the process, using which I will try to do some online
analysis.
If DTrace does not support this type of instrumentation, will other
tools in OpenSolaris help me
2006 Oct 26
2
What has been swapped out?
I have a SunRay server that I am looking at to determine some sizing requirements in my department. The machine has 16G of ram and 10G of swap. Currently, I have about 4G of swap used. I am wondering if dtrace/mdb can be used to find out what lwp/processes have been swapped out?
Any hints?
This message posted from opensolaris.org
2006 Mar 03
3
Using DTrace to locate memory leak
Howdy,
I am attempting to isolate the location of a memory leak in a 4GL program,
and have hit a bit of a snag. When I LD_PRELOAD libumem and run the
application server, "::findleaks -fdv" reports numerous leaks:
CACHE LEAKED BUFCTL CALLER
0000000100b49068 15 0000000100ef2d50 fdcon+0x6c4
0000000100b50028 1 0000000100b72ac0 fdcon+0x6c4
0000000100b49068
2008 Jun 09
6
FW: Memory Leak Problem in My Application running on Solaris 10.
Hi,
This is regarding Dtrace usability for memory leak detection.
We have real-time application written C++ which runs on Solaris 10
having a problem that''s the my application grows in size from 130 Mb
to 450Mb in around 15 days.
So there is two possibilities with the application growth of memory
due to Size growth of Dictionary Objects (Like Maps) and Memory Leak.
2009 Apr 22
6
PID provider can not create memcpy:return probe for 64bit process
I have found that pid provider can not create memcpy:return probe for
64bit process on snv_110. For example, the pid is 10603, I will have
following output for dtrace command:
#dtrace -n pid10603:libc.so.1:memcpy:return
dtrace: invalid probe specifier pid10603:libc.so.1:memcpy:return:
probe description pid10603:libc.so.1:memcpy:return does not match any probes
This just
2009 Feb 27
7
Memory usage for C++ Application is growing
Hi ,
I have c++ server application in solaries 10 . Day by day memory usage is growing
i try to find memory leaks with MDB and DTRACE and no leaks found. how can we find reason for growing memory , can we know which memory sigment is cause for growing memory usage
Thanks in Advance.
Rao
--
This message posted from opensolaris.org
2005 Sep 11
8
DTrace vs truss
G''Day Folks,
I''ve finally typed up my classic DTrace demo, which I use to introduce
people to DTrace (I delivered this at SOSUG#1),
http://www.brendangregg.com/DTrace/dtracevstruss.html
Here I create a fault and show the difficulty in analysing it using
previous tools. Then I compare the impact of analysing the problem
using both DTrace and truss. DTrace wins (a lot!).
2007 Nov 27
7
Solaris Dynamic Tracing Guide gets Wikified!
Tracers,
Good news! The Solaris Dynamic Tracing Guide has entered
the participation age at last and has been converted into
wiki format. The new and shiny guide can be found at:
http://wikis.sun.com/display/DTrace/Documentation
The guide has fallen behind with developments in DTrace
since it was first released and needs some revising and
some bug fixing as well. However, now that it''s
2007 Jan 10
13
[DTrace] how to get socket read size
Hi
i''m trying to write my first dtrace script apparently i bit off a bit
more than i can chew, i want to track io over sockets, i found your
socketsize.d that gave me how to track writes, but i''m at a loss how
to track reads, frankly i don''t see how your write tracker works
because it uses a probe in a function that only takes two arguments
but you grab size of write
2006 Jul 17
7
access to errno when using pid provider
I would like to know how to get access to errno when using pid provider to probe calls to
libc functions like fopen(). The built-in errno appears to be only for system calls. What I''d
like to be able to do is investigate where in an application I''m encountering EMFILE and
what the stack looks like at the time.
This message posted from opensolaris.org
2005 Jul 19
2
variable size limit & documentation
Bryan,
I''m trying to use a Dtrace script with a modest size
global variable and hit a problem.
Looking for a solution, I turn to the docs and notice
that option "dynvarsize" appears just once in the docs,
and it refers you to Chapter 3, where there is no mention.
It doesn''t help me anyhow.
I have:
#!/usr/sbin/dtrace -qws
#pragma D option dynvarsize=2000000
2008 Aug 25
11
pid-provider sees ld.so.1 only
I''m trying to do some userspace tracing on a server-process with the pid provider.
My problem is, that the only probes the pid-provider lists for the server-process (to which I attach dtrace with "-p nnnn") are coming from "ld.so.1".
There''s not a single one from my modules.
If I''m specifying "a.out" (or any of our shared-objects) as the
2006 Oct 24
15
How to emit associative array after ^C
Boy am I a dummy. I want to simply dump out unfreed allocations when I terminate the script. What''s the secret sauce?
#!/usr/sbin/dtrace -s
pid$1::MyAlloc:return
{
bufs[arg1] = walltimestamp;
}
pid$1::MyFree:entry
/bufs[arg0]/
{
bufs[arg0] = 0;
}
This message posted from opensolaris.org
2006 Oct 24
3
how to debug shared-memory using dtrace/mdb
A complex data structure stored in the shared-memory.
Couple of processes attach to the shared-memory...
Some of them spawn child procs...
Two processes have change notification mechanism encoded...
Basically the producer timestamps and the consumer compares the timestamp against it''s snapshot, if they differ then does use a semaphore to lock and gather critical data and replaces the
2006 Apr 06
4
Why is my kernel eating my memory
Can someone, more learned in the ways of dtrace point me at what to look at to help understand why the kernel on one machine is using tons of memory, while another machine doing the same task/same user load is not.
swapinfo for the "afflicted" machine shows
RAM _______Total 16384 Mb
RAM Unusable 73 Mb
RAM Kernel 9226 Mb
RAM Locked 2 Mb
RAM Used