Skip to content
New issue

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

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

Already on GitHub? # to your account

Why set ppa.g.blk = zns->active_zone in get_new_page? #166

Open
realcedriccheng opened this issue Nov 22, 2024 · 0 comments
Open

Why set ppa.g.blk = zns->active_zone in get_new_page? #166

realcedriccheng opened this issue Nov 22, 2024 · 0 comments

Comments

@realcedriccheng
Copy link
Contributor

Hi,

I found that when getting a new ppa, FEMU sets ppa.g.blk as zns->active_zone.

ppa.g.blk = zns->active_zone;

Where zns->active_zone is the current zone id and ppa.g.blk cannot be greater than NUM_BLOCKS_PER_CHIP.

So this means that the number of zones cannot be greater than NUM_BLOCKS_PER_CHIP, and when the zone size is small, the ppa would be invalid.

For example, I currently set SSD_SIZE_MB=32768 and ZONE_SIZE=128 while NUM_BLOCKS_PER_CHIP=32. So I have 256 zones but I can only use 32 of them, otherwise the ppa would be invalid.

This behavior seems a bit unexpected. Could you please provide some guidance or clarification on this issue?

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

No branches or pull requests

1 participant