Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 73339B5DBD7 for ; Mon, 13 Jun 2011 14:12:32 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 45787-03 for ; Mon, 13 Jun 2011 17:12:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-vw0-f46.google.com (mail-vw0-f46.google.com [209.85.212.46]) by mail.postgresql.org (Postfix) with ESMTP id 1548BB5DBD8 for ; Mon, 13 Jun 2011 14:12:24 -0300 (ADT) Received: by vws1 with SMTP id 1so3779574vws.19 for ; Mon, 13 Jun 2011 10:12:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=hNEanYHU+j36PJokh7rY/5td71czESk7kkpGrvOvSIc=; b=ur22AYWooCILgotBBTHJ7guUqi+NhNZzHfCCgtvZbA1kZsa/e1u0Sidvy0cPFrkl3s tHFbWOPF0P5LRgLtfOk0OFnvmrCKWdJvPD6vyDlCDlHMCvkHVoYAkCy7+prIpmSdCJDC 49jsPoFS1ZRizVka7klBXVCsTSTqaBu437uB0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=WGnao5J0JVqI63l5YyMwFTL3Zma5tJQjQemswzWok6BVPJGWMQB/Ii8cu+f996orKv nYtyHm+rkB26w4LdfmzPLyLiD00NQd1VseZLH+nq5E+AlyJKF4yay61Zqdaj4CloBsK8 wOUeqetRNq/FvlO7B1hrf+37w5PNAVxwIpo3U= MIME-Version: 1.0 Received: by 10.52.73.131 with SMTP id l3mr1734570vdv.175.1307985144554; Mon, 13 Jun 2011 10:12:24 -0700 (PDT) Received: by 10.52.162.163 with HTTP; Mon, 13 Jun 2011 10:12:24 -0700 (PDT) In-Reply-To: References: <4DF5B7B3.7010708@postnewspapers.com.au> <56264945a293522f5d499649330d3f84@mail.softperience.eu> Date: Mon, 13 Jun 2011 14:12:24 -0300 Message-ID: Subject: Re: Question about speed: Weird Behavior From: Israel Ben Guilherme Fonseca To: pgsql-jdbc@postgresql.org Content-Type: multipart/alternative; boundary=20cf3071d02ee9a37704a59b0588 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.013 tagged_above=-10 required=5 tests=FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RFC_ABUSE_POST=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201106/31 X-Sequence-Number: 21955 --20cf3071d02ee9a37704a59b0588 Content-Type: text/plain; charset=ISO-8859-1 Thanks for all the answers, Smogura: "This is system autotuning - a good solution." Where can I find more about this subject, and how can I weak it? Is it hidden on postresql.conf? Can I configure it to always use an specifc size like 8258 bytes per-package? I'm doing tests on other drivers of other programming languages to postgresql, and for those, there wasn't any package size differences, only with the Java tests. Maybe the others drivers are setting specific values for this. 2011/6/13 Maciek Sakrejda > > There may be some GC > > overhead, you should call System.gc after or before each pass to start > with > > similar environment. > > Note that the contract of System.gc() is really more like "Hey, I > think it might be fun to run GC right now," than "You'll run GC right > now and you'll like it." In other words, it's technically only a > suggestion, so you should make sure it's actually doing something > before you start depending on it for performance numbers. > > --- > Maciek Sakrejda | System Architect | Truviso > > 1065 E. Hillsdale Blvd., Suite 215 > Foster City, CA 94404 > (650) 242-3500 Main > www.truviso.com > --20cf3071d02ee9a37704a59b0588 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for all the answers,

Smogura: "This is system autotuning= - a good solution."

Where can I find more about this subject, = and how can I weak it? Is it hidden on postresql.conf? Can I configure it t= o always use an specifc size like 8258 bytes per-package?

I'm doing tests on other drivers of other programming languages to = postgresql, and for those, there wasn't any package size differences, o= nly with the Java tests. Maybe the others drivers are setting specific valu= es for this.


2011/6/13 Maciek Sakrejda <msakrejda@truviso.com&= gt;
> There may be some GC
> overhead, you should call System.gc after or before each pass to start= with
> similar environment.

Note that the contract of System.gc() is really more like "Hey, = I
think it might be fun to run GC right now," than "You'll run = GC right
now and you'll like it." In other words, it's technically only= a
suggestion, so you should make sure it's actually doing something
before you start depending on it for performance numbers.

---
Maciek Sakrejda | System Architect | Truviso

1065 E. Hillsdale Blvd., Suite 215
Foster City, CA 94404
(650) 242-3500 Main
www.truviso.com

--20cf3071d02ee9a37704a59b0588--