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

How to use NVMeVirt to implement ZNSwap? #5

Open
Shunyinghappyday opened this issue Jul 9, 2024 · 0 comments
Open

How to use NVMeVirt to implement ZNSwap? #5

Shunyinghappyday opened this issue Jul 9, 2024 · 0 comments

Comments

@Shunyinghappyday
Copy link

Hello, @shaiberg1 ~~

I want to use NVMeVirt to implement ZNSwap

VM RAM : 16GB (VirtualBox & Ubuntu22.04)

  1. In NVMeVirt
    Memmap : 4GB(Start), 6GB(Offset)
    ZNS SSD size : 4GB
    Zone size : 128MB
    image

  2. In ZNSwap (I do the following command)
    sudo swapoff /swapfile
    sudo systcl vm.swappiness=100
    sudo nvme zns reset-zone -a /dev/nvme0n1
    echo 10 | sudo tee /sys/kernel/mm/zns_swap/nr_swap_zones : Swap zone = 10(Total = 1280MB)
    echo 3 | sudo tee /sys/kernel/mm/zns_swap/zns_policy
    sudo mkswap /dev/nvme0n1
    sudo swapon /dev/nvme0n1
    image

  3. Use htop to monitor the usage of swap when I run GCN code

Problem :
I don't know why it keeps only using 4k swap space and it crashes my system when I run GCN code.
image

How can i solve it?
Please let me know, thanks!!!

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

1 participant