Skip to content

Commit

Permalink
Update bbssd script
Browse files Browse the repository at this point in the history
  • Loading branch information
huaicheng committed Sep 5, 2023
1 parent b9bb4ea commit 68032f3
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions femu-scripts/run-blackbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ IMGDIR=$HOME/images
OSIMGF=$IMGDIR/u20s.qcow2

# Configurable SSD Controller layout parameters (must be power of 2)
secsz=512
secs_per_pg=8
pgs_per_blk=256
blks_per_pl=256
pls_per_lun=1 # still not support multiplanes
luns_per_ch=8
nchs=8
ssd_size=12288 # in MegaBytes
secsz=512 # sector size in bytes
secs_per_pg=8 # number of sectors in a flash page
pgs_per_blk=256 # number of pages per flash block
blks_per_pl=256 # number of blocks per plane
pls_per_lun=1 # keep it at one, no multiplanes support
luns_per_ch=8 # number of chips per channel
nchs=8 # number of channels
ssd_size=12288 # in megabytes, if you change the above layout parameters, make sure you manually recalculate the ssd size and modify it here, please consider a default 25% overprovisioning ratio.

# Latency in nanoseconds
pg_rd_lat=40000
pg_wr_lat=200000
blk_er_lat=2000000
ch_xfer_lat=0
pg_rd_lat=40000 # page read latency
pg_wr_lat=200000 # page write latency
blk_er_lat=2000000 # block erase latency
ch_xfer_lat=0 # channel transfer time, ignored for now

# GC Threshold (1-100)
gc_thres_pcent=75
Expand Down Expand Up @@ -72,4 +72,4 @@ sudo x86_64-softmmu/qemu-system-x86_64 \
-net user,hostfwd=tcp::8080-:22 \
-net nic,model=virtio \
-nographic \
-qmp unix:./qmp-sock,server,nowait 2>&1 | tee log
-qmp unix:./qmp-sock,server,nowait 2>&1 | tee log

0 comments on commit 68032f3

Please sign in to comment.