All of lore.kernel.org
 help / color / mirror / Atom feed
* unaligned IO and starting LBA
@ 2019-10-15 21:36 smitha sunder
  2019-10-16 15:11 ` Elliott, Robert (Servers)
  0 siblings, 1 reply; 4+ messages in thread
From: smitha sunder @ 2019-10-15 21:36 UTC (permalink / raw)
  To: fio

Hello,



I have a 512 byte formatted nvme drive and I want to send an unaligned
IO and here’s the fio command line I am using , fio version fio-3.7

# fio --name=job1 --filename=/dev/nvme0n1  --rw=randwrite
--ioengine=libaio  --number_ios=1 --debug=io --bs_unaligned=1
--bs=1029

Starting 1 process

io       24015 drop page cache /dev/nvme0n1
io       24015 fill: io_u 0x8c9bc0:
off=0x1af7af9cec,len=0x405,ddir=1,file=/dev/nvme0n1
io       24015 prep: io_u 0x8c9bc0:
off=0x1af7af9cec,len=0x405,ddir=1,file=/dev/nvme0n1
io       24015 prep: io_u 0x8c9bc0: ret=0
io       24015 queue: io_u 0x8c9bc0:
off=0x1af7af9cec,len=0x405,ddir=1,file=/dev/nvme0n1
io       24015 calling ->commit(), depth 1
io       24015 io_u_queued_complete: min=1
io       24015 getevents: 1
io       24015 complete: io_u 0x8c9bc0:
off=0x1af7af9cec,len=0x405,ddir=1,file=/dev/nvme0n1
io       24015 close ioengine libaio
io       24015 free ioengine libaio



Node             SN                   Model
        Namespace Usage                      Format           FW Rev

---------------- --------------------
---------------------------------------- ---------
-------------------------- ---------------- --------

/dev/nvme0n1     160401RICHC01        PM1733V4TLC
        1           0.00   B /   1.92  TB    512   B +  0 B   NQ52
/dev/nvme1n1     160401RICHC01        PM1733V4TLC
        1           0.00   B /   1.92  TB    512   B +  0 B   NQ52



Shouldn’t I see D7BD7CE as the starting LBA for the write based on the
above offset (0x1af7af9cec) ?



From the PCI trace I see two writes with D7BD7C8 and D7BD7D0 as LBAs,
I am not sure why that is, any help is greatly appreciated :

; Write; Good; 11.345_5; 0; D7BD7C8; 1000; B008B; 0000; xxxx:A824;
00:10.336_991_850_0; 49.864_0; PCIe Expert Target(1:1:2);
; Write; Good; 13.761_5; 0; D7BD7D0; 1000; B008C; 0000; xxxx:A824;
00:10.336_995_406_0; 3.556_0; PCIe Expert Target(1:1:2);
; Identify; Good; 96359.046_9; 0;; 1000; 12; 0000; xxxx:A824;
00:10.433_423_218_0; 96427.812_0; PCIe Expert Target(1:1:2;
; Identify; Good; 41.635_5; 0;; 1000; 13; 0000; xxxx:A824;
00:10.439_182_147_0; 5758.929_0; PCIe Expert Target(1:1:2);

Thanks
smitha


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-12-19  3:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-15 21:36 unaligned IO and starting LBA smitha sunder
2019-10-16 15:11 ` Elliott, Robert (Servers)
2019-10-16 17:18   ` smitha sunder
2019-12-19  3:27     ` Sitsofe Wheeler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.