• No related posts.

      • No related posts.

        • No related posts.

          • No related posts.

              No related posts.

            IOP vmstat pidstat

            IOPP

            git clone git://git.postgresql.org/git/~markwkm/iopp.git
            cd iopp
            cmake CMakeLists.txt
            make

            shifu:~/iopp# make install DESTDIR=/usr
            [100%] Built target iopp
            Install the project...
            -- Install configuration: ""
            -- Installing /usr/bin/iopp
            -- Installing /usr/share/man/man8/iopp.8
            

            Usage:

            shifu:~/iopp# iopp -h
            usage: iopp -h|--help
            usage: iopp [-ci] [-k|-m] [delay [count]]
                        -c, --command display full command line
                        -h, --help display help
                        -i, --idle hides idle processes
                        -k, --kilobytes display data in kilobytes
                        -m, --megabytes display data in megabytes
                        -u, --human-readable display data in kilo-, mega-, or giga-bytes
            

            The manual page explains each output field:

            * pid: The process id.
            * rchar: The number of bytes which this task has caused to be read from storage.
            * wchar: The number of bytes which this task has caused, or shall cause to be written to disk.
            * syscr: Count of the number of read I/O operations.
            * syscw: Count of the number of write I/O operations.
            * rbytes rkb rmb reads: Count of the number of bytes which this process really did cause to be fetched from the storage layer.
            * wbytes wkb wmb writes: Count of the number of bytes which this process really did cause to be sent to the storage layer.
            * cwbytes cwkb cwmb cwrites: The number of bytes which this process caused to not happen, by truncating pagecache.
            * command: Filename of the executable.

            IOTOP

            yum install iotop

            Launch:
            iotop

            Sysstat

            yum install sysstat

            [root@box ~]# iostat
            Linux 2.6.27.12-170.2.5.fc10.i686 (box) 	03/17/2009
            
            avg-cpu:  %user   %nice %system %iowait  %steal   %idle
                       4.05    0.02    0.94    0.14    0.00   94.86
            
            Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
            sda               1.35        21.15        20.95   46128992   45686368
            sda1              0.01         0.15         0.00     337230        112
            sda2              0.00         0.00         0.00         26          0
            sda5              1.30        13.68        20.39   29837738   44474784
            sda6              0.04         7.30         0.54   15918549    1166904
            sda7              0.00         0.02         0.02      34443      44568
            
            [root@box ~]#  pidstat 2 5
            Linux 2.6.27.12-170.2.5.fc10.i686 (box) 	03/17/2009
            
            04:04:47 PM       PID   %user %system    %CPU   CPU  Command
            04:04:49 PM      5932    1.96    0.49    2.45     0  Xorg
            04:04:49 PM     26639    0.49    0.49    0.98     0  top
            04:04:49 PM     26721    0.49    1.47    1.96     0  pidstat
            

            No related posts.

            This entry was posted in Centos, Debian, Fedora, Linux and tagged , , , .

            Leave a Reply