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

Alignment #4

Open
gregoryyoung opened this issue Nov 2, 2014 · 2 comments
Open

Alignment #4

gregoryyoung opened this issue Nov 2, 2014 · 2 comments

Comments

@gregoryyoung
Copy link

You hard code alignment in windows to 4096 you should either use http://msdn.microsoft.com/en-us/library/aa364935%28VS.85%29.aspx which gives the sector size or io control to get it instead http://msdn.microsoft.com/en-us/library/windows/desktop/aa363147(v=vs.85).aspx

Also some of the comments are wrong re disabling drive level caches directio does nothing with this the controller can still cache etc (and most do even if they are not safe!)

Cheers,

Greg

@ncw
Copy link
Owner

ncw commented Nov 3, 2014

Thank you very much for your comments.

I chose the value 4096 as it is big enough for all current disks as is discussed here.

If you could propose a patch to change the 4096 constant, or fix any wording that would be an improvement.

Thanks

Nick

PS I'm not really a windows expert so any help appreciated!

@gregoryyoung
Copy link
Author

No worries I'll pull later today. Are their instructions for test running
etc? I only looked at the one file so forgive me if it's covered.

Cheers,

Greg

On Monday, November 3, 2014, Nick Craig-Wood [email protected]
wrote:

Thank you very much for your comments.

I chose the value 4096 as it is big enough for all current disks as is discussed
here
http://msdn.microsoft.com/en-us/library/windows/desktop/cc644950(v=vs.85).aspx
.

If you could propose a patch to change the 4096 constant, or fix any
wording that would be an improvement.

Thanks

Nick

PS I'm not really a windows expert so any help appreciated!


Reply to this email directly or view it on GitHub
#4 (comment).

Studying for the Turing test

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

2 participants