X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A73CAD78EB for ; Tue, 11 Oct 2005 11:51:55 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90968-03 for ; Tue, 11 Oct 2005 14:51:46 +0000 (GMT) Received: from unicorn.rentec.com (unicorn.rentec.com [216.223.240.9]) by svr1.postgresql.org (Postfix) with ESMTP id 7C402D766F for ; Tue, 11 Oct 2005 11:51:47 -0300 (ADT) Received: from ram.rentec.com (mailhost [192.5.35.66]) by unicorn.rentec.com (8.13.1/8.12.1) with ESMTP id j9BEphSW019031 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 Oct 2005 10:51:44 -0400 (EDT) X-Source: non-mednet Received: from [172.26.132.145] (hoopoe.rentec.com [172.26.132.145]) by ram.rentec.com (8.13.1/8.12.1) with ESMTP id j9BEpgbQ020929; Tue, 11 Oct 2005 10:51:42 -0400 (EDT) Message-ID: <434BD17E.7000605@rentec.com> Date: Tue, 11 Oct 2005 10:51:42 -0400 From: Alan Stange User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050519 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alex Turner Cc: Jon Brisbin , pgsql-performance@postgresql.org Subject: Re: Performance on SUSE w/ reiserfs References: <434ADD46.5060206@npcinternational.com> <6247.1128981289@sss.pgh.pa.us> <434AE7FF.4000705@npcinternational.com> <33c6269f0510110727q62a797a1g9493661e1dc905d4@mail.gmail.com> In-Reply-To: <33c6269f0510110727q62a797a1g9493661e1dc905d4@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Logged: Logged by unicorn.rentec.com as j9BEphSW019031 at Tue Oct 11 10:51:44 2005 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.014 required=5 tests=[AWL=0.014] X-Spam-Level: X-Archive-Number: 200510/196 X-Sequence-Number: 14964 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