Re: approaches and tools to debug excessive cpu usage...



Sheth Raxit wrote On 03/13/07 03:15,:
Hi

OS : Solaris 10, sparc,

Having a user level multitreaded,socket program (having i/o intensive
task for disk read/write).

after running few hours normally it is Eating more cpu (checked using
top) , and going to eat towards eating 100% cpu. (b4 it eat 100%, root
is killing by signal 9)

load remains the same during normal operation and excessive cpu
consumption,
non-repeatable problem :(

how to debug and control the cpu usage ? (is gdb/dbx is helpful ?)
(or do i required strace and some other tools) ?

Is there any code checklist (for C-*Nix) to avoid excessive cpu
usage. ?

The Sun Studio tool suite (free) includes the Collector and
the Analyzer, which are designed to help with just this sort of
problem. You can run the program under Collector control from
the outset, or you can attach to a running process with dbx and
use it to start collection in mid-stream.

Disclaimer: I work for Sun, but don't speak for Sun.

--
Eric.Sosman@xxxxxxx
.



Relevant Pages

  • Re: Temperature calculation for parabolic solar mirrors
    ... Focal point of a parabolic dish can be as small as the dish of the sun seen from Earth. ... If you do not drain any energy from the collector, and you eliminate convection ... since the collector is at the same temp as the sun, so follows the same black-body radiation curve. ...
    (sci.energy)
  • Re: In search of... Sun 2/50!
    ... we don't have any Sun-2s in stock. ... But we were recently asked for a Sun 2/120, ... If anyone wants to contact the collector, ... Reference Manual Set. ...
    (comp.sys.sun.hardware)
  • Re: Lowes selling solar collectors
    ... Just plug them in any 120f receptacle and aim them at the sun. ... Cite? ... collector. ... solar collectors if they can work out the tax credits and grid tie-in ...
    (alt.home.repair)
  • Re: Lowes selling solar collectors
    ... Just plug them in any 120f receptacle and aim them at the sun. ... Cite? ... collector. ... solar collectors if they can work out the tax credits and grid tie-in ...
    (alt.home.repair)