Disk I/O Information

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












i want to get the read and write, service time, queue length and wait time of my disks. the OS is CentOS 6. i use iosts. when i run this command:



iostat -x -d /dev/sda



the output is:



 Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util 
sda 4.04 272.41 21.63 58.30 7565.96 3037.79 132.66 0.06 0.74 0.66 5.26


which return the total value since system been up. but i want disk information at time. for that i should run iostat -x -d /dev/sda 1 2.

the output is :



Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
sda 4.04 272.40 21.63 58.30 7565.86 3037.75 132.66 0.06 0.74 0.66 5.26
Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
sda 0.00 11.00 0.00 12.00 0.00 184.00 15.33 0.32 26.75 3.08 3.70


which the second part shows what i want. is there any way to get those information directly without 1 2? i searched man page but didnt find anything. or is there any other way to get those information instead of iostat? (and i cant install new packages on systems -_-).









share

























    up vote
    0
    down vote

    favorite












    i want to get the read and write, service time, queue length and wait time of my disks. the OS is CentOS 6. i use iosts. when i run this command:



    iostat -x -d /dev/sda



    the output is:



     Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util 
    sda 4.04 272.41 21.63 58.30 7565.96 3037.79 132.66 0.06 0.74 0.66 5.26


    which return the total value since system been up. but i want disk information at time. for that i should run iostat -x -d /dev/sda 1 2.

    the output is :



    Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
    sda 4.04 272.40 21.63 58.30 7565.86 3037.75 132.66 0.06 0.74 0.66 5.26
    Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
    sda 0.00 11.00 0.00 12.00 0.00 184.00 15.33 0.32 26.75 3.08 3.70


    which the second part shows what i want. is there any way to get those information directly without 1 2? i searched man page but didnt find anything. or is there any other way to get those information instead of iostat? (and i cant install new packages on systems -_-).









    share























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      i want to get the read and write, service time, queue length and wait time of my disks. the OS is CentOS 6. i use iosts. when i run this command:



      iostat -x -d /dev/sda



      the output is:



       Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util 
      sda 4.04 272.41 21.63 58.30 7565.96 3037.79 132.66 0.06 0.74 0.66 5.26


      which return the total value since system been up. but i want disk information at time. for that i should run iostat -x -d /dev/sda 1 2.

      the output is :



      Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
      sda 4.04 272.40 21.63 58.30 7565.86 3037.75 132.66 0.06 0.74 0.66 5.26
      Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
      sda 0.00 11.00 0.00 12.00 0.00 184.00 15.33 0.32 26.75 3.08 3.70


      which the second part shows what i want. is there any way to get those information directly without 1 2? i searched man page but didnt find anything. or is there any other way to get those information instead of iostat? (and i cant install new packages on systems -_-).









      share













      i want to get the read and write, service time, queue length and wait time of my disks. the OS is CentOS 6. i use iosts. when i run this command:



      iostat -x -d /dev/sda



      the output is:



       Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util 
      sda 4.04 272.41 21.63 58.30 7565.96 3037.79 132.66 0.06 0.74 0.66 5.26


      which return the total value since system been up. but i want disk information at time. for that i should run iostat -x -d /dev/sda 1 2.

      the output is :



      Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
      sda 4.04 272.40 21.63 58.30 7565.86 3037.75 132.66 0.06 0.74 0.66 5.26
      Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
      sda 0.00 11.00 0.00 12.00 0.00 184.00 15.33 0.32 26.75 3.08 3.70


      which the second part shows what i want. is there any way to get those information directly without 1 2? i searched man page but didnt find anything. or is there any other way to get those information instead of iostat? (and i cant install new packages on systems -_-).







      linux centos performance disk io





      share












      share










      share



      share










      asked 6 mins ago









      BlackCrystal

      438




      438

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476947%2fdisk-i-o-information%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476947%2fdisk-i-o-information%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay