| To: | linux-xfs@xxxxxxxxxxx |
|---|---|
| Subject: | direct-IO writes strange behavior |
| From: | Alberto Nava <beto@xxxxxxxxxxx> |
| Date: | Fri, 21 Nov 2003 18:52:46 -0800 |
| Sender: | linux-xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 |
Hi, I'm seeing a very strange behavior when I write to a file using 512k direct-io writes. The filesystem is XFS and the kernel is 2.6.0-test9. The first time I do it the 512k writes are broken down into 4k requests and the drives only see these small requests ( a lot of them). The second time (after the data is been written once) the 512k writes are preserved all the way to the drives. Preallocating the space for the file have little impact on this behavior. Here is a more detail description of the two situations
- perform 2000 sequential direct IO writes onto the file starting from 0 - all the BIOs that are passed to the io-scheduler are 4k long second time:
- xfs_bmap /content/file
/content/file:
0: [0..2047999]: 348456960..350504959- perform 2000 sequential direct IO writes onto the file starting from 0 - all the BIOs that are passed to the io-scheduler are 512k long Is this behavior expected on XFS or is this a generic direct-IO related issued? Any information or suggestions would be greatly appreciated? Thanks beto |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: logbufs size?, Nathan Scott |
|---|---|
| Next by Date: | Re: logbufs size?, Andi Kleen |
| Previous by Thread: | TAKE 904196 - Merge up to 2.4.23-rc3, Nathan Scott |
| Next by Thread: | Re: direct-IO writes strange behavior, Alberto Nava |
| Indexes: | [Date] [Thread] [Top] [All Lists] |