All of lore.kernel.org
 help / color / mirror / Atom feed
* df command on EXT4 and XFS filesystem
@ 2013-02-07  6:48 Subranshu Patel - ERS, HCL Tech
  2013-02-07 16:51 ` Eric Sandeen
  0 siblings, 1 reply; 2+ messages in thread
From: Subranshu Patel - ERS, HCL Tech @ 2013-02-07  6:48 UTC (permalink / raw)
  To: linux-ext4

I have an observation on EXT4 filesystem. I created filesystem of size 1TB, 4TB, and 7TB and then checked the output of df command. 

df command showed the number of 1KB blocks used. The result was:
1TB: 204056
4TB: 198680
7TB: 181784 

This trend was surprising, with increasing filesystem size, the number of used blocks decreased. Why it is so? 


::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and other defects.

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


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

* Re: df command on EXT4 and XFS filesystem
  2013-02-07  6:48 df command on EXT4 and XFS filesystem Subranshu Patel - ERS, HCL Tech
@ 2013-02-07 16:51 ` Eric Sandeen
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Sandeen @ 2013-02-07 16:51 UTC (permalink / raw)
  To: Subranshu Patel - ERS, HCL Tech; +Cc: linux-ext4

On 2/7/13 12:48 AM, Subranshu Patel - ERS, HCL Tech wrote:
> I have an observation on EXT4 filesystem. I created filesystem of size 1TB, 4TB, and 7TB and then checked the output of df command. 
> 
> df command showed the number of 1KB blocks used. The result was:
> 1TB: 204056
> 4TB: 198680
> 7TB: 181784 
> 
> This trend was surprising, with increasing filesystem size, the number of used blocks decreased. Why it is so? 

I replied to your colleague who asked the same question.

Short answer is default ext4 behavior is to not count the large number of blocks used for metadata as "used", and on top of that there seems to be some inaccuracy in the overhead calculations.  See my other email for more detail.

-Eric

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

end of thread, other threads:[~2013-02-07 16:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-07  6:48 df command on EXT4 and XFS filesystem Subranshu Patel - ERS, HCL Tech
2013-02-07 16:51 ` Eric Sandeen

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.