<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16525" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Run and send here, please:</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>vmstat 5</FONT></DIV>
<DIV><FONT size=2>(5 lines)</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>iostat -x 5</FONT></DIV>
<DIV><FONT size=2>(2 - 3 outputs)</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>top</FONT></DIV>
<DIV><FONT size=2>(1 screen)</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>slabtop (or equivalent, I dont remember)</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=arnold.maderthaner@j4care.com 
  href="mailto:arnold.maderthaner@j4care.com">Arnold Maderthaner</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=Sunil.Mushran@oracle.com 
  href="mailto:Sunil.Mushran@oracle.com">Sunil Mushran</A> ; <A 
  title=ocfs2-users@oss.oracle.com 
  href="mailto:ocfs2-users@oss.oracle.com">ocfs2-users@oss.oracle.com</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, August 23, 2007 4:12 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Ocfs2-users] Slow 
  concurrent actions on the same LVM logicalvolume</DIV>
  <DIV><BR></DIV>Hi !<BR><BR>I watched the servers today and noticed that the 
  server load is very high but not much is working on the 
  server:<BR>server1:<BR>&nbsp;16:37:11 up 32 min,&nbsp; 1 user,&nbsp; load 
  average: 6.45, 7.90, 7.45<BR>server2:<BR>&nbsp;16:37:19 up 32 min,&nbsp; 4 
  users,&nbsp; load average: 9.79, 9.76, 8.26<BR>i also tried to do some selects 
  on the oracle database today.<BR>to do a "select count(*) from xyz" where xyz 
  has 120 000 rows it took me about 10 sec. <BR>always the process who does the 
  filesystem access is the first one. <BR>and every command 
  (ls,du,vgdisplay,lvdisplay,dd,cp,....) which needs access to a ocfs2 
  filesystem seams like blocking or it seams to me that there is a lock.<BR>Can 
  anyone please help me ?<BR><BR>yours<BR><BR>Arnold<BR><BR>
  <DIV><SPAN class=gmail_quote>On 8/22/07, <B class=gmail_sendername>Arnold 
  Maderthaner</B> &lt;<A 
  href="mailto:arnold.maderthaner@j4care.com">arnold.maderthaner@j4care.com</A>&gt; 
  wrote:</SPAN>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">There 
    is not really a high server load when writing to the disks but will try it 
    asap. what do you mean with AST ? <BR>Can I enable some debuging on ocfs2 ? 
    We have 2 Dell servers with about 4gb of ram each and 2 Dual Core CPUs with 
    2GHZ each. <BR>Can you please describe which tests todo again ? <BR><BR>Thx 
    for your help<BR><BR>Arnold
    <DIV><SPAN class=e id=q_1148eae43fbcfbe1_1><BR><BR>
    <DIV><SPAN class=gmail_quote>On 8/22/07, <B class=gmail_sendername>Sunil 
    Mushran </B>&lt;<A onclick="return top.js.OpenExtLink(window,event,this)" 
    href="mailto:Sunil.Mushran@oracle.com" target=_blank> 
    Sunil.Mushran@oracle.com</A>&gt; wrote:</SPAN>
    <BLOCKQUOTE class=gmail_quote 
    style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Repeat 
      the first test. This time run top on the first server. Which <BR>process 
      is eating the cpu? From the time it appears that the second<BR>server is 
      waiting for the AST that the first server is slow to send. And<BR>it could 
      be slow because it may be busy flushing the data to disk.<BR>How much 
      memory/cpu do these servers have?<BR><BR>As far as the second test goes, 
      what is the concurrent write performance<BR>directly to the LV (minus 
      fs).<BR><BR>On Wed, Aug 22, 2007 at 01:14:02PM +0530, Arnold Maderthaner 
      wrote: <BR>&gt; Hi 2 all !<BR>&gt;<BR>&gt; I have problems with concurrent 
      filesystem actions on a ocfs2<BR>&gt; filesystem which is mounted by 2 
      nodes. OS=RH5ES and OCFS2=1.2.6<BR>&gt; F.e.: If I have a LV called testlv 
      which is mounted on /mnt on both <BR>&gt; servers and I do a "dd 
      if=/dev/zero of=/mnt/test.a bs=1024<BR>&gt; count=1000000" on server 1 and 
      do at the same time a du -hs<BR>&gt; /mnt/test.a it takes about 5 seconds 
      for du -hs to execute:<BR>&gt; 270M&nbsp;&nbsp;&nbsp;&nbsp; 
      test.a<BR>&gt;<BR>&gt; real&nbsp;&nbsp;&nbsp;&nbsp;0m3.627s<BR>&gt; 
      user&nbsp;&nbsp;&nbsp;&nbsp;0m0.000s<BR>&gt; sys&nbsp;&nbsp;&nbsp;&nbsp; 
      0m0.002s<BR>&gt;<BR>&gt; or even longer. If i do a du -hs ond a file which 
      is not written by<BR>&gt; another server its fast:<BR>&gt; 
      977M&nbsp;&nbsp;&nbsp;&nbsp; test.b<BR>&gt;<BR>&gt; 
      real&nbsp;&nbsp;&nbsp;&nbsp;0m0.001s<BR>&gt; 
      user&nbsp;&nbsp;&nbsp;&nbsp;0m0.001s<BR>&gt; sys&nbsp;&nbsp;&nbsp;&nbsp; 
      0m0.000s<BR>&gt;<BR>&gt; If I write 2 different files from both servers to 
      the same LV I get<BR>&gt; only 2.8mb/sec.<BR>&gt; If I write 2 different 
      files from both servers to a different LV <BR>&gt; (testlv,test2lv) then I 
      get about 30mb/sec on each write (so 60mb/sec<BR>&gt; combined which is 
      very good).<BR>&gt; does anyone has an idea what could be wrong. Are there 
      any mount<BR>&gt; options for ocfs2 which could help me? is this a lvm2 or 
      ocfs2 problem <BR>&gt; (locking,blocking,.... issue) ?<BR>&gt;<BR>&gt; Any 
      help will be appriciated.<BR>&gt;<BR>&gt; yours<BR>&gt;<BR>&gt; 
      Arnold<BR>&gt; --<BR>&gt; Arnold Maderthaner<BR>&gt; J4Care 
      Inc.<BR>&gt;<BR>&gt; _______________________________________________ 
      <BR>&gt; Ocfs2-users mailing list<BR>&gt; <A 
      onclick="return top.js.OpenExtLink(window,event,this)" 
      href="mailto:Ocfs2-users@oss.oracle.com" 
      target=_blank>Ocfs2-users@oss.oracle.com</A><BR>&gt; <A 
      onclick="return top.js.OpenExtLink(window,event,this)" 
      href="http://oss.oracle.com/mailman/listinfo/ocfs2-users" 
      target=_blank>http://oss.oracle.com/mailman/listinfo/ocfs2-users 
    </A><BR></BLOCKQUOTE></DIV><BR><BR clear=all><BR></SPAN></DIV><SPAN 
    class=sg>-- <BR>Arnold Maderthaner<BR>J4Care Inc. 
  </SPAN></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>Arnold 
  Maderthaner<BR>J4Care Inc. 
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Ocfs2-users mailing 
  list<BR>Ocfs2-users@oss.oracle.com<BR>http://oss.oracle.com/mailman/listinfo/ocfs2-users</BLOCKQUOTE></BODY></HTML>