Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Jul 2009 02:08:00 +0400
From:      "Marat N.Afanasyev" <amarat@ksu.ru>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: bug in ufs?
Message-ID:  <4A5275C0.50607@ksu.ru>
In-Reply-To: <20090706203427.GZ2884@deviant.kiev.zoral.com.ua>
References:  <4A50E947.9020608@ksu.ru> <4A523518.7050008@gmx.de> <4A523849.1070001@ksu.ru> <20090706193653.GU2884@deviant.kiev.zoral.com.ua> <4A525B72.1010808@ksu.ru> <20090706203427.GZ2884@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Kostik Belousov wrote:
> On Tue, Jul 07, 2009 at 12:15:46AM +0400, Marat N.Afanasyev wrote:
>> Kostik Belousov wrote:
>>> On Mon, Jul 06, 2009 at 09:45:45PM +0400, Marat N.Afanasyev wrote:
>>>> i have a huge amount of small files on the source systems, as you can 
>>>> see they have about 20 million files and almost each of them is jpeg or 
>>>> gif. afaik, there are no sparse files at all.
>>>>
>>>> i still cannot figure out what is it: a free space leak in ufs2+su or 
>>>> bug in statfs(3), that is used in df, or something else.
>>> My guess that it is due to fragmentation.
>>> As an experiment, try to create 1-byte file. Does it work on the filesystem
>>> in described state ?
>> I can create small files, as many as i have patience, maximum size of 
>> such "small file" is 14336, so. it seems that if file is no greater than 
>> (block_size-2048) it can be created. larger file cannot be created.
>>
>> imho, fragmentation on filesystem should be very low, there were no 
>> deletions on it, just creations.
> 
> The fragmentation on UFS usually means using fragments for the file tails,
> not having file sequential blocks allocated in the non-sequential disk
> blocks.
> 
> You experiment confirms my hypothesis.

is there any way to change this behavior? and i wonder why even if i can 
create a reasonable number of small files i cannot create a slightly 
larger file joining two unallocated parts of different blocks even if no 
fully free block exists? ;)

-- 
SY, Marat

[-- Attachment #2 --]
0	*H
010	+0	*H
00=zl2zc<`)0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
090401191518Z
100401191518Z0?10UThawte Freemail Member10	*H
	
amarat@ksu.ru0"0
	*H
0
1
S8@7>pUb
B@	
uQ05T͞%8ɴ6=]$DZ{{}X۵eSSwS֠8/87.`ZY)zyp`
@M *[SW[l
W,Oɏ9f»@&$Yad5{=D(<f:?6_rW(ؚ+8 mUO\{*0(0U0
amarat@ksu.ru0U00
	*H
nHrN<!ۢ/N}Ə<4@z;]GBJ2uژ	:s\cb?2V	f,;	NDمĖ5WXݝ?"q%Y
.i1FFy띑l00=zl2zc<`)0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
090401191518Z
100401191518Z0?10UThawte Freemail Member10	*H
	
amarat@ksu.ru0"0
	*H
0
1
S8@7>pUb
B@	
uQ05T͞%8ɴ6=]$DZ{{}X۵eSSwS֠8/87.`ZY)zyp`
@M *[SW[l
W,Oɏ9f»@&$Yad5{=D(<f:?6_rW(ؚ+8 mUO\{*0(0U0
amarat@ksu.ru0U00
	*H
nHrN<!ۢ/N}Ə<4@z;]GBJ2uژ	:s\cb?2V	f,;	NDمĖ5WXݝ?"q%Y
.i1FFy띑l0?0
0
	*H
010	UZA10UWestern Cape10U	Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0)	*H
	personal-freemail@thawte.com0
030717000000Z
130716235959Z0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA00
	*H
0Ħ<UsUNʙZhup[v:aQP
0cZ,p+Z?qV˯<6$*+w=+>@dקe*TH<a@dr`00U00CU<0:08642http://crl.thawte.com/ThawtePersonalFreemailCA.crl0U0)U"0 010UPrivateLabel2-1380
	*H
HP.
fgCL!6-6/P p<ab:~t%Pb'qW%ݩ9 Oe_N4[5MwV!x!5$F]_eO1d0`0v0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAzl2zc<`)0	+0	*H
	1	*H
0	*H
	1
090706220800Z0#	*H
	1l;@"<e_=0R	*H
	1E0C0
*H
0*H
0
*H
@0+0
*H
(0	+71x0v0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAzl2zc<`)0*H
	1xv0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAzl2zc<`)0
	*H
x	0zoмr`4ByjDOE0tyc<Z@6.zj|8Tۆ_leͽ7N|a2đ3o?Зǎ}(h[}*dlC|+&z/sQUXspls8{*zMqw'@7"VeTE-dBP3OM0O0Q廏+d9]&Njmuʼˍ

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A5275C0.50607>