On Tue, May 04, 2010 at 03:23:09PM -0700, Jianhua Yang wrote: > I wanted to find out what the single threaded process was doing with dtrace > but it returned with "Not enough space"error: > > # dtrace -ln 'pid$target:::entry,pid$target:::return {trace(timestamp);}' -p > 25050 > dtrace: invalid probe specifier pid$target:::entry,pid$target:::return > {trace(timestamp);}: failed to create return probe for 'kdstf1011000km': Not > enough space > > questions are: > what does "Not enough space" means ? > how to avoid such errors ?
There's a limit to the number of pid probes that can be created at a single time. For my shell, this seems to work: dtrace -l -n "pid$$:::entry" -p $$ However, 'dtrace -l -Ppid$$ -p $$" generates a no-space error. Often times, if you can narrow down the probe specification you'll reduce the number of functions to the point where you won't exceed the limit. It's also possible to increase the limit of available pid probes, but it's still possible to hit the ENOSPC error. You don't want DTrace to use up all of your memory. http://www.solarisinternals.com/wiki/index.php/DTrace_Topics_Errors#failed_to_create_probe_..._Not_enough_space -j _______________________________________________ perf-discuss mailing list perf-discuss@opensolaris.org