Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How long to compile gcc-4.4 on an i5?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Doorbreath
n00b
n00b


Joined: 27 May 2010
Posts: 35

PostPosted: Fri Jun 11, 2010 8:59 pm    Post subject: How long to compile gcc-4.4 on an i5? Reply with quote

As subject, with -march=native and 4gb ram, approx how long should emerging gcc-4.4 take on an i5 650?
Back to top
View user's profile Send private message
ak47gen
n00b
n00b


Joined: 15 Feb 2007
Posts: 43

PostPosted: Fri Jun 11, 2010 9:00 pm    Post subject: Re: How long to compile gcc-4.4 on an i5? Reply with quote

Doorbreath wrote:
As subject, with -march=native and 4gb ram, approx how long should emerging gcc-4.4 take on an i5 650?


GCC takes forever on any processor.

I would guess on an I5 little over 2 hours.
Back to top
View user's profile Send private message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Fri Jun 11, 2010 10:37 pm    Post subject: Re: How long to compile gcc-4.4 on an i5? Reply with quote

ak47gen wrote:
Doorbreath wrote:
As subject, with -march=native and 4gb ram, approx how long should emerging gcc-4.4 take on an i5 650?


GCC takes forever on any processor.

I would guess on an I5 little over 2 hours.


That's my build and i really hope that the i5 chip would perform better than 2 hours :?

Code:
genlop -i =sys-devel/gcc-4.4.4
 * sys-devel/gcc
                                                                                                         
                                                                                                         
   Total builds: 1
   Global build time: 33 minutes and 14 seconds.

   Info about currently installed ebuild:

   * sys-devel/gcc-4.4.4                                                                                 
   Install date: Thu Jun 10 20:40:27 2010                                                                 
   USE=""                                                                                                 
   CFLAGS="-march=athlon64-sse3 -O2 -pipe"

_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Back to top
View user's profile Send private message
Doorbreath
n00b
n00b


Joined: 27 May 2010
Posts: 35

PostPosted: Sat Jun 12, 2010 12:19 am    Post subject: Reply with quote

Quote:

That's my build and i really hope that the i5 chip would perform better than 2 hours

Man was hoping it'd be like a half hour
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat Jun 12, 2010 3:32 am    Post subject: Reply with quote

What, one of my friend use a Core I5 and it took 72 minutes to emerge -e system, so basically, it's suppose to be pretty fast.
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Sat Jun 12, 2010 4:19 am    Post subject: Re: How long to compile gcc-4.4 on an i5? Reply with quote

ak47gen wrote:
Doorbreath wrote:
As subject, with -march=native and 4gb ram, approx how long should emerging gcc-4.4 take on an i5 650?


GCC takes forever on any processor.

I would guess on an I5 little over 2 hours.
Seriously?

According to genlop, 4.4 emerges in just under 10 minutes on my phenom...
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat Jun 12, 2010 3:06 pm    Post subject: Reply with quote

Indeed, something is wrong on his box for sure.
Back to top
View user's profile Send private message
ComaWhite
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2008
Posts: 125

PostPosted: Mon Jun 14, 2010 4:03 am    Post subject: Reply with quote

well on my box, it takes about 10-15 minutes
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2569

PostPosted: Mon Jun 14, 2010 4:28 am    Post subject: Reply with quote

On my system:

# time emerge -1 sys-devel/gcc
real 11m6.854s
user 49m34.886s
sys 6m21.723s


Although I have to say this was with on-demand frequency scaling, and it kept going down to 1.6 ghz briefly for some reason. Max is 2.67 ghz.

I don't have an i5, but seeing results from an i7 920 might give you an idea.

PS: I forgot to mention that I have /var/tmp/portage mounted as tmpfs.

PPS: I tried it again locking it to 2.67 ghz, got this:
real 10m46.801s
user 49m36.565s
sys 6m19.212s
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Mon Jun 14, 2010 10:39 am    Post subject: Reply with quote

Tmpfs can save you less then 10% in some situations.
Back to top
View user's profile Send private message
Doorbreath
n00b
n00b


Joined: 27 May 2010
Posts: 35

PostPosted: Mon Jun 14, 2010 6:39 pm    Post subject: Reply with quote

Would ccache have affected any of those times? Just tried a very quick test install, emerge -e system took about 3 hours with gcc taking well over an hour. What could be wrong?
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Mon Jun 14, 2010 7:41 pm    Post subject: Reply with quote

Can you post this :

Code:

# emerge --info
# hdparm -tT /dev/sda
Back to top
View user's profile Send private message
Muso
Veteran
Veteran


Joined: 22 Oct 2002
Posts: 1052
Location: The Holy city of Honolulu

PostPosted: Mon Jun 14, 2010 8:07 pm    Post subject: Re: How long to compile gcc-4.4 on an i5? Reply with quote

ak47gen wrote:
Doorbreath wrote:
As subject, with -march=native and 4gb ram, approx how long should emerging gcc-4.4 take on an i5 650?


GCC takes forever on any processor.

I would guess on an I5 little over 2 hours.


Really? I'm on a Phenom II X4 810 and I build it in under 17 minutes.
Code:
Thu Jun 10 17:22:42 2010 >>> sys-devel/gcc-4.4.4
       merge time: 16 minutes and 36 seconds.


It won't be 2 hours for an i5, it should be under 30 minutes.
_________________
"You can lead a horticulture but you can't make her think" ~ Dorothy Parker
2021 is the year of the Linux Desktop!
Back to top
View user's profile Send private message
Doorbreath
n00b
n00b


Joined: 27 May 2010
Posts: 35

PostPosted: Mon Jun 14, 2010 8:15 pm    Post subject: Reply with quote

emerge --info
Code:
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.3, glibc-2.10.1-r1, 2.6.32-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-x86_64-Intel-R-_Core-TM-_i5_CPU_650_@_3.20GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 14 Jun 2010 11:30:01 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r2, 3.1.2-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdr cleartype cli consolekit corefonts cracklib crypt css cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm hal iconv ipv6 jpeg kde lcms ldap libnotify lm_sensors mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl plasma png ppds pppd python qt3support qt4 readline reflection sdl session spell spl sse sse2 ssl ssse3 startup-notification subversion svg symlink sysfs tcpd tiff truetype unicode usb vorbis x264 xcb xcomposite xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

hdparm -Tt /dev/sdb
Code:
/dev/sdb:
 Timing cached reads:   11890 MB in  2.00 seconds = 5948.44 MB/sec
 Timing buffered disk reads:  186 MB in  3.03 seconds =  61.45 MB/sec
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Mon Jun 14, 2010 9:16 pm    Post subject: Reply with quote

Hi,
Code:

/dev/sda:
 Timing cached reads:   13944 MB in  2.00 seconds = 6980.58 MB/sec
 Timing buffered disk reads:  330 MB in  3.00 seconds = 109.85 MB/sec


That's mine on my main box.

Right now, I have no idea where your problem come from.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Mon Jun 14, 2010 9:17 pm    Post subject: Reply with quote

Is this a laptop ? If so, are you sure that your current CPUFREQ is at maximum ?
Back to top
View user's profile Send private message
Doorbreath
n00b
n00b


Joined: 27 May 2010
Posts: 35

PostPosted: Mon Jun 14, 2010 9:27 pm    Post subject: Reply with quote

Not a laptop, no frequency scaling at all. Could it be this?
Back to top
View user's profile Send private message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Mon Jun 14, 2010 10:14 pm    Post subject: Re: How long to compile gcc-4.4 on an i5? Reply with quote

Doorbreath wrote:
As subject, with -march=native and 4gb ram, approx how long should emerging gcc-4.4 take on an i5 650?


It usually finishes within an hour on my systems. Are you setting MAKEOPTS="-j5"?
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6103
Location: Dallas area

PostPosted: Mon Jun 14, 2010 11:16 pm    Post subject: Reply with quote

Takes me ~30 min on a dual core amd64 w/4G ram
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Tue Jun 15, 2010 2:05 am    Post subject: Reply with quote

Ok, now we gonna try this :

Add this inside your /etc/make.conf :
Code:

EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=5.0 --with-bdeps y"


Now recompile gcc.
Back to top
View user's profile Send private message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Tue Jun 15, 2010 2:27 am    Post subject: Reply with quote

d2_racing wrote:
Ok, now we gonna try this :

Add this inside your /etc/make.conf :
Code:

EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=5.0 --with-bdeps y"


Now recompile gcc.


--jobs=5 will make portage compile up to 5 packages at a time. GCC, being a single package, will not benefit from that.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Tue Jun 15, 2010 2:31 am    Post subject: Reply with quote

Can you post this :
Code:

# cat /proc/cpuinfo


Maybe your kernel doesn't see your 4 logicials CPU.
Back to top
View user's profile Send private message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Tue Jun 15, 2010 2:44 am    Post subject: Reply with quote

d2_racing wrote:
Can you post this :
Code:

# cat /proc/cpuinfo


Maybe your kernel doesn't see your 4 logicials CPU.


I hope you are not referring to me, as I am not the one with the slow GCC compile times, but just in case:


Code:
$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Quad CPU    Q9550  @ 2.83GHz
stepping        : 10
cpu MHz         : 2838.600
cache size      : 6144 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx lm constant_tsc arch_perfmon pebs bts rep_good xtopology tsc_reliable aperfmperf pni ssse3 cx16 sse4_1 lahf_lm
bogomips        : 5677.20
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Quad CPU    Q9550  @ 2.83GHz
stepping        : 10
cpu MHz         : 2838.600
cache size      : 6144 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx lm constant_tsc arch_perfmon pebs bts rep_good xtopology tsc_reliable aperfmperf pni ssse3 cx16 sse4_1 lahf_lm
bogomips        : 5678.65
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Quad CPU    Q9550  @ 2.83GHz
stepping        : 10
cpu MHz         : 2838.600
cache size      : 6144 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx lm constant_tsc arch_perfmon pebs bts rep_good xtopology tsc_reliable aperfmperf pni ssse3 cx16 sse4_1 lahf_lm
bogomips        : 5629.12
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Quad CPU    Q9550  @ 2.83GHz
stepping        : 10
cpu MHz         : 2838.600
cache size      : 6144 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx lm constant_tsc arch_perfmon pebs bts rep_good xtopology tsc_reliable aperfmperf pni ssse3 cx16 sse4_1 lahf_lm
bogomips        : 5683.83
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Tue Jun 15, 2010 3:04 am    Post subject: Reply with quote

Nope, I was asking to Doorbreath
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2569

PostPosted: Tue Jun 15, 2010 3:07 am    Post subject: Reply with quote

Shining Arcanine wrote:
d2_racing wrote:
Ok, now we gonna try this :

Add this inside your /etc/make.conf :
Code:

EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=5.0 --with-bdeps y"


Now recompile gcc.


--jobs=5 will make portage compile up to 5 packages at a time. GCC, being a single package, will not benefit from that.


Use MAKEOPTS="-j5" instead. I used -j9 on my box, and it seemed to keep all cores busy.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum