On Friday 24 October 2003 5:35 am, Shih Ming-Wei wrote:
> hi,
>
> I have solve the 99% CPU usage on Linux/sparc systems that
> we are using, apparently changing CFLAGS from "-O2 -pipe" to
> "-march=v8 -mtune=v9 -O2 -pipe -fomit-frame-pointer" cahnges
> the CPU usage from 99% to max 1.8% (avg 0.4 %). So my
> conclusion is this is not a dbmail bug but dbmail must trigger
> some bug in platform/compiler/glibc,
>
> Just my 2 cents
>
>
> Hope this might help someone else
>
> Ming-Wei

After more testing I have found that the important bit here is the  
-fomit-frame-pointer.  If I define that I don't get the excessive CPU usage.   
Is there any reason for not making this a standard compile flag?

I am running debian testing (sarge):

Which has:

gcc-3.3.1-2
kernel: 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686 GNU/Linux
libc6-2.3.2-7
mysql-client-4.0.13-3

Anything else relevant?

-- 
Bret Baptist
Systems and Technical Support Specialist
[EMAIL PROTECTED]
Internet Exposure, Inc.
http://www.iexposure.com
 
(612)676-1946 x17
Web Development-Web Marketing-ISP Services
------------------------------------------


Today is the tomorrow you worried about yesterday.

Reply via email to