Git Product home page Git Product logo

Comments (4)

huaicheng avatar huaicheng commented on May 24, 2024

Hi,

If your disk image size matches the size in the configuration file, it should be fine.
For the configuration file, the total simulated SSD size can be calculated as
sim_ssd_sz = # of flash-chips * # of blocks per chip * # of pages per block * # of sectors per page * sector size. (assuming # of planes per chip is 1).

Make sure sim_ssd_sz * (1 - OVP) >= 16GB here.

The blackbox FTL you are using is no longer maintained, we created a new FTL specifically designed for FEMU model, checkout the newest commit in master branch. I suggest you use the new one. We will add some documents later.

from femu.

liorgordon avatar liorgordon commented on May 24, 2024

thank you for your quick response.
I decided to multilply the number of blocks per chip by 16 in order to get the size I wanted and checkedout to the lastest commit like you suggested but I still wasn't able to create the larger ssd.

since I've clearly did something wrong i thought it would be best if I'd eleborate on what I've done.
I've created a vssd1.raw file with a size of 16GB using the qemu-img create command and put it in the images dir. I've also changed the BLOCK_NB var in the vssd1.conf file from 16 to 256.
when running the black box script and using the fdisk -l command (from within the femu vm) I could see the sda1 device and the nvme0n1 device but it's size was still 1 GB.
obivously I've misunderstood something in this process and I'd appriciate it if you'll tell me what am I missing here.

also, I didn't quite understand what you meant here:
Make sure sim_ssd_sz * (1 - OVP) >= 16GB here.

thank you so much for your help.

from femu.

huaicheng avatar huaicheng commented on May 24, 2024

Make sure sim_ssd_sz * (1 - OVP) >= 16GB here.

Oh, sorry, you can ignore this part ..

I'm gonna close this issue, just in case u have more questions, feel free to re-open it, thx!

from femu.

theanoli avatar theanoli commented on May 24, 2024

What is the relationship between the device size as given in the QEMU command and and the device size as hard-coded into ftl.c? If the passed-in device size is smaller than the hard-coded device size, then is the difference equivalent to overprovisioned device capacity?

A related issue: I set them to the same thing (devsz_mb=2048, which the FEMU OS reports as 2147483648 bytes, and the appropriate settings in ftl.c) and I see the following: RD-ERRRRRRRRRR,start_lpn=524287,end_lpn=524288,tt_pgs=524288. (I also checked the read size and it's 8 sectors.) What is going wrong here---shouldn't the ending LPN wrap around?

from femu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.