HI,<br><br>I have been seeing a similar GFS2 performance issue.<br><br>when I did a file copy (4.3G) from a node to another node's gfs2 filesystem, it shows me <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 12"><meta name="Originator" content="Microsoft Word 12"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cfzst3x%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="themeData" href="file:///D:%5CDOCUME%7E1%5Cfzst3x%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///D:%5CDOCUME%7E1%5Cfzst3x%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;
        mso-font-alt:SimSun;
        mso-font-charset:134;
        mso-generic-font-family:auto;
        mso-font-pitch:variable;
        mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;
        mso-font-alt:"Calisto MT";
        mso-font-charset:0;
        mso-generic-font-family:roman;
        mso-font-pitch:variable;
        mso-font-signature:-1610611985 1107304683 0 0 159 0;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;
        mso-font-charset:134;
        mso-generic-font-family:auto;
        mso-font-pitch:variable;
        mso-font-signature:3 135135232 16 0 262145 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-unhide:no;
        mso-style-qformat:yes;
        mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        mso-fareast-font-family:宋体;
        mso-fareast-theme-font:minor-fareast;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-default-props:yes;
        font-size:10.0pt;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        mso-header-margin:36.0pt;
        mso-footer-margin:36.0pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style><b><span style="font-size: 10pt; font-family: "Arial","sans-serif";">793.4KB/s</span></b><span style="font-size: 10pt; font-family: "Arial","sans-serif";"> . however, same file copy to the same node but non gfs2 file system, it gives me </span><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 12"><meta name="Originator" content="Microsoft Word 12"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cfzst3x%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="themeData" href="file:///D:%5CDOCUME%7E1%5Cfzst3x%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///D:%5CDOCUME%7E1%5Cfzst3x%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;
        mso-font-alt:SimSun;
        mso-font-charset:134;
        mso-generic-font-family:auto;
        mso-font-pitch:variable;
        mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;
        mso-font-alt:"Calisto MT";
        mso-font-charset:0;
        mso-generic-font-family:roman;
        mso-font-pitch:variable;
        mso-font-signature:-1610611985 1107304683 0 0 159 0;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;
        mso-font-charset:134;
        mso-generic-font-family:auto;
        mso-font-pitch:variable;
        mso-font-signature:3 135135232 16 0 262145 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-unhide:no;
        mso-style-qformat:yes;
        mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        mso-fareast-font-family:宋体;
        mso-fareast-theme-font:minor-fareast;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-default-props:yes;
        font-size:10.0pt;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        mso-header-margin:36.0pt;
        mso-footer-margin:36.0pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style><b><span style="font-size: 10pt; font-family: "Arial","sans-serif";">53.6MB/s</span></b><span style="font-size: 10pt; font-family: "Arial","sans-serif";">.</span><br><br>not too sure why? it seems like gfs2 has a performance issue here.<br>
<br>appreciate if anyone can tell me what I can tune to get it better.<br><br><br>Yu<br><br><div class="gmail_quote">On Sat, Jul 11, 2009 at 1:56 AM, Steven Whitehouse <span dir="ltr"><<a href="mailto:swhiteho@redhat.com">swhiteho@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<div class="im"><br>
On Fri, 2009-07-10 at 08:49 -0700, Peter Schobel wrote:<br>
> The initial writing is done via the network by checking out source<br>
> trees from a Perforce repository. Beyond that, source trees are<br>
> compiled causing the creation of many object files.<br>
><br>
> Multiple source trees will be compiled from the same node or from<br>
> multiple nodes.<br>
><br>
> This performance problem exhibits itself even when using a single<br>
> node. Writing to the filesystem seems to work fine. The time to do a<br>
> cp -r dir /gfs/dir is very comparable to writing to local disk<br>
> however, rm -r /gfs/dir takes considerably longer than it does on<br>
> local disk. I am guessing this is a feature of dlm checking for a lock<br>
> on each individual file but I'm not sure.<br>
><br>
> Peter<br>
<br>
</div>Partly that is the case. There are some things which can be done to<br>
improve performance in the deallocation area, and so that is likely to<br>
improve in future. The main issue is to ensure that we continue to<br>
maintain the correct locking order in that code. It can be complex since<br>
it involves the inode lock, transaction lock, and (maybe) multiple<br>
resource group locks,<br>
<br>
Steve.<br>
<div><div></div><div class="h5"><br>
> ~<br>
><br>
> On Fri, Jul 10, 2009 at 8:27 AM, Steven Whitehouse<<a href="mailto:swhiteho@redhat.com">swhiteho@redhat.com</a>> wrote:<br>
> > Hi,<br>
> ><br>
> > On Fri, 2009-07-10 at 07:42 -0700, Peter Schobel wrote:<br>
> >> When we did our initial proof of concept, we did not notice any<br>
> >> performance problem of this magnitude. We were using OS release 2. Our<br>
> >> QA engineers passed approval on the performance stats of the gfs2<br>
> >> filesystem and now that we are in deployment phase they are calling it<br>
> >> unusable.<br>
> >><br>
> >> Have there been any recent software changes that could have caused<br>
> >> degraded performance or something I may have missed in configuration?<br>
> >> Are there any tunable parameters in gfs2 that may increase our<br>
> >> performance?<br>
> >><br>
> > Not that I'm aware of. There are no tunable parameters which might<br>
> > affect this particular aspect of performance, but to be clear exactly<br>
> > what the issue is, let me ask a few questions...<br>
> ><br>
> >> Our application is very write intensive. Basically we are compiling a<br>
> >> source tree and running a make clean between builds.<br>
> >><br>
> >> Thanks in advance,<br>
> >><br>
> >> Peter<br>
> >> ~<br>
> >><br>
> > What is the nature of the writes? Are the different nodes writing into<br>
> > different directories in the main?<br>
> ><br>
> > GFS2 is pretty good at large directories, given certain conditions. Look<br>
> > ups should be pretty fast. Once there is a writer into a particular<br>
> > directory, then ideally one would take care not to read or write that<br>
> > directory from other nodes until the writer is finished.<br>
> ><br>
> > Directory listing of large directories can be slow, and counts as<br>
> > reading the directory from a caching point of view. Look ups of<br>
> > individual files should be fast though,<br>
> ><br>
> > Steve.<br>
> ><br>
> ><br>
> >> On Wed, Jul 08, 2009 at 01:58:30PM -0700, Peter Schobel wrote:<br>
> >><br>
> >> >> I am trying to set up a four node cluster but am getting very poor<br>
> >> >> performance when removing large directories. A directory approximately<br>
> >> >> 1.6G  in size takes around 5 mins to remove from the gfs2 filesystem<br>
> >> >> but removes in around 10 seconds from the local disk.<br>
> >> >><br>
> >> >> I am using CentOS 5.3 with kernel 2.6.18-128.1.16.el5PAE.<br>
> >> >><br>
> >> >> The filesystem was formatted in the following manner: mkfs.gfs2 -t<br>
> >> >> wtl_build:dev_home00 -p lock_dlm -j 10<br>
> >> >> /dev/mapper/VolGroupGFS-LogVolDevHome00 and is being mounted with the<br>
> >> >> following options: _netdev,noatime,defaults.<br>
> >> ><br>
> >> > This is something you have to live with.  GFS(2) works great, but with<br>
> >> > large(r) directories performance is extremely bad and for many<br>
> >> > applications a real show-stopper.<br>
> >> ><br>
> >> > There have been many discussions on this list, with GFS parameter tuning<br>
> >> > suggestions that at least for me didn't result in any improvements, with<br>
> >> > promises that the problems would be solved in GFS2 (I see no significant<br>
> >> > performance improvements between GFS and GFS2), etc.<br>
> >><br>
> >> > --<br>
> >> > --    Jos Vos <<a href="mailto:jos@xos.nl">jos@xos.nl</a>><br>
> >> > --    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364<br>
> >> > --    Amsterdam, The Netherlands        |     Fax: +31 20 6948204<br>
> >><br>
> ><br>
> > --<br>
> > Linux-cluster mailing list<br>
> > <a href="mailto:Linux-cluster@redhat.com">Linux-cluster@redhat.com</a><br>
> > <a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br>
> ><br>
><br>
<br>
--<br>
Linux-cluster mailing list<br>
<a href="mailto:Linux-cluster@redhat.com">Linux-cluster@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br>
</div></div></blockquote></div><br>