Re: XFS mounted with 'discard' option - deleting fio test files slow

2017-09-11 Thread Christoph Hellwig
On Fri, Sep 08, 2017 at 04:21:52PM -0700, Hao Chen wrote: > This is expected. To get a better performance of XFS on NVMe drive, it > is advised not use use the realtime discard option. > >

Re: XFS mounted with 'discard' option - deleting fio test files slow

2017-09-11 Thread Christoph Hellwig
On Fri, Sep 08, 2017 at 04:21:52PM -0700, Hao Chen wrote: > This is expected. To get a better performance of XFS on NVMe drive, it > is advised not use use the realtime discard option. > >

Re: XFS mounted with 'discard' option - deleting fio test files slow

2017-09-08 Thread Hao Chen
This is expected. To get a better performance of XFS on NVMe drive, it is advised not use use the realtime discard option. https://www.intel.com/content/dam/support/us/en/documents/ssdc/data-center-ssds/Intel_Linux_NVMe_Guide_330602-002.pdf Hao Lu, Qian [2017-09-08

Re: XFS mounted with 'discard' option - deleting fio test files slow

2017-09-08 Thread Hao Chen
This is expected. To get a better performance of XFS on NVMe drive, it is advised not use use the realtime discard option. https://www.intel.com/content/dam/support/us/en/documents/ssdc/data-center-ssds/Intel_Linux_NVMe_Guide_330602-002.pdf Hao Lu, Qian [2017-09-08 17:17:07 +]

Re: XFS mounted with 'discard' option - deleting fio test files slow

2017-09-08 Thread Lu, Qian
Adding amazon-linux-ker...@amazon.com On 9/7/17, 11:22 AM, "Lu, Qian" wrote: Hi XFS mailing list, Recently we received a bug report in the XFS filesystem with 'discard' option. I have been able to reproduce this issue. I used XFS filesystem to format NVMe SSD

Re: XFS mounted with 'discard' option - deleting fio test files slow

2017-09-08 Thread Lu, Qian
Adding amazon-linux-ker...@amazon.com On 9/7/17, 11:22 AM, "Lu, Qian" wrote: Hi XFS mailing list, Recently we received a bug report in the XFS filesystem with 'discard' option. I have been able to reproduce this issue. I used XFS filesystem to format NVMe SSD and mounted with

Re: XFS mounted with 'discard' option - deleting fio test files slow

2017-09-08 Thread Christoph Hellwig
On Fri, Sep 08, 2017 at 09:34:02AM +1000, Dave Chinner wrote: > 4k random write with direct IO. 5GB file. Probably got a million 4k > extents in it. Which means XFS has sent a million tiny 4k discards > to the device. Run 'xfs_bmap -vvp fio_test_file.*' to confirm. > > Don't use "-o discard" if

Re: XFS mounted with 'discard' option - deleting fio test files slow

2017-09-08 Thread Christoph Hellwig
On Fri, Sep 08, 2017 at 09:34:02AM +1000, Dave Chinner wrote: > 4k random write with direct IO. 5GB file. Probably got a million 4k > extents in it. Which means XFS has sent a million tiny 4k discards > to the device. Run 'xfs_bmap -vvp fio_test_file.*' to confirm. > > Don't use "-o discard" if

Re: XFS mounted with 'discard' option - deleting fio test files slow

2017-09-07 Thread Dave Chinner
[Your email is full of wacky symbols and needs line wrapping at 72 columns] On Thu, Sep 07, 2017 at 06:22:22PM +, Lu, Qian wrote: > Recently we received a bug report in the XFS filesystem with > 'discard' option. I have been able to reproduce this issue. I used > XFS filesystem to format

Re: XFS mounted with 'discard' option - deleting fio test files slow

2017-09-07 Thread Dave Chinner
[Your email is full of wacky symbols and needs line wrapping at 72 columns] On Thu, Sep 07, 2017 at 06:22:22PM +, Lu, Qian wrote: > Recently we received a bug report in the XFS filesystem with > 'discard' option. I have been able to reproduce this issue. I used > XFS filesystem to format

XFS mounted with 'discard' option - deleting fio test files slow

2017-09-07 Thread Lu, Qian
Hi XFS mailing list,   Recently we received a bug report in the XFS filesystem with 'discard' option. I have been able to reproduce this issue. I used XFS filesystem to format NVMe SSD and mounted with 'discard' option. When I tried to delete the test fio files, the session took long time. This

XFS mounted with 'discard' option - deleting fio test files slow

2017-09-07 Thread Lu, Qian
Hi XFS mailing list,   Recently we received a bug report in the XFS filesystem with 'discard' option. I have been able to reproduce this issue. I used XFS filesystem to format NVMe SSD and mounted with 'discard' option. When I tried to delete the test fio files, the session took long time. This