<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 3, 2013 at 3:46 PM, Radim Vansa <span dir="ltr"><<a href="mailto:rvansa@redhat.com" target="_blank">rvansa@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">|<br>
|<br>
| Bela, I'm pretty sure these tests use UDP. I'd be really surprised if<br>
| we could improve TCP performance by lowering max_credits.<br>
<br>
</div>True, they do.<br>
<div class="im"><br></div></blockquote><div><br></div><div>So you are running the tests with TCP?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">
|<br>
| We do have a JIRA to change the state transfer behaviour to request<br>
| state from only a few nodes at a time (perhaps only 1):<br>
</div>| <a href="https://issues.jboss.org/browse/ISPN-2580" target="_blank">https://issues.jboss.org/browse/ISPN-2580</a> . Adrian is working on it<br>
<div class="im">| ATM, and once it's integrated it would make UUPerf performance<br>
| largely irrelevant.<br>
<br>
</div>I don't think so, I expect that e.g. 3 nodes to make ST from is perfectly reasonable scenario and as these tests are ran with 4 nodes, this is the case.<br>
<div class="im"><br></div></blockquote><div><br></div><div>Based on the test results we have so far, I think it will be very hard to come up with a configuration that performs better with state transfer 3 sources than with 2 sources. That's even without considering the effects on performance when there isn't a state transfer in progress.<br>
<br></div><div>So we could spend a lot of time on improving the performance with 3 sources, and never quite get to the 2-sources performance, or we could just make 2 the default and "not recommend" changing the value. (We could also hard-code the number of sources, but exposing the setting will make it easier to test different values and confirm which one is best).<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
|<br>
| Even if Adrian's fix doesn't make it into Final, I think a<br>
| max_credits of only 20k would impact performance in the "stable<br>
| state" (i.e. what UPerf is testing). So maybe we can find a<br>
| workaround, like lowering Infinispan's stateTransfer.chunkSize.<br>
<br>
</div>Yeah, I have used 10MB messages for testing, I should do that for smaller ones as well.<br>
<div class="im"><br>
|<br>
| I wonder if we could automate UPerf and UUPerf, like RadarGun does<br>
| (or maybe make them RadarGun test scenarios?), so we can gather more<br>
| data points. At the moment there's a lot of manual work involved in<br>
| running the tests with all the possible configurations<br>
| (TCP/UNICAST2, TCP/UNICAST2/UFC, UDP/UNICAST, UDP/UNICAST/UFC,<br>
| UDP/UNICAST2/UFC, UDP/UNICAST2/UFC/RSVP, each protocol with several<br>
| tweak-able attributes) and figuring out which configuration is<br>
| "best".<br>
<br>
</div>This sounds good, using JGroups cachewrapper I could just do GET on one slave in a loop, right? The only modification required is that the JGroupsWrapper.get should do dispatcher.callRemoteMethods(...) with all members instead of just single invocation. And maybe the<br>
I think I could grab some time for this next week.<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>I think to make it really like state transfer you'd have to keep one GET target, but make all nodes pick the same target (e.g. the first node) and make the key really big. Making all nodes targets would work as well, but you'd have to do that on only one node to mimic a single joiner asking for state.<br>
<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
Radim<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
|<br>
|<br>
|<br>
|<br>
| On Thu, Jan 3, 2013 at 12:42 PM, Bela Ban < <a href="mailto:bban@redhat.com">bban@redhat.com</a> > wrote:<br>
|<br>
|<br>
| Let's make sure though that we have a meaningful default that's not<br>
| optimized for an edge case. Also, if we use TCP, we can remove UFC<br>
| from<br>
| the config, as TCP already performs point-to-point flow control.<br>
|<br>
|<br>
|<br>
| On 1/3/13 11:29 AM, Radim Vansa wrote:<br>
| > 20k credits seems to be the best choice for this test:<br>
| ><br>
| > 10k: bad performance<br>
| > 20k: Average of 2.79 requests / sec (27.87MB / sec), 358.81 ms<br>
| > /request (prot=UNICAST2)<br>
| > 30k: Average of 2.52 requests / sec (25.18MB / sec), 397.15 ms<br>
| > /request (prot=UNICAST2)<br>
| > 50k: Average of 2.35 requests / sec (23.47MB / sec), 426.10 ms<br>
| > /request (prot=UNICAST2)<br>
| > 80k: Average of 1.29 requests / sec (12.94MB / sec), 772.78 ms<br>
| > /request (prot=UNICAST2)<br>
| > 200k: bad performance<br>
| ><br>
| > (for remembrance: 4 nodes in hyperion, for these results I've set<br>
| > up 8k frag size)<br>
| ><br>
| > I have held dot key for the duration of the test so you can see how<br>
| > long each apply state took as the dots were inserted into console<br>
| > in constant rate (lame ascii chart). See attachements.<br>
| ><br>
| > Radim<br>
| ><br>
| > ----- Original Message -----<br>
| > | From: "Dan Berindei" < <a href="mailto:dan.berindei@gmail.com">dan.berindei@gmail.com</a> ><br>
| > | To: "infinispan -Dev List" < <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a> ><br>
| > | Sent: Monday, December 24, 2012 8:01:26 AM<br>
| > | Subject: Re: [infinispan-dev] MFC/UFC credits in default config<br>
| > |<br>
| > |<br>
| > |<br>
| > |<br>
| > | This is weird, I would have expected problems with the last<br>
| > | message,<br>
| > | but not in the middle of the sequence (that's why I suggested<br>
| > | sending only 1 message). Maybe we need an an even lower<br>
| > | max_credits...<br>
| > |<br>
| > | Merry Christmas to you, too!<br>
| > |<br>
| > | Dan<br>
| > | On 21 Dec 2012 16:41, "Radim Vansa" < <a href="mailto:rvansa@redhat.com">rvansa@redhat.com</a> > wrote:<br>
| > |<br>
| > |<br>
| > | Hi Dan,<br>
| > |<br>
| > | I have ran the test on 4 nodes in hyperion (just for the start to<br>
| > | see<br>
| > | how it will behave) but with 100 messages (1 message is nothing<br>
| > | for<br>
| > | a statistician) each 10MB and I see a weird behaviour - there are<br>
| > | about 5-10 messages received in a fast succession and then the<br>
| > | nothing is received for several seconds. I experience this<br>
| > | behaviour<br>
| > | for both 200k and 500k credits. Is this really how it should<br>
| > | perform?<br>
| > |<br>
| > | Merry Christmas and tons of snow :)<br>
| > |<br>
| > | Radim<br>
| > |<br>
| > | <h1>☃</h1><br>
| > |<br>
| > | ----- Original Message -----<br>
| > | | From: "Dan Berindei" < <a href="mailto:dan.berindei@gmail.com">dan.berindei@gmail.com</a> ><br>
| > | | To: "infinispan -Dev List" < <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a> ><br>
| > | | Sent: Tuesday, December 18, 2012 8:57:08 AM<br>
| > | | Subject: Re: [infinispan-dev] MFC/UFC credits in default config<br>
| > | |<br>
| > | |<br>
| > | | Hi Radim<br>
| > | |<br>
| > | | If you run the test with only 2 nodes and FC disabled, it's<br>
| > | | going<br>
| > | | to<br>
| > | | perform even better. But then as you increase the number of<br>
| > | | nodes,<br>
| > | | the speed with no FC will drop dramatically (when we didn't<br>
| > | | have<br>
| > | | RSVP enabled, with only 3 nodes, it didn't manage to send 1 x<br>
| > | | 10MB<br>
| > | | message in 10 minutes).<br>
| > | |<br>
| > | | Please run the tests with as many nodes as possible and just 1<br>
| > | | message x 10MB. If 500k still performs better, create a JIRA to<br>
| > | | change the default.<br>
| > | |<br>
| > | | Cheers<br>
| > | | Dan<br>
| > | |<br>
| > | |<br>
| > | |<br>
| > | |<br>
| > | |<br>
| > | | On Mon, Dec 17, 2012 at 4:55 PM, Radim Vansa <<br>
| > | | <a href="mailto:rvansa@redhat.com">rvansa@redhat.com</a> ><br>
| > | | wrote:<br>
| > | |<br>
| > | |<br>
| > | | Sorry I haven't specified the amount, I am a stupido... my<br>
| > | | tests<br>
| > | | are<br>
| > | | working with 500k credits.<br>
| > | |<br>
| > | | UUPerf (JGroups 3.2.4.Final-redhat-1) from one computer in<br>
| > | | perflab<br>
| > | | to<br>
| > | | another, 2 threads (default), 1000x sends 10MB message (default<br>
| > | | chunkSize = 10000 * our entry size is usually 1kB) executed 3x<br>
| > | |<br>
| > | | 200k: Average of 6.02 requests / sec (60.19MB / sec), 166.13 ms<br>
| > | | /request (prot=UNICAST2)<br>
| > | | Average of 5.61 requests / sec (56.09MB / sec), 178.30 ms<br>
| > | | /request<br>
| > | | (prot=UNICAST2)<br>
| > | | Average of 5.49 requests / sec (54.94MB / sec), 182.03 ms<br>
| > | | /request<br>
| > | | (prot=UNICAST2)<br>
| > | |<br>
| > | | 500k: Average of 7.93 requests / sec (79.34MB / sec), 126.04 ms<br>
| > | | /request (prot=UNICAST2)<br>
| > | | Average of 8.18 requests / sec (81.82MB / sec), 122.23 ms<br>
| > | | /request<br>
| > | | (prot=UNICAST2)<br>
| > | | Average of 8.41 requests / sec (84.09MB / sec), 118.92 ms<br>
| > | | /request<br>
| > | | (prot=UNICAST2)<br>
| > | |<br>
| > | | Can you also reproduce such results? I think that suggests that<br>
| > | | 500k<br>
| > | | behaves really better.<br>
| > | |<br>
| > | | Radun<br>
| > | |<br>
| > | |<br>
| > | |<br>
| > | |<br>
| > | | ----- Original Message -----<br>
| > | | | From: "Dan Berindei" < <a href="mailto:dan.berindei@gmail.com">dan.berindei@gmail.com</a> ><br>
| > | | | To: "infinispan -Dev List" < <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a> ><br>
| > | | | Sent: Monday, December 17, 2012 12:43:37 PM<br>
| > | | | Subject: Re: [infinispan-dev] MFC/UFC credits in default<br>
| > | | | config<br>
| > | | |<br>
| > | | |<br>
| > | | |<br>
| > | | |<br>
| > | | |<br>
| > | | | On Mon, Dec 17, 2012 at 1:28 PM, Bela Ban < <a href="mailto:bban@redhat.com">bban@redhat.com</a> ><br>
| > | | | wrote:<br>
| > | | |<br>
| > | | |<br>
| > | | | Dan reduced those values to 200K, IIRC it was for UUPerfwhich<br>
| > | | | behaved<br>
| > | | | best with 200K. Idon't know if this is still needed. Dan ?<br>
| > | | |<br>
| > | | |<br>
| > | | |<br>
| > | | |<br>
| > | | | I haven't run UUPerf in a while...<br>
| > | | |<br>
| > | | |<br>
| > | | |<br>
| > | | |<br>
| > | | | On 12/17/12 12:19 PM, Radim Vansa wrote:<br>
| > | | | > Hi,<br>
| > | | | ><br>
| > | | | > recently I have synchronized our jgroups configuration with<br>
| > | | | > the<br>
| > | | | > default one shipped with Infinispan<br>
| > | | | > (core/src/main/resources/jgroups-(tcp|udp).xml) and it has<br>
| > | | | > shown<br>
| > | | | > that 200k credits in UFC/MFC (I keep the two values in<br>
| > | | | > sync) is<br>
| > | | | > not enough even for our smallest resilience test (killing<br>
| > | | | > one<br>
| > | | | > of<br>
| > | | | > four nodes). The state transfer was often blocked when<br>
| > | | | > requesting<br>
| > | | | > for more credits which resulted in not completing it within<br>
| > | | | > the<br>
| > | | | > time limit.<br>
| > | | | > Therefore, I'd like to suggest to increase the amount of<br>
| > | | | > credits<br>
| > | | | > in<br>
| > | | | > default configuration as well, because we simply cannot use<br>
| > | | | > the<br>
| > | | | > lower setting and it's preferable to have the<br>
| > | | | > configurations as<br>
| > | | | > close as possible. The only settings we need to keep<br>
| > | | | > different<br>
| > | | | > are<br>
| > | | | > thread pool sizes and addresses and ports.<br>
| > | | | ><br>
| > | | |<br>
| > | | |<br>
| > | | | What value would you like to use instead?<br>
| > | | |<br>
| > | | | Can you try UUPerf with 200k and your proposed configuration<br>
| > | | | and<br>
| > | | | compare the results?<br>
| > | | |<br>
| > | | | Cheers<br>
| > | | | Dan<br>
| > | | |<br>
| > | | |<br>
| > | |<br>
| > | |<br>
| > | | | _______________________________________________<br>
| > | | | infinispan-dev mailing list<br>
| > | | | <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
| > | | | <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
| > | | _______________________________________________<br>
| > | | infinispan-dev mailing list<br>
| > | | <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
| > | | <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
| > | |<br>
| > | |<br>
| > | | _______________________________________________<br>
| > | | infinispan-dev mailing list<br>
| > | | <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
| > | | <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
| > |<br>
| > | _______________________________________________<br>
| > | infinispan-dev mailing list<br>
| > | <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
| > | <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
| > | _______________________________________________<br>
| > | infinispan-dev mailing list<br>
| > | <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
| > | <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
| ><br>
| ><br>
| > _______________________________________________<br>
| > infinispan-dev mailing list<br>
| > <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
| > <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
|<br>
|<br>
| --<br>
| Bela Ban, JGroups lead ( <a href="http://www.jgroups.org" target="_blank">http://www.jgroups.org</a> )<br>
|<br>
|<br>
|<br>
| _______________________________________________<br>
| infinispan-dev mailing list<br>
| <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
| <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
|<br>
| _______________________________________________<br>
| infinispan-dev mailing list<br>
| <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
| <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
<br>
_______________________________________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a></div></div></blockquote></div><br></div></div>