Scheduling of processes, and timers

daniel at sdl.mdcbbs.com daniel at sdl.mdcbbs.com
Thu Jun 13 23:10:21 AEST 1991


    
    I've written a program which interrupts another process every few
milliseconds and takes a copy of the stack. This information is later
processed to give profile information.

    I use sigitimer to wake myself up, and ptrace to interupt the other
process and take a copy of its stack. This has been developed on 
Sparcstations running SunOs4.1, but should work on other Unix variants.
   
Anyway I have two problems :-
                           
 1) Scheduling, the process doing the interrupting appears to get 
    scheduled during system calls in the process being monitored. In
    particular there is a very large bias to ioctl.

        Is scheduling likely to take place at system calls ?
        Is there a way round this if this is so ?
        Do I just give up and use gprof ?

 2) The timer resolution on a Sparc 2 is 100Hz, and as it is an
    umpty frumpt MIP box even if I cross the first hurdle I'll miss
    large chunks of code.

        Is there any other timer available on Sparcstations ?

Thanks

    Daniel Dignam
    daniel at sdl.mdcbbs.com

-- 
Daniel Dignam                           Shape Data Limited (McDonnell Douglas)
 Internet: daniel at sdl.mdcbbs.com           46 Regent Street
     UUCP: ...!uunet!sdl.mdcbbs.com!daniel   Cambridge CB2 1DB
    Voice: +44 223 316673  Fax: +44 223 316931  United Kingdom



More information about the Comp.unix.internals mailing list