From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id o89NbSSs121811 for ; Thu, 9 Sep 2010 18:37:28 -0500 Received: from EXHUB018-3.exch018.msoutlookonline.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id DD8F117C9193 for ; Thu, 9 Sep 2010 16:38:13 -0700 (PDT) Received: from EXHUB018-3.exch018.msoutlookonline.net (exhub018-3.exch018.msoutlookonline.net [64.78.17.18]) by cuda.sgi.com with ESMTP id oSHk9SM9AxsC5oiC for ; Thu, 09 Sep 2010 16:38:13 -0700 (PDT) From: Brady Chang Date: Thu, 9 Sep 2010 16:41:04 -0700 Subject: Re: fragmentation question Message-ID: In-Reply-To: <4C895A7D.1030208@sandeen.net> Content-Language: en MIME-Version: 1.0 List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============7279969534480672307==" Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Eric Sandeen Cc: "xfs@oss.sgi.com" --===============7279969534480672307== Content-Language: en Content-Type: multipart/alternative; boundary="_000_C8AEBEA06E43bchanggreenplumcom_" --_000_C8AEBEA06E43bchanggreenplumcom_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks, after couple runs of tpc-H , RHEL 5.4 /dev/sdd is heavily fragmented. so back to the original problem. it always happen on /dev/sdd [root@sdw9 data1]# xfs_db -c frag -r /dev/sdb actual 1773, ideal 1731, fragmentation factor 2.37% [root@sdw9 data1]# xfs_db -c frag -r /dev/sdd actual 43384, ideal 1726, fragmentation factor 96.02% [root@sdw9 data1]# xfs_info /dev/sdb meta-data=3D/dev/sdb isize=3D256 agcount=3D32, agsize=3D22= 469715 blks =3D sectsz=3D512 attr=3D0 data =3D bsize=3D4096 blocks=3D719030880, imaxp= ct=3D25 =3D sunit=3D0 swidth=3D0 blks, unwritte= n=3D1 naming =3Dversion 2 bsize=3D4096 log =3Dinternal bsize=3D4096 blocks=3D32768, version= =3D1 =3D sectsz=3D512 sunit=3D0 blks, lazy-coun= t=3D0 realtime =3Dnone extsz=3D4096 blocks=3D0, rtextents=3D0 [root@sdw9 data1]# xfs_info /dev/sdd meta-data=3D/dev/sdd isize=3D256 agcount=3D32, agsize=3D22= 469715 blks =3D sectsz=3D512 attr=3D0 data =3D bsize=3D4096 blocks=3D719030880, imaxp= ct=3D25 =3D sunit=3D0 swidth=3D0 blks, unwritte= n=3D1 naming =3Dversion 2 bsize=3D4096 log =3Dinternal bsize=3D4096 blocks=3D32768, version= =3D1 =3D sectsz=3D512 sunit=3D0 blks, lazy-coun= t=3D0 realtime =3Dnone extsz=3D4096 blocks=3D0, rtextents=3D0 67 files on both /dev/sdb and /dev/sdd. On 9/9/10 3:06 PM, "Eric Sandeen" wrote: On 09/09/2010 04:59 PM, Brady Chang wrote: > thanks guys for the feedback. > iostat shows balanced io between two filesystems. > testing with RHEL 54, no issues there. seems to be happening on RHEL 55 > only. There were no xfs changes between 5.4 and 5.5 that should be relevant, only a single bugfixes for 5.5, related to fallocate error returns. Just FWIW. -Eric --_000_C8AEBEA06E43bchanggreenplumcom_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Re: fragmentation question Thanks,
after couple runs of tpc-H , RHEL 5.4 /dev/sdd is heavily fragmented.
so back to the original problem. it always happen on /dev/sdd


[root@sdw9 data1]# xfs_db -c frag -r /dev/sdb
actual 1773, ideal 1731, fragmentation factor 2.37%

[root@sdw9 data1]# xfs_db -c frag -r /dev/sdd
actual 43384, ideal 1726, fragmentation factor 96.02%

[root@sdw9 data1]# xfs_info /dev/sdb
meta-data=3D/dev/sdb          =      isize=3D256    agcount=3D32, a= gsize=3D22469715 blks
         =3D    = ;            &n= bsp;      sectsz=3D512   attr=3D0 data     =3D        =             &nb= sp;  bsize=3D4096   blocks=3D719030880, imaxpct=3D25          =3D    = ;            &n= bsp;      sunit=3D0     &= nbsp;swidth=3D0 blks, unwritten=3D1
naming   =3Dversion 2        &= nbsp;     bsize=3D4096  
log      =3Dinternal      = ;         bsize=3D4096  &= nbsp;blocks=3D32768, version=3D1
         =3D    = ;            &n= bsp;      sectsz=3D512   sunit=3D0 = blks, lazy-count=3D0
realtime =3Dnone          &nbs= p;        extsz=3D4096   = blocks=3D0, rtextents=3D0

[root@sdw9 data1]# xfs_info /dev/sdd
meta-data=3D/dev/sdd          =      isize=3D256    agcount=3D32, a= gsize=3D22469715 blks
         =3D    = ;            &n= bsp;      sectsz=3D512   attr=3D0 data     =3D        =             &nb= sp;  bsize=3D4096   blocks=3D719030880, imaxpct= =3D25
         =3D    = ;            &n= bsp;      sunit=3D0     &= nbsp;swidth=3D0 blks, unwritten=3D1
naming   =3Dversion 2        &= nbsp;     bsize=3D4096  
log      =3Dinternal      = ;         bsize=3D4096  &= nbsp;blocks=3D32768, version=3D1
         =3D    = ;            &n= bsp;      sectsz=3D512   sunit=3D0 = blks, lazy-count=3D0
realtime =3Dnone          &nbs= p;        extsz=3D4096   = blocks=3D0, rtextents=3D0


67 files on both /dev/sdb and /dev/sdd.


On 9/9/10 3:06 PM, "Eric Sandeen" <sandeen@sandeen.net> wrote:

On 09/09/2010 04:59 PM, Brady Chang wrote:<= BR> > thanks guys for the feedback.
> iostat shows balanced io between two filesystems.
> testing with RHEL 54, no issues there. seems to be happening on RHEL 5= 5
> only.

There were no xfs changes between 5.4 and 5.5 that should be relevant,
only a single bugfixes for 5.5, related to fallocate error returns.

Just FWIW.

-Eric

--_000_C8AEBEA06E43bchanggreenplumcom_-- --===============7279969534480672307== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs --===============7279969534480672307==--