Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jul 2009 18:16:58 +1000
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        "Marat N.Afanasyev" <amarat@ksu.ru>
Cc:        FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: bug in ufs?
Message-ID:  <20090707081658.GA68385@server.vk2pj.dyndns.org>
In-Reply-To: <4A50E947.9020608@ksu.ru>
References:  <4A50E947.9020608@ksu.ru>

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

[-- Attachment #1 --]
On 2009-Jul-05 21:56:23 +0400, "Marat N.Afanasyev" <amarat@ksu.ru> wrote:
>i have a strange problem with writing data to my ufs2+su filesystem.

Overall, I think you are pushing UFS and have hit one of its limits.

>1. i made a 1T gpt partition on my storage server, and formatted it:
>newfs -U -m 0 -o time -i 32768 /dev/da1p3a

'-m 0' is undesirable.  The default 8% free space is intended to hide
the sort of effect you've run into.  Unless you can find a slightly
bigger disk, I suggest you try building an 8K/1K filesystem by adding
'-b 8192 -f 1024' - this will be slightly slower than the default
16K/2K but will hopefully allow you to fit slightly more files in.

>2. i tried to move data from other servers to this filesystem, total 
>size of files is slightly less than 1T

Can you be more accurate than "slightly less than 1T" (ie how many
MiB) and what is the size distribution of the files?  The average size
is 48KiB but are they all roughly the same size or do they vary widely?
Are there many files <16KiB?

>3. i encountered a 'No space left on device' while i still have 11G of 
>free space and about 13 million free inodes on the filesystem:
>
>#df -ih
>Filesystem     Size    Used   Avail Capacity  iused    ifree %iused 
>Mounted on
>/dev/da1p3a    1.0T    1.0T     11G    99% 20397465 13363173   60% 
>/mnt/45_114

More significant figures are needed.  How about 'df -im' or 'df -ik'.
How close are you to fitting in all the files you want?

>all i want to know is whether this is a bug or a feature? and if such a 
>behavior is well-known, where can i read about it?

Have a read of /usr/share/doc/smm/05.fastfs/paper.ascii.gz - especially
the bits about "fragments".  Whilst this paper talks about the original
UFS and a 4K/1K configuration, the principles remain the same in UFS2.

-- 
Peter Jeremy

[-- Attachment #2 --]
0	*H
010	+0	*H

%00Ƞ0
	*H
0y10U
Root CA10Uhttp://www.cacert.org1"0 UCA Cert Signing Authority1!0	*H
	support@cacert.org0
070828005203Z
090827005203Z010UPeter Jeremy1+0)	*H
	peterjeremy@optushome.com.au1'0%	*H
	peter.jeremy@auug.org.au110/	*H
	"peter.jeremy@alcatel-lucent.com.au0"0
	*H
0
,s"` s`wݞ'QsfMf;RH}Bz[ls>]ux[3\h>Kbz59k1'ŇLYt<H,x[1F@syR5GcxTL$>wjv˸9baů%ͰQT25 DUȸL(|JR
S5Ջ72*̅_bh~|`n
LG0C0U00V	`HB
IGTo get your own certificate for FREE head over to http://www.CAcert.org0@U%907++
+7

+7
	`HB02+&0$0"+0http://ocsp.cacert.org0eU^0\peterjeremy@optushome.com.aupeter.jeremy@auug.org.au"peter.jeremy@alcatel-lucent.com.au0
	*H
j[N.aIfg,@<24Wږ{V`+~×nPU!K0i*i,70.C/5
ge0Mʗ.lt.i>g%aa?$U£O%gi2@	/kY{Q.y51BPCPQivd(Oߞx,_'.zzN!"FN.
,g"  D	?v\ k7ͻYYƂzRQd\hp㺳[w:J]t%tE|qb?`T 0ws3B  .t(%(mWQʃA,ss*&y/dEuߡ]tۼEheGq:
|/ry)cV/TS\N؂1pYQKD>ȊзMU"9OT[TW7"=8iL@cNL|q
-A||0=0%0
	*H
0y10U
Root CA10Uhttp://www.cacert.org1"0 UCA Cert Signing Authority1!0	*H
	support@cacert.org0
030330122949Z
330329122949Z0y10U
Root CA10Uhttp://www.cacert.org1"0 UCA Cert Signing Authority1!0	*H
	support@cacert.org0"0
	*H
0
"F}6(P3@K;f?1k6|Nw6A	Fs`n~XdͰEcg
ҿ>L5]l!ޞ ٺf27rXɎ^>
l[df*zKSy{/
a+~MVڒDAX`efD˔B~ehQWkzr%[ 2H.0B%k?:SHҶ4zX+[8]fɘמtqr`o34v>$zoE8GAJ.	Yתғ}h.݋KX/ꕧTۋQ"þ,x ӊ/?Qe!eE|ALO)!3uQwi"Ṕ1{8h[+~_rLK Wʑu!7c
g>FOp gYͺbA )d)B"xC	QKZZqs00U2Ұ:90U#02Ұ:9ѡ}{0y10U
Root CA10Uhttp://www.cacert.org1"0 UCA Cert Signing Authority1!0	*H
	support@cacert.org0U002U+0)0'%#!https://www.cacert.org/revoke.crl00	`HB#!https://www.cacert.org/revoke.crl04	`HB'%http://www.cacert.org/index.php?id=100V	`HB
IGTo get your own certificate for FREE head over to http://www.cacert.org0
	*H
(\5
ojhX>ÐZ`CpbgX
06;Htq>+h4b@F;S(fSM];`yi;eƁ\MU7paj|.T>O!܂EMs<evj7$NmQďʖmC0e';{CCcCh"{Z>7;N˛͚۲p-JذoEH3<2*T#Gdzqc~/ܟ+H%B>Wiw4
Kʠƌ27hs_QIS6
Ly:u
pg/y=sog/${H5)@`ᖆPzY؏!ς;kV#lH<N/	So.t:c¦D
l$pG.Բ 	d$ܡ5ԼU.}UZ֓v%sLC1\0X00y10U
Root CA10Uhttp://www.cacert.org1"0 UCA Cert Signing Authority1!0	*H
	support@cacert.org0	+0	*H
	1	*H
0	*H
	1
090707081658Z0#	*H
	1aW
v<c0R	*H
	1E0C0
*H
0*H
0
*H
@0+0
*H
(0
	*H
+~6YH׈XA.%܇[:bYU3Ӯr:=[MMnlԀZb	n4l)qr ]H AJ*Ȳ.`<u#]wn;paKqpNbp-cN-FD>l
s"shf>\롭̘]S/,t鷜A	c^÷X_TZN4ާ!*aW^!%#RyLqW(]ުNZڞu

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