Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 89844 invoked from network); 28 Nov 2006 11:00:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Nov 2006 11:00:12 -0000 Received: (qmail 51757 invoked by uid 500); 28 Nov 2006 11:00:20 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 51733 invoked by uid 500); 28 Nov 2006 11:00:20 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 51724 invoked by uid 99); 28 Nov 2006 11:00:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Nov 2006 03:00:20 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [192.18.1.36] (HELO gmp-ea-fw-1.sun.com) (192.18.1.36) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Nov 2006 03:00:07 -0800 Received: from d1-emea-09.sun.com (d1-emea-09.sun.com [192.18.2.119]) by gmp-ea-fw-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id kASAxdf4027393 for ; Tue, 28 Nov 2006 10:59:42 GMT Received: from conversion-daemon.d1-emea-09.sun.com by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0J9F00H01T7DUJ00@d1-emea-09.sun.com> (original mail from Knut.Hatlen@Sun.COM) for derby-dev@db.apache.org; Tue, 28 Nov 2006 10:59:39 +0000 (GMT) Received: from localhost ([129.159.112.231]) by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0J9F00M21T7E0KZE@d1-emea-09.sun.com> for derby-dev@db.apache.org; Tue, 28 Nov 2006 10:59:39 +0000 (GMT) Date: Tue, 28 Nov 2006 11:59:38 +0100 From: Knut Anders Hatlen Subject: Re: [jira] Commented: (DERBY-2118) Change some boundary checks in ArrayInputStream to ASSERTs to improve performance In-reply-to: <18318719.1164677841584.JavaMail.jira@brutus> Sender: Knut.Hatlen@Sun.COM To: derby-dev@db.apache.org Message-id: Organization: Sun Microsystems MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT References: <18318719.1164677841584.JavaMail.jira@brutus> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (usg-unix-v) X-Virus-Checked: Checked by ClamAV on apache.org "Daniel John Debrunner (JIRA)" writes: > Also how can these methods take up 1.5% of system time, since they > are just modifying instance fields, isn't that all user code? "Dyre Tjeldvoll (JIRA)" writes: > Wrt. system cpu: I think that's strange too, but that is what the > profiler says. Maybe it is wrong. (it attributes the system cpu (and > most of the user cpu too) to the byte code line doing getfield #11, > which I think is ArrayInputStream.end I'm just guessing here, but embedded Derby should use very little system CPU (at least for read-only load, all data in page cache and only one client, which I assume is the configuration used). 1.5% of a number that is very small in the first place, is very close to nothing. Since this is some of the code that is executed most frequently, background noise might be accumulated there. I don't know what that background noise might be, but perhaps cache misses or involuntary context switches use system CPU? Does your profiler say how much of the total CPU time is system time? -- Knut Anders