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 61D8B2EFC3 for ; Fri, 3 Nov 2000 06:36:03 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id eA3Ba3626447 for axp-list@listman.redhat.com; Fri, 3 Nov 2000 06:36:03 -0500 Received: from demokritos.gr (ns1.demokritos.gr [143.233.7.10]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id eA3Ba2D26443 for ; Fri, 3 Nov 2000 06:36:02 -0500 Received: from mail.demokritos.gr (mail.demokritos.gr [143.233.11.10]) by demokritos.gr (8.9.2/8.9.2) with ESMTP id NAA26340 for ; Fri, 3 Nov 2000 13:34:05 +0200 (EET) Received: from iolkos (iolkos.chem.demokritos.gr [143.233.244.90]) by mail.demokritos.gr (8.8.5/8.8.5) with SMTP id NAA10187 for ; Fri, 3 Nov 2000 13:36:20 +0200 (EET) From: Nikolaos Margaritis Organization: NCSR "Demokritos" To: axp-list@redhat.com Subject: Re: computational program spending lot of time in kernel Date: Fri, 3 Nov 2000 13:15:28 +0200 X-Mailer: KMail [version 1.0.29] Content-Type: text/plain References: <20001102174135.F27668@beta.theochem.kth.se> In-Reply-To: <20001102174135.F27668@beta.theochem.kth.se> MIME-Version: 1.0 Message-Id: <00110313243600.17004@iolkos> Content-Transfer-Encoding: 8bit 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 On Thu, 02 Nov 2000, you wrote: > Hi, > > 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). > > 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.. Probably the kernel needs to be recompiled with the "kernel FP software completion" set to "yes". This item is is the kernel hacking menu- the last menu when you run "make xconfig". Also, have you tried compiling your code using the following flags: -fpe0 -synchronous_exceptions -arch host -tune host Good luck, Nikos -- Dr. Nikolaos A. Margaritis Molecular Modelling of Materials Laboratory Department of Physical Chemistry National Centre for Scientific Research "Demokritos" Ag. Paraskevi, Athens 15310, Greece. Tel.: +30(0)1 650 3960, +30(0)944 773242 (mobile) Fax.: +30(0)1 651 1766 URL: http://mmml.chem.demokritos.gr/~nmargar --------------------------------------------------------- So, if anybody wants to have hardware sent to them; don't call me, but instead write your own operating system. It has worked every time for me. Linus Torvalds