Re: using jna.jar Unknown mlockall error 0

2010-10-09 Thread Peter Schuller
IIRC, mlockall doesn't work as a non root user on Linux. Memory locking is permitted for non-root on modern Linux, but is subject to resource limitations (ulimit -l). I believe this also applies to mlockall() (and not just mlock()), provided that you lock MCL_CURRENT rather than MCL_FUTURE

Re: Dazed and confused with Cassandra on EC2 ...

2010-10-09 Thread Peter Schuller
The main reason to set Xms=Xmx is so mlockall can tag the entire heap as don't swap this out on startup.  Secondarily whenever the heap resizes upwards the JVM does a stop-the-world gc, but no, not really a big deal when your uptime is in days or weeks. I'm not sure where this is coming from,

Re: Dazed and confused with Cassandra on EC2 ...

2010-10-09 Thread Peter Schuller
Heap *shrinkage* on the other hand is another matter and for both CMS and G1, shrinkage never happens except on Full GC, unfortunately. I'm And to be clear, the implication here is that shrinkage normally doesn't happen. The implication is *not* that you see fallbacks to full GC for the purpose

Client-side sorting

2010-10-09 Thread cbert...@libero.it
Hi all, do you know any component for client-side sorting of cassandra structures? Like order groups of SuperColumn on the base of a value of SubColumn and similar operations? (ordering by asciitype/bytestype and so on) ... Do you know anything like this? I'd like to avoid DTO/VO pattern +