search for: dynvarsize

Displaying 10 results from an estimated 10 matches for "dynvarsize".

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 uint64_t last[600][4]; .. but get an error: # ./thomson5 dtrace: failed to enable...
2009 Sep 09
10
dtrace overhead and proper measuring technique
I''m trying to time a function within Firefoxwith a pid$target probe [2]. e.g dtrace -Zqw -x dynvarsize=64m -x evaltime=preinit -p 13954 -s menu- construct.d -s sigcont.d elapsed: 12.7942481ms cpu : 7.7911194ms count : 40 times I''m also measuring Firefox startup time by running it arguments like this: ... file:///Users/joelr/work/mozilla/startup/startup.html#`python -c ''...
2007 Nov 16
2
USDT probes from PostgreSQL
...: postgresql*:::lwlock-acquire { thee line action } and the same for the corresponding release-, the waitstart- and the waitend probes. Result: had to reboot my T2000 by using the system console and powering it off and on again after waiting for more than 12 hours to see if it came back. (used -x dynvarsize=8m) Sure too many probes enabled. However this result is lets say "surprising". Indeed very dangerous since database can be used in production environments. In my view this is not good. Ok I now try to enable these 4 probes. Each probe in three clauses (12 clauses per process) for 25 p...
2009 Oct 23
2
Using dapptrace. Can't seem to trace user functions with defaults or specifying -u<lib>
Hi Folks, I''m trying to get to grips with dapptrace, running it on my Mac. Everything seems pretty straightforward, except for - of course - what I''m trying to do. I want to focus in on my code but I can''t seem to be able to output just the functions I want, i.e. user functions. The -U option gives everything. Too much of course. Leaving that blank means the
2009 Oct 08
3
Solution to problem : dynamic variable drops with non-empty dirty list
...ussed this particular problem. I tried to use the solution that those posts suggested, but I am still having a problem with my dtrace application running on a heavily loaded system. I have the following lines in my D script, #pragma D option aggsize=8m #pragma D option bufsize=16m #pragma D option dynvarsize=16m #pragma D option aggrate=0 #pragma D option stackframes=MAX_STACK #pragma D option cleanrate=50Hz but still I am getting the following messages, Drop: 17458 dynamic variable drops Drop: 3426 dynamic variable drops with non-empty dirty list and the amount data that my D script is re...
2007 Jun 11
1
2 iosnoop scripts: different results
...84 /usr/bin/ls 8192 dad1 R 10.360 ls 5184 /dtrace/mod2/examples 1024 dad1 R 0.285 fsflush 3 /var/tmp/dtrace-1b 8192 dad1 W 0.307 Here is the script: #!/usr/sbin/dtrace -qs #pragma D option dynvarsize=16m BEGIN { printf("%16s %5s %32s %7s %10s %2s %7s\n", "COMMAND", "PID", "FILE", "SIZE", "DEVICE", "RW", "MS"); } io:::start { start[args[0]->b_edev, args[0]->b_blkno] = timestamp; command[args[0]->b_...
2008 Jan 07
0
[Fwd: Zeroing out non integers]
Guys, sorry for the reposting, but I''ve got some of suggestions in private all of them assuming that I was talking about general purpose C++ programming. This is all within the DTrace framework, and it still seems to be a problem for me. I can combat it with increasing the dynvarsize but that doesn''t seem to be too attractive. Any hints will be highly appreciated. Thanks, Roman. -------------- next part -------------- An embedded message was scrubbed... From: Roman Shaposhnik <rvs at sun.com> Subject: Zeroing out non integers Date: Wed, 02 Jan 2008 13:04:15 -08...
2005 Sep 22
0
io provider and files in a forceddirectio mounted filesystem
The following script is used as a first attempt to discover IO patterns in a dbase setup: #------------------------------------------------------------------ #pragma D option dynvarsize=128m dtrace:::BEGIN { } pid$target::kaio:entry { self->doit = 1; } pid$target::_aiodone:return { self->doit = 0; } io:::start /self->doit || execname == "oracle"/ { block[args[2]->fi_pathname, args[0]->b_blkno ] = timestamp; } io:::done /block[...
2013 Oct 15
0
How to unstick ZFS resilver?
...ng the Web is no help; can anyone suggest a remedial action? (This is on 9.1-RELEASE, with our local patches, and all the drives are SAS.) In exchange, I offer the following DTrace script which I used to identify the slow SAS drives: #!/usr/sbin/dtrace -s #pragma D option quiet #pragma D option dynvarsize=2m inline int TOO_SLOW = 100000000; /* 100 ms */ dtrace:::BEGIN { printf("Tracing... Hit Ctrl-C to end.\n"); } fbt::dastrategy:entry { start_time[(struct buf *)arg0] = timestamp; } fbt::dadone:entry /(this->bp = (struct buf *)args[1]->ccb_h.periph_priv.entries[1]...
2009 Aug 28
13
putting a running app into trace mode
Suppose I have a USDT probe in Firefox and that I''m trying to catch the startup with a probe like this: proc:::exec-success /execname == "firefox-bin"/ { start = timestamp; } and stop tracing when Firefox hits this USDT probe: mozilla:::main-entry { exit(0); } How do I put the running firefox-bin into "trace mode" so that my USDT probe fires? Thanks, Joel