Re: Performance on SUSE w/ reiserfs

From: Alan Stange <stange(at)rentec(dot)com>
To: Alex Turner <armtuk(at)gmail(dot)com>
Cc: Jon Brisbin <jon(dot)brisbin(at)npcinternational(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Performance on SUSE w/ reiserfs
Date: 2005-10-11 14:51:42
Message-ID: 434BD17E.7000605@rentec.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Alex Turner wrote:

> Realise also that unless you are running the 1.5 x86-64 build, java
> will not use more than 1Gig, and if the app server requests more than
> 1gig, Java will die (I've been there) with an out of memory error,
> even though there is plenty of free mem available. This can easily be
> cause by a lazy GC thread if the applicaiton is running high on CPU usage.

On my side of Planet Earth, the standard non-x64 1.5 JVM will happily
use more than 1G of memory (on linux and Solaris, can't speak for
Windows). If you're running larger programs, it's probably a good idea
to use the -server compiler in the JVM as well. I regularly run with
-Xmx1800m and regularly have >1GB heap sizes.

The standard GC will not cause on OOM error if space remains for the
requested object. The GC thread blocks all other threads during its
activity, whatever else is happening on the machine. The
newer/experimental GC's did have some potential race conditions, but I
believe those have been resolved in the 1.5 JVMs.

Finally, note that the latest _05 release of the 1.5 JVM also now
supports large page sizes on Linux and Windows:
-XX:+UseLargePages this can be quite beneficial depending on the
memory patterns in your programs.

-- Alan

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Claus Guttesen 2005-10-11 14:54:31 effective cache size on FreeBSD (WAS: Performance on SUSE w/ reiserfs)
Previous Message Andy 2005-10-11 14:27:40 Re: Massive delete performance