Skip to content

Proper definition of IOPS #18

@vitalyisaev2

Description

@vitalyisaev2

Hello, could you please check the definition of IOPS. In this article it is said that

r/s & w/s- Read/Write requests (after merges) per-second. Their sum is the IOPS!

But if you have a look at iostat source code, you'll see that r/s is defined as a difference between two rd_ios:

			/* r/s */
			cprintf_f(NO_UNIT, 1, 7, 2,
				  S_VALUE(ioj->rd_ios, ioi->rd_ios, itv));

whereas rd_ios is defined as

	/* # of read operations issued to the device */
	unsigned long rd_ios		__attribute__ ((packed));

so rd_ios has nothing to do with merges.

Therefore, r/s reflects the rate of requests issued, but yet not merged. This runs counter to your definition of IOPS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions