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

Miscalculation of lbas read/written #5

Open
mzealey opened this issue Jul 5, 2020 · 2 comments
Open

Miscalculation of lbas read/written #5

mzealey opened this issue Jul 5, 2020 · 2 comments

Comments

@mzealey
Copy link

mzealey commented Jul 5, 2020

a->pretty_value = fourtyeight * 65536LLU * 512LLU / 1000000LLU;

This line seems does lbas-read/written * 65536 * 512 (sectors) / 1000000 (mb). However on my various varieties of Samsung ssd this 65536 multiple is incorrect, it should actually just be * 512 / 1000000 to get mb. This means I'm having to put a *16 factor in to convert to bytes/sec

@ginahoy
Copy link

ginahoy commented Dec 22, 2021

I noticed the same problem on my Samsun SSD (EVO 850). skdump returns 325214 TB written, which is nonsensical. So if I divide the reported LBA's written by 64k, is that the actual TBW value as recorded by my SSD?

@flechaig
Copy link

Same issue with [Samsung SSD 860 EVO mSATA 500GB].

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

No branches or pull requests

3 participants