Re: /proc/profile

From: Tommy Reynolds (TommyReynolds_at_yahoo.com)
Date: 04/30/05

  • Next message: M.Kmann: "Re: implementing ioctl's for device drivers"
    Date: Sat, 30 Apr 2005 09:11:32 -0500
    
    

    On Wed, 27 Apr 2005 09:45:02 -0700, Jaggu wrote:

    > I tried to profile kernel, by using readprofile I got
    > following data.I dont know how to analyze data, document says the third
    > column is normalized load of the procedure..calculated as ratio between
    > number of clock ticks and length of procedure...
    >
    > root@ml310:/# readprofile
    > 4 _stext 0.1000
    > 4722 _nmask_and_or_msr 147.5625
    > 1 copy_page 0.0069
    > 1 do_page_fault 0.0009
    > 1 memset 0.0109

    Think of the third column this way:

    1) A counter is incremented on every clock tick. The counter is chosen
       based on which kernel subroutine is being executed. (This is not
       really how it is implemented, but it gets the idea across.)

    2) Now, we expect that a large subroutine takes longer to execute than a
       smaller subroutine. If the small subroutine gets lots and lots of counts,
       then that subroutine is contributing more than its share to the system
       performance load.

    3) So if you sort the output in descending order, you can see which
       kernel routines are contributing most to the overall system load.
       Concentrate on optimizing those routines and you can make the most
       improvement on the system.

    How do we tell how big subroutines are? Hints from ld(1).

    Cheers


  • Next message: M.Kmann: "Re: implementing ioctl's for device drivers"

    Relevant Pages

    • Re: Is there any way to start (and later quit) an EXE file.
      ... the QuitApp subroutine so that it will terminate any process named "VNC.exe" ... Is there also a way to avoid the first macro trying to load the EXE a ... regain complete control of XP and lose barcode scanner control. ... You can use the Shell function to launch an executable file but you ...
      (microsoft.public.excel.misc)
    • Re: Is there a way to construct a generic "list" by Fortran 95?
      ... Type:: Load ... Fortran 2003, at which point you'll be able to use unlimited ... SUBROUTINE add_Element ... LOGICAL:: successful ...
      (comp.lang.fortran)
    • Re: How to map a subroutine to a particular address in rom?
      ... Now I want to load this subroutine to ... I suggest looking at the manuals ... A common thing to do on PCs is to have an initialization routine ...
      (comp.lang.c)
    • Making forms full screen........
      ... I use this subroutine each time I load a form to make it it full-screen. ... I can't imagine why this would suddenly be happening, or how exactly this subroutine is being fooled? ... Public Sub SizePageToScreen ...
      (microsoft.public.vb.general.discussion)