<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"><base href="x-msg://63/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Agreed. &nbsp;<div><br></div><div>This locking appears to be in the 2LC integration code to guard a local collection though - there must be better, non-blocking ways to guard this - if it is needed at all for RO entities. &nbsp;</div><div><br></div><div>- M</div><div><br><div><div>On 18 Sep 2012, at 15:18, Andrig Miller &lt;<a href="mailto:anmiller@redhat.com">anmiller@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; ">What I find interesting, is that in this use case, READ_ONLY concurrency strategy and a local cache (no invalidation and no replication), there is no need to do any locking.<br><br>If we can get to a solution without any locking that would be ideal.<br><br>Andy<br><br><hr id="zwchr"><blockquote style="border-left-width: 2px; border-left-style: solid; border-left-color: rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica, Arial, sans-serif; font-size: 12pt; "><b>From:<span class="Apple-converted-space">&nbsp;</span></b>"Manik Surtani" &lt;<a href="mailto:manik@jboss.org">manik@jboss.org</a>&gt;<br><b>To:<span class="Apple-converted-space">&nbsp;</span></b>"Ståle W. Pedersen" &lt;<a href="mailto:spederse@redhat.com">spederse@redhat.com</a>&gt;<br><b>Cc:<span class="Apple-converted-space">&nbsp;</span></b>"Galder Zamarreño" &lt;<a href="mailto:galder@redhat.com">galder@redhat.com</a>&gt;, "John O'Hara" &lt;<a href="mailto:johara@redhat.com">johara@redhat.com</a>&gt;, "Jeremy Whiting" &lt;<a href="mailto:jwhiting@redhat.com">jwhiting@redhat.com</a>&gt;, "Andrig Miller" &lt;<a href="mailto:anmiller@redhat.com">anmiller@redhat.com</a>&gt;, "Steve Ebersole" &lt;<a href="mailto:steve@hibernate.org">steve@hibernate.org</a>&gt;, "infinispan-dev" &lt;<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a>&gt;<br><b>Sent:<span class="Apple-converted-space">&nbsp;</span></b>Tuesday, September 18, 2012 8:13:43 AM<br><b>Subject:<span class="Apple-converted-space">&nbsp;</span></b>Re: Issue with cache blocks for local read-only cache<br><br>Looking at your profiler snapshot, these locks are in the Hibernate 2nd level cache implementation for Infinispan. &nbsp;Galder, any ideas?<div><br></div><div>- M</div><div><br><div><div>On 18 Sep 2012, at 13:43, Ståle W. Pedersen &lt;<a href="mailto:spederse@redhat.com" target="_blank">spederse@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote>hi galder and manik, sorry for sending this mail to so many, but we've ran into a issue that prevents us from further scaling of the specjenterprise2010 benchmark.<br><br>so when doing specjenterprise2010 benchmark testing we've seen a lot of blocks caused by the entity/query cache. we've been testing with only caching a simple entity bean that's read-only and queries related to this entity (selects).<br><br>here is a screenshot of the hotspot found:<a href="https://dl.dropbox.com/u/30971563/specjent_block.png" target="_blank">https://dl.dropbox.com/u/30971563/specjent_block.png</a><br><br>here is the standalone.xml:<span class="Apple-converted-space">&nbsp;</span><a href="https://dl.dropbox.com/u/30971563/standalone-full.xml" target="_blank">https://dl.dropbox.com/u/30971563/standalone-full.xml</a><br><br>here is the orm.xml:<span class="Apple-converted-space">&nbsp;</span><a href="https://dl.dropbox.com/u/30971563/order_orm.xml" target="_blank">https://dl.dropbox.com/u/30971563/order_orm.xml</a><br><br>what we don't understand is why there are so many puts into the cache for an object that is marked as read-only. when we're testing without caching we do not see any blocks.<br><br>any help/ideas would be great. if anyone want a jprofiler snapshot of the run, let me know.<br><br>regards, ståle<br>--<span class="Apple-converted-space">&nbsp;</span><br>JBoss Performance Team Lead<br>JBoss by Red Hat<br></blockquote></div><br><div><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; font-size: medium; "><div style="word-wrap: break-word; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; font-size: medium; "><div style="word-wrap: break-word; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; font-size: medium; "><div style="word-wrap: break-word; "><div>--</div><div>Manik Surtani</div><div><a href="mailto:manik@jboss.org" target="_blank">manik@jboss.org</a></div><div><a href="http://twitter.com/maniksurtani" target="_blank">twitter.com/maniksurtani</a></div><div><br></div><div><div>Platform Architect, JBoss Data Grid</div><div><a href="http://red.ht/data-grid" target="_blank">http://red.ht/data-grid</a></div></div></div></span></div></span></div></span></div></div></blockquote></div></div></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Manik Surtani</div><div><a href="mailto:manik@jboss.org">manik@jboss.org</a></div><div><a href="http://twitter.com/maniksurtani">twitter.com/maniksurtani</a></div><div><br></div><div><div>Platform Architect, JBoss Data Grid</div><div><a href="http://red.ht/data-grid">http://red.ht/data-grid</a></div></div></div></span></div></span></div></span>
</div>
<br></div></body></html>