Re: Memory policies examples fails

2017-04-17 Thread Denis Magda
Sergey, I tweaked the example following your suggestion. Now it works, thanks. In addition, a javadoc of MemoryConfiguraiton, MemoryPolicyConfiguration and DataPageEvictionMode has been significantly improved. There are some of the parameters like page memory’s concurrency mode and policy’s "em

Re: Memory policies examples fails

2017-04-17 Thread Dmitriy Setrakyan
On Mon, Apr 17, 2017 at 9:06 AM, Sergey Chugunov wrote: > Dmitriy, > > I think this issue highlights another lack in our documentation that > emerged with introduction of PageMemory. > > In current documentation we have some recommendations about memory capacity > planning. > As PageMemory storag

Re: Memory policies examples fails

2017-04-17 Thread Sergey Chugunov
Dmitriy, I think this issue highlights another lack in our documentation that emerged with introduction of PageMemory. In current documentation we have some recommendations about memory capacity planning. As PageMemory storage data structures introduce their own overhead; this section of document

Re: Memory policies examples fails

2017-04-17 Thread Dmitriy Setrakyan
Wow If it happened to Denis, it will happen to many other users as well. With the exception error message saying "Null", I doubt any user would figure out what to do. Can we fix the error message? D. On Mon, Apr 17, 2017 at 6:03 AM, Sergey Chugunov wrote: > Denis, > > I found an issue wit

Re: Memory policies examples fails

2017-04-17 Thread Sergey Chugunov
Denis, I found an issue with the example: each cache introduces some memory overhead (mostly for cache partitions data structures) and it must be counted in MemoryPolicy size. To fix the example just increase size of *10MB_Region_Eviction *to 15 MB and *5MB_Region_Swapping *to 10 MB. I didn't fi

Re: Memory policies examples fails

2017-04-17 Thread Sergey Chugunov
Denis, It looks like partition exchange mechanism allocates a lot of pages right after the cache is started. I'm trying to figure out what's going on. Thanks, Sergey. On Mon, Apr 17, 2017 at 12:05 AM, Denis Magda wrote: > Igniters, > > I’ve created a simple example to demonstrate how to set up