From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 5C4E62F335 for ; Thu, 2 Nov 2000 15:29:01 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id eA2KT1j31239 for axp-list@listman.redhat.com; Thu, 2 Nov 2000 15:29:01 -0500 Received: from toronto.sigma6.com (toronto.sigma6.com [204.176.48.147]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id eA2KT0D31231 for ; Thu, 2 Nov 2000 15:29:00 -0500 Received: from appnet.com (IDENT:jsturm@localhost.localdomain [127.0.0.1]) by toronto.sigma6.com (8.9.3/8.9.3) with ESMTP id PAA16759 for ; Thu, 2 Nov 2000 15:37:58 -0500 Message-ID: <3A01D0A6.9A985061@appnet.com> Date: Thu, 02 Nov 2000 15:37:58 -0500 From: Jeff Sturm Organization: Commerce One X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: computational program spending lot of time in kernel References: <20001102174135.F27668@beta.theochem.kth.se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors Pawel Salek wrote: > I have got a problem: I have tried to run old large Fortran code > (compiled with fort -fast) and have noticed that it is unexpectedly slow. > Closer investigation revealed that it spends more than 50% of CPU time in > kernel. I suspect that the program does some kind of ugly floating point > operations that require kernel support. The final numbers appear to be > correct (compared against other architecture). It sounds like FP completion could be the culprit. If you can disable ieee floating-point (I don't know how to do this with the Fortran compiler) your code will trap on the offending lines, so you can identify and fix them. > Does anybody has ANY advice how to approach this problem? Is there any > way to find out the offending part of code? I thought I could run gprof > but I am not sure it show up in the output time spent in kernel.. grof won't tell you anything about kernel execution. However iprobe (http://www.alphalinux.org/iprobe/) can profile user/kernel modes at once, if that's what you're after. -- Jeff Sturm jeff.sturm@commerceone.com