News for hackers. Stuff that matters.
Re:Reducing Java Memory Usage and GC with UseCompressedOops ... by CJefferson on Friday March 16, 2012 @01:31PM (#3714296)
This article fails to say what this flag actually does. My understanding is that it makes 64 bit java use 32 bit pointers. Using the fact that all java memory is 8 byte aligned, a 32 bit pointer gets you a 32gb memory space.
Re:Reducing Java Memory Usage and GC with UseCompressedOops ... by leneghan on Friday March 16, 2012 @03:20PM (#3714854)
Thanks for the feedback, I have now added a bit more information to the background section as well as a link to a full writeup of how it is done.
Re:Reducing Java Memory Usage and GC with UseCompressedOops ... by Tuna-Fish on Friday March 16, 2012 @04:24PM (#3715117)
An interesting tidbit to those who do not know: x86 allows for all memory accesses to use an addressing mode of base+{1,2,4,8}*index. This allows this particular optimization to be used with no performance cost for many normal accesses.
Re:Reducing Java Memory Usage and GC with UseCompressedOops ... by JohnLavoie on Friday March 16, 2012 @03:29PM (#3714881)
We love this setting. It gives us a really nice performance boost on big heaps. Obviously, it can only be enabled on heap sizes below 32GB. We have found that with this setting enabled on a 32GB heap, we need to go up to 48GB+ in order to achieve the same performance.
Re:Reducing Java Memory Usage and GC with UseCompressedOops ... by jbooth on Friday March 16, 2012 @03:33PM (#3714904)
48GB??? How long are your old gen GC pauses?
Re:Reducing Java Memory Usage and GC with UseCompressedOops ... by mrfu on Friday March 16, 2012 @03:29PM (#3714885)
It is not clear whether it reduces the heap size, or the overall footprint of the java process.

By the way, if anyone knows of a method to reduce the RSS size of the java process, I'd be more than grateful to hear about it.

Re:Reducing Java Memory Usage and GC with UseCompressedOops ... by jbooth on Friday March 16, 2012 @03:36PM (#3714912)
Heap size should be roughly equivalent to the overall footprint unless you're allocating a lot of native memory or mmapped files from the java process. If you are, well, that's your answer.