Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOPS 计算可能有误 #29

Closed
CornWorld opened this issue Jun 16, 2023 · 3 comments
Closed

IOPS 计算可能有误 #29

CornWorld opened this issue Jun 16, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@CornWorld
Copy link

image
RT

@spiritLHLS
Copy link
Owner

lemonbench的原生问题,有空看看也许能修复

@spiritLHLS spiritLHLS added the enhancement New feature or request label Jun 17, 2023
@spiritLHLS
Copy link
Owner

903474a

应该已修复,你看再测一次看看

@spiritLHLS
Copy link
Owner

spiritLHLS commented Jun 19, 2023

之前那个写入IOPS的计算是通过写入次数除以写入时间得到的:

DiskTest_WriteIOPS="$(echo ${DiskTest_WriteTime} $3 | awk '{printf "%d\n",$2/$1}')"

这种计算方法在大部分情况下是有效的,但对于较小的块大小和较大的写入次数,有偏差

因为IOPS是对每秒钟的读/写操作次数,而块大小和写入次数会影响到每个操作的大小。当块大小较小且写入次数较大时,每个操作的大小会减小,导致IOPS计算的结果偏小。

为了准确地计算IOPS,已经将写入操作的大小(块大小)与写入时间结合,得到总的写入字节数,然后将其除以写入时间来计算IOPS,这思路应该没毛病了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants