Re: Finding what's causing I/O

From: Eric Anderson (anderson_at_centtech.com)
Date: 09/23/05

  • Next message: Eric Anderson: "Re: 3Ware 7500-4 Slow"
    Date: Fri, 23 Sep 2005 07:27:58 -0500
    To: Francisco Reyes <lists@natserv.com>
    
    

    Francisco Reyes wrote:
    > On Fri, 23 Sep 2005, Joseph Koshy wrote:
    >
    >>> Is there a way to find out which program(s) are causing
    >>> the I/O?
    >>
    >>
    >> ktrace(8); you can use it to trace all descendants of 'init'.
    >
    >
    > Looking at the man page it's non-obvious how to use it (to me).
    >
    >
    > Specially it seems one needs to indicate a pid or a command. How do I
    > trace all programs?

    Maybe you provide the init pid, and the -i option. I played with this a
    bit last night, and found out I really love this tool! Here's what I
    did to play with it:

    (find pid of a bash shell running - was 1268)
    In another shell:
    ktrace -tni -ip 1268

    In ktraced shell:
    cd /
    cd /tmp
    touch t
    cat t
    rm t

    In ktrace shell window:
    ktrace -C
    kdump | less

    That should give you a quick idea how to use it. The man page is pretty
    decent.

    Eric

    -- 
    ------------------------------------------------------------------------
    Eric Anderson        Sr. Systems Administrator        Centaur Technology
    Anything that works is better than anything that doesn't.
    ------------------------------------------------------------------------
    _______________________________________________
    freebsd-performance@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-performance
    To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org"
    

  • Next message: Eric Anderson: "Re: 3Ware 7500-4 Slow"

    Relevant Pages

    • Re: Finding whats causing I/O
      ... > Francisco Reyes wrote, ... >>Specially it seems one needs to indicate a pid or a command. ... >>trace all programs? ...
      (freebsd-performance)
    • Re: Finding whats causing I/O
      ... Francisco Reyes wrote, ... > Specially it seems one needs to indicate a pid or a command. ... Shanker Balan ... To unsubscribe, ...
      (freebsd-performance)