Re: compile problems

[prev] [thread] [next] [Date index for 2004/12/28]

From: Stas Bekman
Subject: Re: compile problems
Date: 23:01 on 28 Dec 2004
Barksdale, Ray wrote:
 >>OK, so it has something to do with 64-bit-ness. But I didn't
 >>understand.
 >>Was this problem seen on a 64-bit CPU or on a 32-bit CPU, but
 >>then code
 >>was compiled for 64-bit?
 >
 >
 > The problem (more of an observation at this point) was the apparent
 > excessive memory usage of Apache2/mod_perl2 (64-bit build) on top
 > of 64-bit Linux (RedHat Fedora Core 2 - AMD64 distribution).
 >
 > We built perl/Apache/mod_perl/libapreq/etc/etc.... in the same fashion
 > as we had for our 32-bit environment (again RedHat Fedora Core 2 - x86).
 > The memory load was normal.
 > We were not doing any crosscompiles of 64 to 32 or viceversa.
 >
 > I had a brain fart. We (read "me") got crossed up on what -m64 caused
 > gcc to do. I read the docs and understood this to cause gcc to force
 > the usage of the additional registers on the opteron. This is the
 > default behavior when building (note to self...) in the 64-bit environment.
 > Also found that there is a -march=k8 option (again a default in 64-bit
 > land).
 >
 > As far as the memory usage problem I thought I was on to the source when
 > I stripped my httpd binary and went from:
 >
 > 	VIRT	RES	SHR
 > 	76232 3856	73m
 >   to
 >   	17524 2064	15m

That's still pretty big. Are you running a debug version of all libs (libc 
and such?) that would explain the size.

 > (both without mod_perl) but this resulted in a minimal gain once
 > mod_perl was loaded.

How much added in numbers?

        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

(message missing)

RE: compile problems
Barksdale, Ray 16:57 on 17 Dec 2004

Re: compile problems
Joe Schaefer 18:27 on 17 Dec 2004

Re: compile problems
Stas Bekman 18:38 on 17 Dec 2004

RE: compile problems
Barksdale, Ray 19:05 on 17 Dec 2004

Re: compile problems
Stas Bekman 19:26 on 17 Dec 2004

RE: compile problems
Barksdale, Ray 21:05 on 17 Dec 2004

Re: compile problems
Stas Bekman 21:19 on 17 Dec 2004

RE: compile problems
Barksdale, Ray 23:38 on 17 Dec 2004

Re: compile problems
Stas Bekman 23:44 on 17 Dec 2004

RE: compile problems
Barksdale, Ray 15:19 on 22 Dec 2004

Re: compile problems
Stas Bekman 20:27 on 22 Dec 2004

RE: compile problems
Barksdale, Ray 20:37 on 22 Dec 2004

Re: compile problems
Stas Bekman 21:16 on 22 Dec 2004

RE: compile problems
Barksdale, Ray 22:01 on 22 Dec 2004

Re: compile problems
Stas Bekman 22:22 on 22 Dec 2004

RE: compile problems
Barksdale, Ray 23:07 on 22 Dec 2004

Re: compile problems
Stas Bekman 00:01 on 23 Dec 2004

RE: compile problems
Barksdale, Ray 22:50 on 28 Dec 2004

Re: compile problems
Stas Bekman 23:01 on 28 Dec 2004

RE: compile problems
Barksdale, Ray 23:15 on 28 Dec 2004

Re: compile problems
Stas Bekman 23:17 on 28 Dec 2004

RE: compile problems
Barksdale, Ray 23:50 on 28 Dec 2004

Re: compile problems
Joe Schaefer 01:29 on 29 Dec 2004

RE: compile problems
Barksdale, Ray 16:59 on 29 Dec 2004

Re: compile problems
Stas Bekman 17:21 on 29 Dec 2004

Generated at 12:16 on 16 Jan 2005 by mariachi v0.52