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

Disk throughput in node console #1751

Closed
hryamzik opened this Issue Jun 17, 2016 · 7 comments

Comments

Projects
None yet
2 participants
@hryamzik
Copy link

hryamzik commented Jun 17, 2016

Shows speed in bytes counted as node_disk_sectors_read * 512 but sector size could be different. Looks like node_disk_bytes_read should be used instead.

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Jun 17, 2016

The sector size is always 512 for that variable, and that's how node_disk_bytes_read is calculated.

@hryamzik

This comment has been minimized.

Copy link
Author

hryamzik commented Jun 17, 2016

So if I have 4 KB sectors I'll have to multiply by 8?

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Jun 17, 2016

It'll multiply by 512, and produce the correct value.

@hryamzik

This comment has been minimized.

Copy link
Author

hryamzik commented Jun 17, 2016

So does this mean that for a 4 KB blocks device node_exporter will report each block as 8 ones?

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Jun 17, 2016

Yes, that's what the kernel does.

@hryamzik

This comment has been minimized.

Copy link
Author

hryamzik commented Jun 17, 2016

Got it, thank you!

@hryamzik hryamzik closed this Jun 17, 2016

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.