Search code examples
dockernetwork-programmingoperating-systemvirtual-machinedisk-io

Can anyone explain me the difference between NET I/O vs BLOCK I/O in docker stats?


I am getting the following stats for my redis while running docker stats command.

docker stats output

I want to know about NET I/O and BLOCK I/O. I read few documentation they are saying about BLOCK I/O is something related to disk operation. But I am not sure what is this NET I/O. Can anyone help me here to know about these?


Solution

  • Block I/O stats: The amount of data the container has read to and written from block devices on the host. In other words the amount of Bytes written/read from your container to the disk.

    Network I/O stats: The amount of data the container has sent and received over its network interface. Displays total bytes received (RX) and transmitted (TX). In other words the amount of Bytes your container had sent/received over the network.

    Also the official doc.