Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix page size#123

Open
James23rc wants to merge 1 commit intoMoatLab:master from
James23rc:master
Open

fix page size #123
James23rc wants to merge 1 commit intoMoatLab:master from
James23rc:master

Conversation

@James23rc
Copy link

@James23rc James23rc commented Oct 5, 2023

Size of a page is 4096 bytes, which is 8 * 512 bytes, not 4096 * 512 bytes(which is 2MB).

Copy link
Author

Copy link
Contributor

inhoinno commented Oct 14, 2023
edited
Loading

Hello James23rc,
Thanks for your valid point out. I acknowledged your commit.

However, I have little worries about hardcoding the numbers such as /4096, /8. (I know /4096 things are we did, but still)
So I'm considering not to take your commit, at the moment.
Please see the reason below.

Size of the page in SSD is also a configurable parameter(Scalability)
and hardcoding such as ( lba / 8 ) hinders understanding the code.(Code visibility)

Using macro something like this is better, this is just an example

#define _4KB 4096 
#define LBA_TO_LPN (SSD_PAGE_SIZE / HOST_LBA_SIZE)

Again, appreciate for your commit, we will reflect your point soon :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@hansenidden18 hansenidden18 Awaiting requested review from hansenidden18

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /