-
Notifications
You must be signed in to change notification settings - Fork 204
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
mkfs.ext4 infinitely wait when "Writing superblocks and filesystem accounting information" #4
Comments
FEMU is only emulating OCSSD with two planes right now. It's not suggested to change this value, please stick to lnum_pln=2. It's better you only change "lnum_ch" and "lnum_lun". Future FEMU will remove such restrictions. Make sure your $NVMEIMGF0 size is power of 2 and when you change the emulated device size, please remove the original $NVMEIMGF0 file. The script will create a new one for you. If it still doesn't work, could you try the default configuration? and list your modified configurations here so I can do a further analysis. |
Thanks for your reply.
|
Could you provide the following information in your settings:
|
OS: Ubuntu18.04
Only three new lines displayed by "dmesg" after creating the pblk target and creating ext4 on top of pblk.
It will infinitely waits there when "echo aaa > /dev/myssd", and there are no new lines displayed by dmesg. |
ok, I tried a Ubuntu-18.04 guest and indeed, the mkfs.ext4 process is stuck. My previous test with Ubuntu 14.04 is successful. Could you go back to use Ubuntu 14.04 first? |
My host OS is ubuntu-18.04, and the guest OS is ubuntu-14.04 that you sent me some days ago. Maybe host OS leads to this issue? What's your host OS? |
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS" Before you switch your host OS, I believe you should try the following instructions first, if it doesn't work, then switch host OS to 14.04 as well.
|
I have tried to remove the nvme image file and it still doesn't work in my case. |
I have tried ubuntu 14.04 server both as host OS and guest OS. In my case mkfs.ext4 still infinitely waits there, while you guys can succeed, which has confused me so much. Could anyone give some ideas? More detail configuration and environment are as following.
|
Based on your description, I have no clue where part went wrong. |
Up to now, in my case, mkfs.ext4 works on Guest kernel 4.15.0 and fails on kernel 4.16.0. In addition, when creating pblk using " nvme lnvm create -d nvme0n1 --lun-begin=0 --lun-end=3 -n mydevice -t pblk", femu_oc_rw will print following infos, I add "printf" in femu_oc_rw.
It turns out that pblk in linux kernel try to read some pages while the pages have never been written. I'm not sure whether it is reasonable, which happens both on Linux kernel 4.15.0 and 4.16.0. On Linux kernel 4.15.0, some writes follows and they will succeed. On Linux kernel 4.16.0, no writes information is printed by femu_oc_rw. It seems that "femu_oc_rw" gets no write request. |
Thanks for the update. Beside using different kernel versions, did you change anything else? It's good to know that 4.15.0 works for you. I guess 4.16.0 is moving towards OC2.0 (I need to double check).
Yes, it's ok. According to my understanding, lightnvm will read from the drive for some metadata, mapping table, etc during target initialization phase. |
now, 4-chnl ZNS is much faster than 1-chnl
Hi,
I run FEMU in white-box mode. It is ok to create a pblk target on top of Open-channel SSD by FEMU.
However, It will infinitely wait when I try creating a ext4 based on pblk.
The case is as the following picture shows:
It is waiting there infinitely.
Guest Configuration:
VM: Ubuntu18.04-Server
Kernel version: 4.16.0+
In fact, I try 14.04-server you supported and It waits there also in my case.I don't know what the wrong is. Could anyone give me some ideas?
The starting VM script is following:
The text was updated successfully, but these errors were encountered: