Activity
From 03/30/2016 to 04/28/2016
04/21/2016
- 07:53 AM Feature #1842: implement the multi-source directory approach
- It should really minimize per-site/per-system configuration and allow most things to be configured at the most approp...
- 07:42 AM Feature #1842: implement the multi-source directory approach
- I've not come across this issue before - I like it and have been having similar (less well-structured) thoughts.
04/19/2016
- 05:42 AM Feature #1916: improve the runtime statistics gathered by P2J
- Paul, I think the stats are enabled by setting a @block-execution-statistics@ attribute in the directory (which repre...
04/18/2016
- 08:26 AM Feature #1916: improve the runtime statistics gathered by P2J
- This sounds interesting. How do I enable gathering of these statistics?
04/12/2016
- 12:55 PM Feature #2973 (Closed): improve ContextLocal performance
- Code Review Task Branch 3035a Revision 11006
The changes are fine.
I'm closing this task. If there are problem... - 11:06 AM Feature #2973: improve ContextLocal performance
- Greg Shah wrote:
> Code Review Task Branch 3035a Revision 11005
>
> 1. @keysInUse@ is missing javadoc.
>
> 2. ... - 10:44 AM Feature #2973: improve ContextLocal performance
- Code Review Task Branch 3035a Revision 11005
1. @keysInUse@ is missing javadoc.
2. @ContextKey.toString()@ open... - 09:39 AM Feature #2973: improve ContextLocal performance
- Added @ContextKey@ re-use protection.
Committed to the task branch *3035a* revision 11005. - 07:03 AM Feature #2973: improve ContextLocal performance
- Greg Shah wrote:
> > how many instances of the ContextKey are expected to be in use at the same time? Just up to an ... - 07:02 AM Feature #2973: improve ContextLocal performance
- > how many instances of the ContextKey are expected to be in use at the same time? Just up to an order of magnitude.
... - 07:00 AM Feature #2973: improve ContextLocal performance
- Greg Shah wrote:
> We aren't checking that code is not in use. At construction of the @ContextKey@ we can simply as... - 06:56 AM Feature #2973: improve ContextLocal performance
- We aren't checking that code is not in use. At construction of the @ContextKey@ we can simply ask the @SecurityConte...
- 05:47 AM Feature #2973: improve ContextLocal performance
- Greg Shah wrote:
> The idea is simply to never set a @ContextKey.id@ that is already in use. No one wants the id to... - 05:33 AM Feature #2973: improve ContextLocal performance
- The idea is simply to never set a @ContextKey.id@ that is already in use. No one wants the id to be mutable.
- 03:53 AM Feature #2973: improve ContextLocal performance
- Igor Skornyakov wrote:
> Of course this can be done very easily. However I do not think that it is a good idea. Firs... - 03:41 AM Feature #2973: improve ContextLocal performance
- Greg Shah wrote:
> The problem is that one can create a @ContextKey@ instance which fails the @addToken()@ and then ...
04/11/2016
- 07:15 PM Feature #2973: improve ContextLocal performance
- The problem is that one can create a @ContextKey@ instance which fails the @addToken()@ and then later can call @getT...
- 06:32 PM Feature #2973: improve ContextLocal performance
- Igor Skornyakov wrote:
> Sorry Greg. I do not understand what you and Constantin mean exactly. The @SecurityContext... - 06:27 PM Feature #2973: improve ContextLocal performance
- Greg Shah wrote:
> I'm referring to the wrapping case where an id gets reused because the long overflows and some lo... - 06:20 PM Feature #2973: improve ContextLocal performance
- > May be it makes sense to add it to the 3035a branch as the change is very small (one line) and non critical?
Yes... - 06:20 PM Feature #2973: improve ContextLocal performance
- I'm referring to the wrapping case where an id gets reused because the long overflows and some long-running existing ...
- 06:16 PM Feature #2973: improve ContextLocal performance
- Greg Shah wrote:
> Considering that the check for this is low cost and should not be in the most common use case (th... - 05:59 PM Feature #2973: improve ContextLocal performance
- > but I think that 138 years is still a long time which as far beyond any reasonable estimation of a non-stop run dur...
- 04:07 PM Feature #2973: improve ContextLocal performance
- Task branch 2973a was merged to the trunk revision 11001 and archived.
- 04:02 PM Feature #2973: improve ContextLocal performance
- Please merge to trunk. Thank you.
- 03:40 PM Feature #2973: improve ContextLocal performance
- Eric Faulhaber wrote:
> Please address the remaining code review issues.
All issues are fixed now.
> Constantin,... - 03:07 PM Feature #2973: improve ContextLocal performance
- Please address the remaining code review issues.
Constantin, I don't think the changes made from this review warra... - 01:38 PM Feature #2973: improve ContextLocal performance
- The @ContextKey.id@ is @long@ in revision 11012.
- 01:29 PM Feature #2973: improve ContextLocal performance
- Igor Skornyakov wrote:
> I do not understand the argument regarding the @hashCode@ value - the additional (CPU) over... - 11:38 AM Feature #2973: improve ContextLocal performance
- Constantin Asofiei wrote:
> Regardless if we switch to long, the hash key will still be an integer value (this is wh... - 11:24 AM Feature #2973: improve ContextLocal performance
- Igor Skornyakov wrote:
> I understand the concern. However it is easy to calculate that if a new instance of the @Co... - 10:54 AM Feature #2973: improve ContextLocal performance
- Constantin Asofiei wrote:
> Review for 2973a rev 11008:
> # @ContextKey@
> - we are using @AtomicInteger@ as a gen... - 09:54 AM Feature #2973: improve ContextLocal performance
- Another issue in @SecurityContext.transferAllTokens@ - removing an element from the map while the map is processed (v...
- 09:39 AM Feature #2973: improve ContextLocal performance
- Review for 2973a rev 11008:
# @ContextKey@
- we are using @AtomicInteger@ as a generator. My worries are about ver... - 08:29 AM Feature #2973: improve ContextLocal performance
- Constantin, would you please review the latest version?
- 04:08 AM Feature #2973: improve ContextLocal performance
- Task branch 2973a was rebased from the trunk revision 11000. Pushed up to revision 11008.
04/10/2016
- 06:22 PM Feature #2973: improve ContextLocal performance
- I've restores the post-cleanup check.
Committed to the task branch 2973a revision 11006.
Automated regression t...
04/09/2016
- 06:15 AM Feature #2973: improve ContextLocal performance
- Igor Skornyakov wrote:
> Constantin Asofiei wrote:
> > @tokenMap@ is guaranteed to not be changed by other threads.... - 03:28 AM Feature #2973: improve ContextLocal performance
- I've performed majic regression testing of 2973a revision 11004.
# all CTRL-C tests passed
# from the main part the...
04/08/2016
- 06:11 PM Feature #2973: improve ContextLocal performance
- Constantin Asofiei wrote:
> @tokenMap@ is guaranteed to not be changed by other threads. But is not guaranteed that... - 04:11 PM Feature #2973: improve ContextLocal performance
- PS: if you take a look at @ContextLocal$Wrapper.cleanup@, you will see that after the var is cleaned, it is removed f...
- 04:08 PM Feature #2973: improve ContextLocal performance
- Igor Skornyakov wrote:
> Sorry Constantin, I do not understand. If we are sure that @tokenMap@ is not changed during... - 03:51 PM Feature #2973: improve ContextLocal performance
- Constantin Asofiei wrote:
> > How this approach works with the situation when something was added to the @tokenMap@ ... - 03:35 PM Feature #2973: improve ContextLocal performance
- Igor Skornyakov wrote:
> How this approach works with the situation when something was added to the @tokenMap@ after... - 03:17 PM Feature #2973: improve ContextLocal performance
- Constantin Asofiei wrote:
> So, I think this should work:
> # this code is needed, as it is critical for @tokenMa... - 03:06 PM Feature #2973: improve ContextLocal performance
- Igor, the code you commented from @cleanupWorker@ was responsible for two things:
# ensure that, after cleanup, @tok... - 12:52 PM Feature #2973: improve ContextLocal performance
- Igor Skornyakov wrote:
> After a close look at the @SecurityContext@ class I got an impression that if the @ tokenMa... - 12:07 PM Feature #2973: improve ContextLocal performance
- After a close look at the @SecurityContext@ class I got an impression that if the @ tokenMap@ is a @ConcurrentMap@ we...
- 11:57 AM Feature #2973: improve ContextLocal performance
- Hynek Cihlar wrote:
> Igor Skornyakov wrote:
> > Hynek Cihlar wrote:
> > > Btw., have you considered making the lo... - 10:49 AM Feature #2973: improve ContextLocal performance
- Igor Skornyakov wrote:
> Hynek Cihlar wrote:
> > Btw., have you considered making the locking of reading operations... - 10:31 AM Feature #2973: improve ContextLocal performance
- Hynek Cihlar wrote:
> Btw., have you considered making the locking of reading operations more optimistic? For exampl... - 10:22 AM Feature #2973: improve ContextLocal performance
- Btw., have you considered making the locking of reading operations more optimistic? For example @StampLock@ allows th...
- 09:08 AM Feature #2973: improve ContextLocal performance
- Igor Skornyakov wrote:
> The test run time is now 37 minutes 54 seconds.
> However the time spent in the @Security... - 08:54 AM Feature #2973: improve ContextLocal performance
- Igor Skornyakov wrote:
> However the time spent in the @SecurityContext.getToken()@ method decreased just to 55 seco... - 08:52 AM Feature #2973: improve ContextLocal performance
- Igor Skornyakov wrote:
I've made the following changes:
# Replaced @ConcurrentHashMap@ with @HashMap@ as @tokenMa... - 07:13 AM Feature #2973: improve ContextLocal performance
- I've used YourKit (sampling mode) to analyse server behaviour while running the customer test suite (**/*Test.java) (...
- 06:09 AM Feature #2973: improve ContextLocal performance
- Igor Skornyakov wrote:
> This is a good idea. I will implement such test today. To make it more realistic - how may ... - 04:17 AM Feature #2973: improve ContextLocal performance
- BTW if we are talking about a small map with is very infrequently updated but frequently read may be it makes sense t...
- 04:02 AM Feature #2973: improve ContextLocal performance
- Constantin Asofiei wrote:
> Igor, following Eric's response, we can't go with the approach in note 37/38, as the num... - 03:45 AM Feature #2973: improve ContextLocal performance
- Igor, following Eric's response, we can't go with the approach in note 37/38, as the number of @ContextLocal@ instanc...
- 02:10 AM Feature #2973: improve ContextLocal performance
- Igor Skornyakov wrote:
> However if your tests show that @Map.get()@ is a bottleneck the reason can be that this map ...
04/07/2016
- 06:02 PM Feature #2973: improve ContextLocal performance
- Task branch 2973a was rebased from the trunk revision 10998. Pushed up to revision 11002.
- 03:43 PM Feature #2973: improve ContextLocal performance
- Greg Shah wrote:
>
> Hynek: can you report on @SyncCoordinatesAspect.contextData@ (see above discussion)?
I bel... - 03:23 PM Feature #2973: improve ContextLocal performance
- Constantin Asofiei wrote:
> Another headache is how to hide/ensure no one else can instantiate a @ContextLocal@ with... - 03:16 PM Feature #2973: improve ContextLocal performance
- Greg Shah wrote:
> > This way, we can remove the map overhead completely. If the performance is still not improved, ... - 03:06 PM Feature #2973: improve ContextLocal performance
- > This way, we can remove the map overhead completely. If the performance is still not improved, then the bottleneck ...
- 02:54 PM Feature #2973: improve ContextLocal performance
- Constantin Asofiei wrote:
> ... @tokenMap@ keys are always @ContextLocal@ instances, which are defined as static va... - 02:48 PM Feature #2973: improve ContextLocal performance
- Greg, I think we should consider how many elements will @tokenMap@ hold, on maximum. @ContextLocal@ is instantiated ...
- 02:40 PM Feature #2973: improve ContextLocal performance
- Igor Skornyakov wrote:
> Constantin Asofiei wrote:
> > The logic in @cleanupWorker@ does this:
> > * step 1: it so... - 02:31 PM Feature #2973: improve ContextLocal performance
- Constantin Asofiei wrote:
> The logic in @cleanupWorker@ does this:
> * step 1: it sorts or keys by their weight, w... - 02:26 PM Feature #2973: improve ContextLocal performance
- Igor Skornyakov wrote:
> OK, I will double check. Please not that it doesn't make sense to check the predicate twice... - 02:23 PM Feature #2973: improve ContextLocal performance
- Constantin Asofiei wrote:
> Followup for note 29: OTOH, this can be a fallback for the incorrect @cleanupWorker(bool... - 02:18 PM Feature #2973: improve ContextLocal performance
- Eric Faulhaber wrote:
> In terms of performance, it was on the fastest end of the range of my recent timings for thi... - 02:07 PM Feature #2973: improve ContextLocal performance
- Followup for note 29: OTOH, this can be a fallback for the incorrect @cleanupWorker(boolean reset, Map tm)@ filter co...
- 02:02 PM Feature #2973: improve ContextLocal performance
- Constantin Asofiei wrote:
> Review for 2973a rev 10999:
> # the @tokenMapLock.readLock()@ and @tokenMapLock.writeLo... - 02:02 PM Feature #2973: improve ContextLocal performance
- Eric Faulhaber wrote:
> I ran the full search test group. When I disconnected BPM at the end, while the P2J server w... - 01:54 PM Feature #2973: improve ContextLocal performance
- Igor Skornyakov wrote:
> I understand that NPE happens because FileSystemOps.WorkArea.fs is @null@. This can be of c... - 01:52 PM Feature #2973: improve ContextLocal performance
- In terms of performance, it was on the fastest end of the range of my recent timings for this test group, but not dra...
- 01:42 PM Feature #2973: improve ContextLocal performance
- Eric,
I understand that NPE happens because FileSystemOps.WorkArea.fs is @null@. This can be of course a result of m... - 01:37 PM Feature #2973: improve ContextLocal performance
- Review for 2973a rev 10999:
# the @tokenMapLock.readLock()@ and @tokenMapLock.writeLock()@ can be saved in @Security... - 01:31 PM Feature #2973: improve ContextLocal performance
- Eric Faulhaber wrote:
> I ran the full search test group. When I disconnected BPM at the end, while the P2J server w... - 01:29 PM Feature #2973: improve ContextLocal performance
- I ran the full search test group. When I disconnected BPM at the end, while the P2J server was still running, I got t...
- 12:00 PM Feature #2973: improve ContextLocal performance
- Greg Shah wrote:
> > However it seems that null is used in a single place: at the SecurityContextStack.setEditing me... - 11:52 AM Feature #2973: improve ContextLocal performance
- > However it seems that null is used in a single place: at the SecurityContextStack.setEditing method. May be it is b...
- 11:32 AM Feature #2973: improve ContextLocal performance
- Igor Skornyakov wrote:
> If we really need @null@ values we can wrap it into @Optional@. However it seems that @null... - 11:20 AM Feature #2973: improve ContextLocal performance
- If we really need @null@ values we can wrap it into @Optional@. However it seems that @null@ is used in a single plac...
- 10:48 AM Feature #2973: improve ContextLocal performance
- Eric Faulhaber wrote:
> There is a regression when launching the P2J server:
> [...]
The ConcurrentHashMap doesn... - 10:46 AM Feature #2973: improve ContextLocal performance
- There is a regression when launching the P2J server:...
- 09:51 AM Feature #2973: improve ContextLocal performance
- Eric Faulhaber wrote:
> Code review 2973a/10997:
>
> Yes, this is what I was looking for in the scope of note 5, ... - 09:49 AM Feature #2973: improve ContextLocal performance
- I would like to see some testing that detects if this has a measurable performance impact (and what that might be).
... - 09:19 AM Feature #2973: improve ContextLocal performance
- Code review 2973a/10997:
Yes, this is what I was looking for in the scope of note 5, thanks.
One question: why ... - 08:52 AM Feature #2973: improve ContextLocal performance
- Task branch 2973a was rebased from the trunk revision 10996. Committed as revision 10997.
- 07:55 AM Feature #2973: improve ContextLocal performance
- I've implemented optimization mentioned in the node 5 along with some refactoring.
Committed to the task branch 29... - 05:40 AM Feature #2973: improve ContextLocal performance
- Created task branch 2973a from the trunk revision 10995.
Also available in: Atom