| To: | Joshua Schmidlkofer <menion@xxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: Strange df output |
| From: | Steve Lord <stephen.lord@xxxxxxxx> |
| Date: | Thu, 08 Jan 2004 16:06:08 -0600 |
| Cc: | Eric Sandeen <sandeen@xxxxxxx>, Jarrod Johnson <jbj-ksylph@xxxxxxxxxxxxxxxx>, linux-xfs@xxxxxxxxxxx |
| In-reply-to: | <1073598397.18902.7.camel@adic.com> |
| References: | <20040108154940.7dd28591.jbj-ksylph@adic.com> <1073595887.27384.260.camel@stout.americas.sgi.com> <1073598397.18902.7.camel@bubbles.imr-net.com> |
| Sender: | linux-xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 |
Joshua Schmidlkofer wrote: [Nvidia + 2.6.1-rc1-mm2 + XFS] This could all be related to delayed allocation. During write system calls xfs does not actually allocate real disk blocks, it reserves all the potential blocks needed from the superblock counters. This is reflected in the df output. The potential blocks needed is a worst case estimate, all the space needed for the data, plus the worst case estimate of the metadata needed to point at it, which is when xfs ends up using a seperate extent for each block in the file. When the data is actually flushed out to disk, all the prereserved space which was not actually used it put back into the super block counters. When the filesystem is nearly full, a space allocation from write can fail, it attempts reclaim space by flushing out delayed allocate data. So writing a 300M file probably did consume 300M, but the space was reclaimed by flushing other delayed allocate data. No guarantees that this is what is happening, but it should go some way to explaining fluctuations in the free space on a near full filesystem. Steve -- Steve Lord |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Strange df output, Joshua Schmidlkofer |
|---|---|
| Next by Date: | Re: state of XFS capable linux installers, Chris 'Chipper' Chiapusio |
| Previous by Thread: | Re: Strange df output, Joshua Schmidlkofer |
| Next by Thread: | Re: Strange df output, Joshua M. Schmidlkofer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |