Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[USE FLAGS] What to use with the new T7xx Series from Intel?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
d2_racing
Bodhisattva
Bodhisattva


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

PostPosted: Tue Jul 03, 2007 4:22 am    Post subject: [USE FLAGS] What to use with the new T7xx Series from Intel? Reply with quote

Hello, I would like to know what to enable in my future /etc/make.conf.

Because I'm planning to buy this laptop : Lenovo 3000 N200

Or the Thinkpad T61

So, since they use the
Code:

Processor (CPU):      Intel® Core 2 Duo T7300
Processor internal clock speed:    2000MHz
Planar clock speed:    800 MHz
Processor manufacturer:    Intel ,

I will use the 32 bits version of the Dual CORE so, what can I enable to push my box :)
Back to top
View user's profile Send private message
johnny99
Apprentice
Apprentice


Joined: 24 Oct 2005
Posts: 249
Location: Berkeley, California

PostPosted: Tue Jul 03, 2007 5:58 am    Post subject: Reply with quote

This site lists the CFLAGS for various processors.
http://gentoo-wiki.com/Safe_Cflags#Intel_Core_Solo.2FDuo
I have a t61, and my sound card doesn't work yet, but this is my make.conf:
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
CHOST="i686-pc-linux-gnu"
MAKEOPTS="-j2"
VIDEO_CARDS="nvidia vesa"
ALSA_CARDS="hda-intel"
LINGUAS="en"
FEATURES="ccache"
CCACHE_SIZE="2G"
CCACHE_DIR="/var/tmp/portage"
USE="a52 avi apm aac avahi dsk X acl alsa apache2 arts avi bash-completion berkdb bitmap-fonts addc cdr cjkcodecs commons-codec crypt cups dri dts dv divx4linux dvd dvdnav dvdr dvdread encode exif exscalibar evolution faacc flac faad fftw ffmpeg frame fuse fontconfig foomaticdb gd gif gimpprint gnome gpm gtk gtk2 gs hal ibm iconvcodec jasper java jpeg kde-meta kerberos krb5 ldap libdv libtheora mad mmx mpeg mppe-mppc mysql ncurses ogg vorbis opengl oss pam pda ppds python qt qt3 quicktime rar real readline samba sdl spell sse ssl subtitles svga tcpd truetypelive eds tga theora v4l v4l2 win32codecs -xine ximian-connector xml xml2 xmms xv zlib kdexdeltas nptl nptlonly usb xvid"
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 Jul 03, 2007 12:43 pm    Post subject: Reply with quote

Can you post your lspci and also the specification of your T61 plz...

What is your problem with your sound ?

Do you use the alsa inside the kernel or the alsa-driver ?
Back to top
View user's profile Send private message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Tue Jul 03, 2007 1:36 pm    Post subject: Reply with quote

johnny99 wrote:
This site lists the CFLAGS for various processors.
http://gentoo-wiki.com/Safe_Cflags#Intel_Core_Solo.2FDuo


Correct me if I'm wrong, but:

1. T7100 is a dual core processor based on Core 2 Duo architecture.
2. You are gave the wrong link, use this instead:

http://gentoo-wiki.com/Safe_Cflags#Intel_Core_2_Duo.2FQuad_.2F_Xeon_51xx.2F53xx

3. Your processor has 2 cores so use at least MAKEOPTS="-j3" instead. From Gentoo Handbook:

Quote:
A good choice is the number of CPUs in your system plus one, but this guideline isn't always perfect.


"Number of CPUs" == number of cores. Maybe it should be fixed to make it more clear?
_________________
Paludis, the way packages are meant to be managed.
Back to top
View user's profile Send private message
johnny99
Apprentice
Apprentice


Joined: 24 Oct 2005
Posts: 249
Location: Berkeley, California

PostPosted: Tue Jul 03, 2007 5:20 pm    Post subject: Reply with quote

d2_racing wrote:
Can you post your lspci and also the specification of your T61 plz...

What is your problem with your sound ?

Do you use the alsa inside the kernel or the alsa-driver ?

lspci
Code:
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 0c)
00:19.0 Ethernet controller: Intel Corporation 82566MM Gigabit Network Connection (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Contoller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HBM (ICH8M-E) LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation Unknown device 0429 (rev a1)
03:00.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)
15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)
15:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 04)

Threre is a problem with the snd_hda_intel driver and the new sound chip, where the volume remains muted.
It's covered in this posting https://forums.gentoo.org/viewtopic-t-567773-highlight-.html.
Back to top
View user's profile Send private message
johnny99
Apprentice
Apprentice


Joined: 24 Oct 2005
Posts: 249
Location: Berkeley, California

PostPosted: Tue Jul 03, 2007 5:28 pm    Post subject: Reply with quote

Paapaa wrote:
johnny99 wrote:
This site lists the CFLAGS for various processors.
http://gentoo-wiki.com/Safe_Cflags#Intel_Core_Solo.2FDuo


Correct me if I'm wrong, but:

1. T7100 is a dual core processor based on Core 2 Duo architecture.
2. You are gave the wrong link, use this instead:

http://gentoo-wiki.com/Safe_Cflags#Intel_Core_2_Duo.2FQuad_.2F_Xeon_51xx.2F53xx

3. Your processor has 2 cores so use at least MAKEOPTS="-j3" instead. From Gentoo Handbook:

Quote:
A good choice is the number of CPUs in your system plus one, but this guideline isn't always perfect.


"Number of CPUs" == number of cores. Maybe it should be fixed to make it more clear?


Sorry. Yes. It's the Core 2 Duo. Sorry for the wrong anchor, but that site will help our friend with various processors in the future.

Now about the -j3 thing. Normally you would add the number of processor cores +1 to calculate -j<value>.
I read that this doesn't work like it should for the Core 2 Duo. I'll have to look through the day, as I can't find my reference, but some place posted not to use -j3 for this system.... I'll keep looking.
Back to top
View user's profile Send private message
johnny99
Apprentice
Apprentice


Joined: 24 Oct 2005
Posts: 249
Location: Berkeley, California

PostPosted: Tue Jul 03, 2007 6:12 pm    Post subject: Reply with quote

johnny99 wrote:
Now about the -j3 thing. Normally you would add the number of processor cores +1 to calculate -j<value>. I read that this doesn't work like it should for the Core 2 Duo. I'll have to look through the day, as I can't find my reference, but some place posted not to use -j3 for this system.... I'll keep looking.


I had this wrong. Found my source. They say -O3 is bad. So -j3 is Good. Sorry for the confusion.
http://tstotts.net/linux/gentooinsp640m.html Search for '-O3'
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 Jul 03, 2007 7:08 pm    Post subject: Reply with quote

I would like to go with this one :

Code:

ThinkPad T Series - 646557U



Configuration Type:    Notebook, PCI/PCI Express     
Installed Operating System:    Genuine Windows Vista Business
Processor Type:    Intel® Core 2 Duo T7100 1800MHz
Memory:    1024MB
Disc Capacity:    120GB
Graphic subsystem:    Intel Graphics Media Accelerator X3100



General Information

Part number:    646557U
Description:    TP T61 1.8GHZ 1GB 120GB VBE
Limited Warranty period and type3:    One year parts and labor (system battery: one year)

Software
Operating system provided:    Genuine Windows Vista Business
Productivity applications:    Microsoft OneNote 2007
Preloaded applications:    Yes

Processor

Processor (CPU):    Intel® Core 2 Duo T7100
Processor internal clock speed:    1800MHz
Planar clock speed:    800 MHz
Processor manufacturer:    Intel
BIOS type:    Flash ROM

Memory

Memory (RAM) std/max:    1024MB/ 4096MB
RAM speed:    667MHz
Alloy:    Gold
Optional RAM configuration:    512:1024:2048MB SODIMM
RAM type:    PC2-5300 DDR2 SDRAM
RAM slots total (available):    2 SODIMM (1)

Hard Disk
Hard disk size:    120GB
Hard disk controller:    Serial ATA
Hard disk type:    Serial ATA
Hard disk average seek time:    12 ms
Average latency:    4.17 ms
Cache size:    8 MB
Number of platters    2
Platter RPM:    5400
Burst transfer rate:    150MBps

Multimedia
CD-ROM speed:     
CD-ROM interface type:    EIDE
CD-ROM average access time:    150 ms
CD-ROM transport type:    Side tray loading
Recordable:    Yes
Removable:    Yes
DVD Speed:    DVD Recordable (Dual Layer) 24X Max

Graphics Subsystem
Graphics chipset:    Intel Graphics Media Accelerator X3100
Video RAM std/max:    --/ --
Video RAM type:    DVMT
Max resolution (with std video RAM) NI:    2048x1536 16777216 colors
Max resolution (with max video RAM) NI:    2048x1536 16777216 colors
Max colors (with std video RAM):    16777216
Max colors (with max video RAM):    16777216
Graphics bus interface:    PCI Express

Audio
Audio chipset make & model:    Intel High Definition Audio
Audio data width:    24
External speakers:    2 (Internal Speakers)
Number of integrated speakers:    2
Speaker power rating:    2 Watts

Communication
Fax/modem:    ThinkCentre 56Kbps PCI v.90
Fax/modem speeds:    56Kbps data/14.4Kbps fax

Wireless
Wireless Type:    LAN
Wireless Standard:    Intel PRO/Wireless 3945ABG
Wireless Max. Speed:    11a:54Mbps, 11b:11Mbps, 11g:54Mbps
Antenna:    UltraConnect II
Description:    Intel PRO/Wireless 3945ABG
Frequency:    802.11:2.4 to 5 GHz

Expansion Options
Plug and play support:    Yes
Expansion ports:    Expansion Bus port (for Dock II or Port Replicator II), External Display (VGA), External Microphone/Line-In, Headphone / Line out, IEEE 1394, RJ-11, RJ-45, 3 USB 2.0, 4-in-1 Multi-card Reader (SD/MMC/MS/XD)

Weight And Dimensions
Weight:    2.67 Kgs
Travel weight:    2,58 Kgs
Height:    29.7 mm
Width:    357.5
Depth:    255 mm
Operating Temperature (C) (low;high):    5, 35
Relative Humidity (%) (low; high):    8, 95

Network
Network interface:    Gigabit Ethernet- Integrated
Network speed:    10Mbps,100Mbps,1000M

Standard Features
Pointing device type:    ThinkPad UltraNav
Keyboard type standard:    Full size



1399$ Candien dollar and I have for 200$, a 1 Gig of RAM for upgrade and a 2 years + for the warranty.

Well, I didn't know that this laptop was a mess to getting Gentoo to works...
Back to top
View user's profile Send private message
johnny99
Apprentice
Apprentice


Joined: 24 Oct 2005
Posts: 249
Location: Berkeley, California

PostPosted: Tue Jul 03, 2007 7:47 pm    Post subject: Reply with quote

d2_racing wrote:
Well, I didn't know that this laptop was a mess to getting Gentoo to works...

While it hasn't been a cake walk, I has been better than expected.
When selecting devices options, I searched the web for Linux hardware support.
The t61 is a fairly new system and I expect to have all devices working soon.
The alsa group listed some fixes for the t61 sound card recently.
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: Wed Jul 04, 2007 2:38 am    Post subject: Reply with quote

Do you have the Intel Turbo Memory feature with your T61 ?

I saw this one too :

Code:

ThinkPad T - 766417F



Type de configuration :    Bloc-notes, PCI/PCI Express    
Système d'exploitation préchargé :    Genuine Windows Vista Ultimate
Type de processeur :    Intel® Core 2 Duo T7300 2000MHz
Mémoire :    2048MB
Capacité du disque :    160GB
Sous-système graphique :    nVIDIA Quadro NVS 140M 128 MB



Généralités

N° de référence :    766417F
Description :    TP T61 2GHZ 2GO 160GO VUE FR
Durée et type de la garantie limitée :    3 ans pièces et main-d'oeuvre (batterie système : 1 an)

Logiciels
Système d'exploitation fourni :    Genuine Windows Vista Ultimate
Pilotes de périphériques et utilitaires :    Sun JRE, ThinkVantage Access Connections, ThinkVantage Client Security Solution, ThinkVantage Productivity Center, ThinkVantage Rescue and Recovery, ThinkVantage System Update, Norton Internet Security 2007 (OEM Edition) with 90 days of virus definition updates, PC-Doctor diagnostics
Applications de productivité :    Adobe Acrobat Reader, Diskeeper 9.0 Home Edition, Lotus Notes Stand-alone Client (license), Microsoft OneNote 2007, Picasa from Google
Applications préchargées :    Oui

Processeur

Processeur (UCT) :    Intel® Core 2 Duo T7300
Fréquence d'horloge du processeur :    2000MHz
Bus système :    800 MHz
Fabricant du processeur :    Intel
Type de BIOS :    Flash ROM

Mémoire

Mémoire vive (RAM) (standard/max.) :    2048MB/ 4096MB
Fréquence de la RAM :    667MHz
Alliage :    Or
Configuration RAM en option :    512:1024:2048MB SODIMM
Type de RAM :    PC2-5300 DDR2 SDRAM
Connecteurs RAM au total (libres) :    2 (0)

Disque dur
Taille de disque dur :    160GB
Contrôleur de disque dur :    Intel Turbo Memory 1GB
Type de disque dur :    Serial ATA
Temps d'accès moyen :    9 ms
Temps d'attente moyen :    4.17 ms
Taille de cache :    8 MB
Nbre de faces :    2
Délai rotationnel :    5400
Cadence de transfert en rafales :    100MBps
Cadence de transfert en mode soutenu (faible; élevée) :    23 MBps;MBps

Multimédia
Vitesse du lecteur de CD-ROM :    
Type d'interface :    EIDE
Temps d'accès moyen :    150 ms
Type de transport :    Side tray loading
Support inscriptible :    Oui
Unité amovible :    Oui
Vitesse du lecteur de DVD :    DVD Recordable (Dual Layer) 24X Max

Sous-système graphique
Jeu de puces graphique :    nVIDIA Quadro NVS 140M
RAM vidéo (standard/max.) :    128 MB/ 128 MB
Définition max. (avec VRAM standard), sans entrelacement :    2048x1536 16777216 colors
Définition max. (avec VRAM max.), sans entrelacement :    2048x1536 16777216 colors
Nbre de couleurs (avec VRAM standard) :    16777216
Nbre de couleurs (avec VRAM max.) :    16777216
Interface du bus graphique :    PCI Express

Son
Marque et modèle du jeu de puces audio :    Intel High Definition Audio
Largeur de voie audio :    24
Haut-parleurs extérieurs :    2 (enceintes internes)
Nbre de haut-parleurs intégrés :    2
Puissance des haut-parleurs :    2 Watts

Communications
Fax-modem :    MWave 'Combo' Card,IBM PC Card
Vitesses du fax et du modem :    56 kbps données/14,4 kbps fax

Sans-fil
Type(s) de réseau sans fil:    Intel PRO/Wireless WiFi 4965AGN

Options d'extension
Autoconfigurabilité :    Oui
Ports d'extension :    Expansion Bus port (for Dock II/Mini Dock or Port Replicator II), External Display (VGA), External Microphone/Line-In, Headphone / Line out, IEEE 1394, RJ-11, RJ-45, 3 USB 2.0

Poids et dimensions
Poids :    2.45 Kgs
Poids-voyage :    2.24 Kgs
Hauteur :    27.6 mm
Largeur :    335.5
Profondeur :    237 mm
Température de fonctionnement (°C) (min.; max.) :    5, 35
Humidité relative (%) (min.; max.) :    8, 95

Réseau
Interface réseau :    Gigabit Ethernet- Integrated
Vitesse du réseau :    10Mbps,100Mbps,1000M

Dispositifs standards
Type du dispositif de pointage :    ThinkPad UltraNav
Type du clavier standard :    Full size

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: Wed Jul 04, 2007 2:39 am    Post subject: Reply with quote

do you have a 14' or a 15'4 size screen ?
Back to top
View user's profile Send private message
johnny99
Apprentice
Apprentice


Joined: 24 Oct 2005
Posts: 249
Location: Berkeley, California

PostPosted: Wed Jul 04, 2007 5:36 pm    Post subject: Reply with quote

d2_racing wrote:
do you have a 14' or a 15'4 size screen ?

I have the 14.1WXGA+ (1440x900).
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: Thu Jul 05, 2007 2:27 am    Post subject: Reply with quote

Can you post your /etc/make.conf plz :)

I want to see if you have some special use flags for the processor.

Did you emerge the gentoo-sources with the flag IBM ?
Back to top
View user's profile Send private message
johnny99
Apprentice
Apprentice


Joined: 24 Oct 2005
Posts: 249
Location: Berkeley, California

PostPosted: Thu Jul 05, 2007 2:47 am    Post subject: Reply with quote

d2_racing wrote:
Can you post your /etc/make.conf plz :)

I want to see if you have some special use flags for the processor.

Did you emerge the gentoo-sources with the flag IBM ?

From what I see on this page, http://www.gentoo.org/dyn/use-index.xml
IBM= "Add support for IBM ppc64 specific systems"
But I am running in 32bit mode.
cat /etc/make.conf
Code:
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
CHOST="i686-pc-linux-gnu"
MAKEOPTS="-j2"
VIDEO_CARDS="nvidia vesa"
#ALSA_CARDS="intel8x0"
ALSA_CARDS="hda-intel"
LINGUAS="en"
FEATURES="ccache"
CCACHE_SIZE="2G"
CCACHE_DIR="/var/tmp/portage"
USE="a52 aalib avi apm aac avahi dsk X acl alsa apache2 arts avi bash-completion berkdb bitmap-fonts addc cdr cjkcodecs commons-codec crypt cups dri dts dv divx4linux dvd dvdnav dvdr dvdread encode exif exscalibar evolution faacc flac faad fftw ffmpeg frame fuse fontconfig foomaticdb gd gif gimpprint gnome gpm gtk gtk2 gs hal ibm iconvcodec jasper java jpeg kde-meta kerberos krb5 ldap libdv libtheora mad mmx mpeg mppe-mppc mysql ncurses ogg vorbis opengl oss pam pda ppds python qt qt3 quicktime rar real readline samba sdl spell sse ssl subtitles svga tcpd truetypelive eds tga theora v4l v4l2 win32codecs -xine ximian-connector xml xml2 xmms xv zlib kdexdeltas nptl nptlonly usb xvid xext zvbi"
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: Thu Jul 05, 2007 3:55 am    Post subject: Reply with quote

Yeah I saw that :)

I saw a howto that describe a Gentoo installation.

http://buzzy.tesuji.org/thinkpad_t60p.html
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: Thu Jul 05, 2007 3:57 am    Post subject: Reply with quote

I have just found that : http://thinkwiki.org/wiki/Installing_Ubuntu_6.06_Kubuntu_6.06_Gentoo_2006.0_on_a_ThinkPad_T60p
Back to top
View user's profile Send private message
SteveBallmersChair
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jul 2006
Posts: 84
Location: Being thrown around in Redmond

PostPosted: Tue Jul 24, 2007 1:52 am    Post subject: Reply with quote

I just got a Gateway S-7125C tablet with a Core 2 Duo U7500 in it and I am using the CFLAGS of "-O2 -pipe -march=nocona -msse3" since I am using AMD64 and not x86. For x86, you should use "-march=prescott." GCC 4.3 has a proper "-march=core2" flag, but it's not even in unstable yet.

And one other thing about these chips- GCC seems to love them! The little U7500 running at 1.06 GHz and a single channel of DDR2-533 compiles code about 10% faster than my Athlon 64 X2 4200+ does, and the X2 has more than twice the clock speed and is running dual-channel DDR-400. I'd expect that kind of performance versus something like a P4, but the Core 2s are usually thought of as being 20% or so faster than the K8s clock-for-clock, not more than twice as fast. Oh, and the X2 is in a machine that has a 3-disk RAID 0 stripe for /var (~190 MB/sec peak) and a 10k Raptor for /tmp versus a dinky 5400 rpm laptop drive. Perhaps the code fits in the 2 MB cache of the C2D and doesn't in either of the 512 KB L2s of the X2? That would be about the only thing I can think of for an explanation, other than GCC being insanely optimized for the Core uarch.
_________________
Unix is user friendly- it is just picky who its friends are.
Back to top
View user's profile Send private message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Tue Jul 24, 2007 6:45 am    Post subject: Reply with quote

SteveBallmersChair wrote:
And one other thing about these chips- GCC seems to love them! The little U7500 running at 1.06 GHz and a single channel of DDR2-533 compiles code about 10% faster than my Athlon 64 X2 4200+ does, and the X2 has more than twice the clock speed and is running dual-channel DDR-400. I'd expect that kind of performance versus something like a P4, but the Core 2s are usually thought of as being 20% or so faster than the K8s clock-for-clock, not more than twice as fast. Oh, and the X2 is in a machine that has a 3-disk RAID 0 stripe for /var (~190 MB/sec peak) and a 10k Raptor for /tmp versus a dinky 5400 rpm laptop drive. Perhaps the code fits in the 2 MB cache of the C2D and doesn't in either of the 512 KB L2s of the X2? That would be about the only thing I can think of for an explanation, other than GCC being insanely optimized for the Core uarch.


GCC 4.2 is definitely not "insanely optimized" for Core 2 Duos so something must be very wrong with your AMD setup. I'd post a new thread about it and tried to figure out what causes the difference. Core 2 are fast but not that fast. 8)
_________________
Paludis, the way packages are meant to be managed.
Back to top
View user's profile Send private message
SteveBallmersChair
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jul 2006
Posts: 84
Location: Being thrown around in Redmond

PostPosted: Tue Jul 24, 2007 11:51 am    Post subject: Reply with quote

Paapaa wrote:

GCC 4.2 is definitely not "insanely optimized" for Core 2 Duos so something must be very wrong with your AMD setup. I'd post a new thread about it and tried to figure out what causes the difference. Core 2 are fast but not that fast. 8)


I'm using the standard GCC 4.1 that's in the AMD64 version of Gentoo. The 4200+ is only sometimes faster, which seems very odd to me as the U7500 should only be something like 60% as fast as the 4200+ is. Here are a few packages:

Code:

xorg-server-1.2.0-r3

U7500: 13 min 37 sec
4200+ 15 minutes 0 sec

mozilla-firefox-2.0.0.4

U7500: 40 minutes 36 sec
4200+: 31 minutes 46 sec


I'll see how The Mother Of All Packages, openoffice, compiles on the U7500. There are other packages like evolution that took 42 minutes on the 4200+ and only 33 minutes on the U7500, but I suspect that's because of many more USE flags being selected on the build that went on my desktop versus the laptop. [/code]
_________________
Unix is user friendly- it is just picky who its friends are.
Back to top
View user's profile Send private message
MetalWarrior
Guru
Guru


Joined: 07 Nov 2004
Posts: 347
Location: Malè (Trento), Italy

PostPosted: Sat Sep 22, 2007 11:24 am    Post subject: Re: [USE FLAGS] What to use with the new T7xx Series from In Reply with quote

d2_racing wrote:
I will use the 32 bits version of the Dual CORE so, what can I enable to push my box :)


What about the 64bit extensions of the last Core 2 Duo processor? Is it necessary to compile everything as on a 64bit system or are they just some CPU extensions that simply require some particular kernel configuration options? I'm sorry if what I said is quite stupid, but I have not too much ideas about the 64bit stuff of the last Centrino Pro cpus and I'm going to buy a laptop with a T7500 (the laptop is this one, with a 2.2 Ghz instead of a 2.6Ghz processor.. the description is in italian, but you can see that it is a "little monster" :)).
_________________
(Our) system as a whole is more or less the GNU system, with Linux added.
When you're talking about this combination, please call it ``GNU/Linux''. ~ Richard Stallman
http://www.gnu.org/gnu/why-gnu-linux.html
Back to top
View user's profile Send private message
SteveBallmersChair
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jul 2006
Posts: 84
Location: Being thrown around in Redmond

PostPosted: Sat Sep 22, 2007 2:28 pm    Post subject: Re: [USE FLAGS] What to use with the new T7xx Series from In Reply with quote

MetalWarrior wrote:
d2_racing wrote:
I will use the 32 bits version of the Dual CORE so, what can I enable to push my box :)


What about the 64bit extensions of the last Core 2 Duo processor? Is it necessary to compile everything as on a 64bit system or are they just some CPU extensions that simply require some particular kernel configuration options? I'm sorry if what I said is quite stupid, but I have not too much ideas about the 64bit stuff of the last Centrino Pro cpus and I'm going to buy a laptop with a T7500 (the laptop is this one, with a 2.2 Ghz instead of a 2.6Ghz processor.. the description is in italian, but you can see that it is a "little monster" :)).


You need an x86_64 (amd64) OS to run an x86_64 processor in 64-bit mode. The x86_64 CPUs are flexible in the fact that you can execute both 32 and 64-bit instructions on them, but you can only run both 32- and 64-bit instructions while running a 64-bit OS- you cannot run 64-bit binaries on them while you are running a 32-bit (x86) OS. Here is a little summary of x86_64 and x86 compatibility:


Code:
Action                                                 x86                                            x86_64
Can execute x86 binaries                         Yes                                  Yes, with ia32 multilib support enabled (default on amd64 Gentoo)
Can compile x86 binaries with the native GCC     Yes                                  Yes, use the "-m32" switch
Maximum memory per x86 process                   1-3 GB, depends on kernel split*     4 GB
Amount of RAM usable by the OS                   ~3.3 GB**                            64 GB-16 EB***
Can execute x86_64 binaries                      No                                   Yes
Can compile x86_64 binaries with native GCC      No                                   Yes
Maximum memory per x86_64 process                Cannot execute them at all           16 EB


* The kernel split is the user/kernel split as seen in the kernel. Usually this is 2 GB user/2 GB kernel, so you get 2 GB of address space for the user processes and 2 GB for the kernel. This can also be 1 GB user/3 GB kernel and 3 GB user/1 GB kernel.

** The actual amount of RAM that can be used on an x86 machine is technically 4 GB but varies by the PCI and other devices' addressing range allocation, aka the 32-bit "memory hole." Generally this is about 3.3 GB, but sometimes it can be as high as 3.6 GB or as low as 2.5 GB, depending on your hardware. Also note that there is Physical Address Extension (PAE) that allows the OS to use 64 GB of RAM on a 32-bit OS but does NOT change the per-process allocation, so many people don't use it. They have one process that they want to give many GB to and PAE does not help with that.

*** The actual amount of RAM that can be used on an x86_64 machine is technically 16 EB but the actual amount usable depends on the CPU's addressing capabilities. Intel's x86_64 machines can natively address up to 64 GB of RAM and can use a PAE-like virtual addressing of up to 256 TB RAM. AMD's K8 line can natively address 1 TB RAM and has a virtual address space of 256 TB. Supposedly the AMD 10h line (Barcelona) has a native RAM addressing capability of 256 TB, but I do not have one and cannot say for certain.

EDIT: Bah, my nice little table got mangled. Apparently this forum software deletes multiple spaces...
Fixed layout in the table. -- desultory
_________________
Unix is user friendly- it is just picky who its friends are.
Back to top
View user's profile Send private message
MetalWarrior
Guru
Guru


Joined: 07 Nov 2004
Posts: 347
Location: Malè (Trento), Italy

PostPosted: Sat Sep 22, 2007 2:50 pm    Post subject: Reply with quote

Thank you very much SteveBallmerChair :) so, is there any particular reason for which I should not compile Gentoo for X86_64 on a laptop with a Santa Rosa CPU and prefer a 32bit Gentoo?
_________________
(Our) system as a whole is more or less the GNU system, with Linux added.
When you're talking about this combination, please call it ``GNU/Linux''. ~ Richard Stallman
http://www.gnu.org/gnu/why-gnu-linux.html
Back to top
View user's profile Send private message
SteveBallmersChair
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jul 2006
Posts: 84
Location: Being thrown around in Redmond

PostPosted: Sat Sep 22, 2007 3:07 pm    Post subject: Reply with quote

MetalWarrior wrote:
Thank you very much SteveBallmerChair :) so, is there any particular reason for which I should not compile Gentoo for X86_64 on a laptop with a Santa Rosa CPU and prefer a 32bit Gentoo?


None that I can think of, as long as you have more than 512 MB RAM. I have a similar platform as yours (C2D U7500) and I run the amd64 version with no problems.
_________________
Unix is user friendly- it is just picky who its friends are.
Back to top
View user's profile Send private message
MetalWarrior
Guru
Guru


Joined: 07 Nov 2004
Posts: 347
Location: Malè (Trento), Italy

PostPosted: Sun Sep 23, 2007 12:11 pm    Post subject: Reply with quote

SteveBallmersChair wrote:
MetalWarrior wrote:
Thank you very much SteveBallmerChair :) so, is there any particular reason for which I should not compile Gentoo for X86_64 on a laptop with a Santa Rosa CPU and prefer a 32bit Gentoo?


None that I can think of, as long as you have more than 512 MB RAM. I have a similar platform as yours (C2D U7500) and I run the amd64 version with no problems.

I am quickly going through the AMD64 handbook installation instructions.. I see that there is an Intel EM64T kernel option (( ) Intel EM64T) which I can not find in my gentoo-sources-2.6.22-r5.. BTW, did you compile the kernel specifying Athlon64 or Core 2 Duo as processor family??
_________________
(Our) system as a whole is more or less the GNU system, with Linux added.
When you're talking about this combination, please call it ``GNU/Linux''. ~ Richard Stallman
http://www.gnu.org/gnu/why-gnu-linux.html
Back to top
View user's profile Send private message
SteveBallmersChair
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jul 2006
Posts: 84
Location: Being thrown around in Redmond

PostPosted: Sun Sep 23, 2007 1:16 pm    Post subject: Reply with quote

MetalWarrior wrote:

I am quickly going through the AMD64 handbook installation instructions.. I see that there is an Intel EM64T kernel option (( ) Intel EM64T) which I can not find in my gentoo-sources-2.6.22-r5.. BTW, did you compile the kernel specifying Athlon64 or Core 2 Duo as processor family??


I compiled my kernel for the "Core 2/Newer Xeon" as the Core 2 Duo U7500 is a Core 2-based chip. Your Core 2 Duo T7xxx unit is one also, so you should pick the same option.

If one has any Core 2 Duo/Quad or a Xeon 3xxx/51xx/53xx, Celeron 4xx, or a Pentium Dual Core E2xxx desktop chip, pick the "Core 2/Newer Xeon" option for processor family. The Athlon 64 option is for AMD K8 chips (Opteron/Athlon 64/Turion/Sempron 64) and the "Pentium 4/Older Xeon" option is for the 64-bit Pentium 4 Prescott and Cedar Mill, Pentium D, Celeron 3xx, Xeon 50xx and 70xx/71xx as well as any non-numbered 64-bit Xeon (Nocona, Irwindale, Paxville.)

I did not see the "Intel EM64T" option either in 2.6.22-r5 but my kernel runs fine on my machine, so I think you shouldn't worry about not seeing it. Perhaps it is in newer, unstable releases (-r6, -r7).
_________________
Unix is user friendly- it is just picky who its friends are.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
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