Re: [CentOS] Disk usage for small files in ext3 in CentOS 5

2009-03-12 Thread Kai Schaetzl
Filipe Brandenburger wrote on Wed, 11 Mar 2009 17:29:06 -0400: > $ du -h test.txt > 8.0K test.txt and just "du test.txt"? e.g. without "translation"? Kai -- Kai Schätzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com ___

Re: [CentOS] Disk usage for small files in ext3 in CentOS 5

2009-03-12 Thread Nicolas Thierry-Mieg
Robert Nichols wrote: > Filipe Brandenburger wrote: >> Found it! It's not related to CentOS 4 or 5 (I found a C4 machine in >> which small files took 8kb of diskspace and a C5 machine in which >> small files took 4kb). It's related to SELinux being enabled or not. >> Casually most of my C4 machines

Re: [CentOS] Disk usage for small files in ext3 in CentOS 5

2009-03-11 Thread Robert Nichols
Filipe Brandenburger wrote: > Found it! It's not related to CentOS 4 or 5 (I found a C4 machine in > which small files took 8kb of diskspace and a C5 machine in which > small files took 4kb). It's related to SELinux being enabled or not. > Casually most of my C4 machines had SELinux disabled and mo

Re: [CentOS] Disk usage for small files in ext3 in CentOS 5

2009-03-11 Thread Filipe Brandenburger
Hi, On Wed, Mar 11, 2009 at 17:29, Filipe Brandenburger wrote: > If I "du" a small file (couple of bytes) in CentOS 5, it tells me the > file is using 8kb, while I was expecting 4kb which is the block size > I'm using. Found it! It's not related to CentOS 4 or 5 (I found a C4 machine in which sm

Re: [CentOS] Disk usage for small files in ext3 in CentOS 5

2009-03-11 Thread William L. Maltby
On Wed, 2009-03-11 at 17:29 -0400, Filipe Brandenburger wrote: > Hello, > > I noticed something unusual today. > > If I "du" a small file (couple of bytes) in CentOS 5, it tells me the > file is using 8kb, while I was expecting 4kb which is the block size > I'm using. > > I tried this on severa

Re: [CentOS] Disk usage for small files in ext3 in CentOS 5

2009-03-11 Thread Robert Nichols
Filipe Brandenburger wrote: > Hello, > > I noticed something unusual today. > > If I "du" a small file (couple of bytes) in CentOS 5, it tells me the > file is using 8kb, while I was expecting 4kb which is the block size > I'm using. > > I tried this on several CentOS 5 machines, both x86_64 and

Re: [CentOS] Disk usage for small files in ext3 in CentOS 5

2009-03-11 Thread Marko A. Jennings
On Wed, March 11, 2009 5:51 pm, Nicolas Thierry-Mieg wrote: > > Filipe Brandenburger wrote: >> Hello, >> >> I noticed something unusual today. >> >> If I "du" a small file (couple of bytes) in CentOS 5, it tells me the >> file is using 8kb, while I was expecting 4kb which is the block size >> I'm u

Re: [CentOS] Disk usage for small files in ext3 in CentOS 5

2009-03-11 Thread Mike A. Harris
Nicolas Thierry-Mieg wrote: >> $ echo test >test.txt >> $ ls -l test.txt >> -rw-rw-r-- 1 filbranden filbranden 5 Mar 11 17:24 test.txt >> $ du -h test.txt >> 8.0K test.txt > >> I could not find any differences that would explain the behaviour. >> Have you seen this before? Can you reproduce it on

Re: [CentOS] Disk usage for small files in ext3 in CentOS 5

2009-03-11 Thread Rob Kampen
Nicolas Thierry-Mieg wrote: Filipe Brandenburger wrote: Hello, I noticed something unusual today. If I "du" a small file (couple of bytes) in CentOS 5, it tells me the file is using 8kb, while I was expecting 4kb which is the block size I'm using. I tried this on several CentOS 5 machine

Re: [CentOS] Disk usage for small files in ext3 in CentOS 5

2009-03-11 Thread Nicolas Thierry-Mieg
Filipe Brandenburger wrote: > Hello, > > I noticed something unusual today. > > If I "du" a small file (couple of bytes) in CentOS 5, it tells me the > file is using 8kb, while I was expecting 4kb which is the block size > I'm using. > > I tried this on several CentOS 5 machines, both x86_64 an

[CentOS] Disk usage for small files in ext3 in CentOS 5

2009-03-11 Thread Filipe Brandenburger
Hello, I noticed something unusual today. If I "du" a small file (couple of bytes) in CentOS 5, it tells me the file is using 8kb, while I was expecting 4kb which is the block size I'm using. I tried this on several CentOS 5 machines, both x86_64 and i386: $ echo test >test.txt $ ls -l test.txt