Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Umstieg von amd64 auf intel core duo
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2, 3, 4  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3541
Location: Berlin

PostPosted: Fri Oct 05, 2007 7:34 pm    Post subject: Umstieg von amd64 auf intel core duo Reply with quote

Hallo
Ich will das Rad nicht noch einmal erfinden. Ich bin von amd64 auf intel core duo umgestiegen. Kann mir jemand sagen, was ich am system aendern muss. Habe gerade das erste Mal gebootet und noch die englische Tastatur. Das nervt.
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Fri Oct 05, 2007 7:41 pm    Post subject: Reply with quote

Tastaturbelegung:
/etc/conf.d/keymaps

Prozessor:
In /etc/make.conf die CFLAGS an den neuen Prozessor anpassen.
Back to top
View user's profile Send private message
Max Steel
Advocate
Advocate


Joined: 12 Feb 2007
Posts: 2272
Location: My own world! I and Gentoo!

PostPosted: Fri Oct 05, 2007 8:02 pm    Post subject: Reply with quote

und dann wird ja mit den nächsten Update nach und nach alles neu übersetzt und es ist alles an die neuen CFLAGS und damit an die CPU angepasst.

Allerdings system würde ich trotzdem neu bauen.
_________________
mfg
Steel
___________________

Heim-PC: AMD Ryzen 5950X, 64GB RAM, GTX 1080
Laptop: Intel Core i5-4300U, 16GB RAM, Intel Graphic
Arbeit-PC: Intel i5-1145G7, 16GB RAM, Intel Iris Xe Graphic (leider WSL2)
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Fri Oct 05, 2007 8:57 pm    Post subject: Reply with quote

mit dem Befehl
Code:
emerge -e  world
.

Last edited by Keruskerfuerst on Wed Oct 10, 2007 5:54 pm; edited 3 times in total
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3541
Location: Berlin

PostPosted: Fri Oct 05, 2007 9:08 pm    Post subject: Reply with quote

Läuft erst mal. Was nehme ich den statt powernowd für dem amd64 nun für die CPU?
In der make.conf habe ich
Code:
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CXXFLAGS="${CFLAGS}"

MAKEOPTS="-j2"

USE=" 3dnow 3dnowext 64bit a52 aac aalib ace -arts asf automount bzip2 cdb cddb cdparanoia cdrom colordiff cpudetection dbus de_tvtoday dhcp disk-partition divx dmi dolby-record-switch dvb dvbplayer dvdnav emovix -esd -evo exif fame ffmpeg flac fuse german gmedia -gnome gphoto2 -gstreamer hal ieee1394 java joystick jpeg2k kdeenablefinal kdehiddenvisibility libsamplerate lirc lm_sensors matroska mjpeg mmxext mng mplayer musepack musicbrainz nsplugin nvidia recode rtc shorten theora transcode usb v4l v4l2 vcd winbind x264 xanim Xaw3d xine xvid yv12 zvbi"

Ich glaube die use flags muß ich noch ändern.
Was kommt den da neu rein?
Code:
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 ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr lahf_lm

Und gibt es noch eine Optimierung für die CFLAGS?
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Fri Oct 05, 2007 9:15 pm    Post subject: Reply with quote

Bei USE herausnehmen:

3dnow 3dnowext mmxext

hinzufügen:

mmx sse sse2 sse3 vielleicht auch noch sse4

CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -s"

weitere CFLAGS kann info GCC entnehmen.
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3541
Location: Berlin

PostPosted: Sat Oct 06, 2007 5:22 am    Post subject: Reply with quote

Ich habe jetzt
Code:
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -s -mfpmath=sse -msse2 -mmmx"
CXXFLAGS="${CFLAGS}"

und in den useflags
Code:
USE="-3dnow -3dnowext 64bit -mmxext mmx sse sse2 sse3 sse4

Sollte denn
Code:
-fomit-frame-pointer -s
nicht nur bei der x86 Architktur drin sein?
Außerdem habe ich verschiedene Aussagen zu den MAKEOPTS gefunden. Da wird teils
Code:
MAKEOPTS="-j4"
und auch
Code:
MAKEOPTS="-j3"
empfohlen.
Back to top
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Sat Oct 06, 2007 7:37 am    Post subject: Reply with quote

flammenflitzer wrote:
Außerdem habe ich verschiedene Aussagen zu den MAKEOPTS gefunden. Da wird teils
Code:
MAKEOPTS="-j4"
und auch
Code:
MAKEOPTS="-j3"
empfohlen.


Ich richte mich immer nach der Regel "Anzahl Prozessoren + 1", also 3 in Deinem Fall.
_________________
Never argue with an idiot. He brings you down to his level, then beats you with experience.

How-To: Daten verschlüsselt auf DVD speichern.
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Sat Oct 06, 2007 7:38 am    Post subject: Reply with quote

Makeopts="-j1 -s" setzen.

FORKS="=Anzahl der CPU Kerne"

USE="64bit 80387 mmx sse sse2 sse3 sse4"

passende CLFLAGS:

Code:
CFLAGS="-mtune=nocona"
CFLAGS="${CFLAGS} -march=nocona"
CFLAGS="${CFLAGS} -O2"
CFLAGS="${CFLAGS} -combine"
CFLAGS="${CFLAGS} -falign-functions=0"
CFLAGS="${CFLAGS} -falign-jumps=0"
CFLAGS="${CFLAGS} -falign-labels=0"
CFLAGS="${CFLAGS} -falign-loops=0"
CFLAGS="${CFLAGS} -fearly-inlining"
CFLAGS="${CFLAGS} -ffunction-cse"
CFLAGS="${CFLAGS} -fgcse-after-reload"
CFLAGS="${CFLAGS} -fgcse-lm"
CFLAGS="${CFLAGS} -fkeep-static-consts"
CFLAGS="${CFLAGS} -floop-optimize2"
CFLAGS="${CFLAGS} -fmerge-constants"
CFLAGS="${CFLAGS} -fno-ident"
CFLAGS="${CFLAGS} -fomit-frame-pointer"
CFLAGS="${CFLAGS} -fprefetch-loop-arrays"
CFLAGS="${CFLAGS} -frename-registers"
CFLAGS="${CFLAGS} -fweb"
CFLAGS="${CFLAGS} -mmmx"
CFLAGS="${CFLAGS} -msse"
CFLAGS="${CFLAGS} -msse2"
CFLAGS="${CFLAGS} -msse3"
CFLAGS="${CFLAGS} -msse4"
CFLAGS="${CFLAGS} -m80387"
CFLAGS="${CFLAGS} -pipe"
CFLAGS="${CFLAGS} -s"

LDFLAGS="-Wl,-O4"
LDFLAGS="${LDFLAGS} -Wl,--as-needed"
LDFLAGS="${LDFLAGS} -Wl,--enable-new-dtags"
LDFLAGS="${LDFLAGS} -Wl,-s"
LDFLAGS="${LDFLAGS} -Wl,--sort-common"
LDFLAGS="${LDFLAGS} -Wl,-z"
LDFLAGS="${LDFLAGS} -Wl,now"


Native Unterstützung für den Core Duo 2 gibt es erst ab GCC 4.2.


Last edited by Keruskerfuerst on Sat Oct 06, 2007 8:02 am; edited 1 time in total
Back to top
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Sat Oct 06, 2007 7:51 am    Post subject: Reply with quote

Keruskerfuerst wrote:
Ist es denn ein Zwei- oder Vierkernprozessor?


Soweit ich weiß gibt's Core 2 Duo nur als Dualcore, der Quadcore heißt Core 2 Quad.

Keruskerfuerst wrote:

Makeopts="-j1 -s" setzen.

FORKS="=Anzahl der CPU Kerne"


Das kannte ich noch gar nicht... Was ist der Unterschied (Vor-/Nachteil) zu MAKEOPTS="-j3"?
_________________
Never argue with an idiot. He brings you down to his level, then beats you with experience.

How-To: Daten verschlüsselt auf DVD speichern.
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Sat Oct 06, 2007 8:09 am    Post subject: Reply with quote

MAKEOPTS=da werden beim Kompilieren mehrere Threads für einen Sourcecode gestartet.

FORKS=startet mehrere parallele Kompilervorgänge für verschiedene unterschiedliche Ebuilds.
Back to top
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Sat Oct 06, 2007 8:16 am    Post subject: Reply with quote

Ich habe dazu noch nie was gelesen - seit wann gibt es dieses Feature denn in Portage?
_________________
Never argue with an idiot. He brings you down to his level, then beats you with experience.

How-To: Daten verschlüsselt auf DVD speichern.
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4565

PostPosted: Sat Oct 06, 2007 8:17 am    Post subject: Reply with quote

Keruskerfuerst wrote:
MAKEOPTS=da werden beim Kompilieren mehrere Threads für einen Sourcecode gestartet.

FORKS=startet mehrere parallele Kompilervorgänge für verschiedene unterschiedliche Ebuilds.

Wo hast du das her? Weder man make.conf noch /etc/make.conf.example sagen irgend etwas darüber...

Außerdem: So oft mach ich keine parallelen emerges, da ist es mir lieber wenn bei einem Paket parallel gearbeitet wird.
Drum lieber (wie man make.conf empfiehlt) num_cpus+1 für MAKEOPTS setzen, also für DUAL-Core -j3.
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Sat Oct 06, 2007 8:18 am    Post subject: Reply with quote

Quote:
Ich habe dazu noch nie was gelesen - seit wann gibt es dieses Feature denn in Portage?

Dies ist nirgends in der Dokumentation enthalten.
Seit einigen Monaten.

Quote:
Außerdem: So oft mach ich keine parallelen emerges, da ist es mir lieber wenn bei einem Paket parallel gearbeitet wird.
Drum lieber (wie man make.conf empfiehlt) num_cpus+1 für MAKEOPTS setzen, also für DUAL-Core -j3.

Weil beim parallelen Kompilieren eines Pakets treten einfach Fehler auf.
Daher die andere Option wählen.


Last edited by Keruskerfuerst on Mon Oct 08, 2007 6:41 am; edited 3 times in total
Back to top
View user's profile Send private message
sirro
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1472
Location: aachen.nrw.de.eu

PostPosted: Sat Oct 06, 2007 8:30 am    Post subject: Reply with quote

Keruskerfuerst wrote:
MAKEOPTS=da werden beim Kompilieren mehrere Threads für einen Sourcecode gestartet.

Um genau zu sein: Prozesse.
Das merkt man "schön" wenn man hugin mit -j 3 kompiliert und der Rechner bei 2GB auf einmal anfängt zu swappen weil man 3 GCC-Prozesse mit je >500MB RAM-Verbrauch hat :)

Quote:
FORKS=startet mehrere parallele Kompilervorgänge für verschiedene unterschiedliche Ebuilds.

Ich fände das eher schlechter als -j. Zum einen müssen die Ebuilds ja dann unabhängig sein. Man kann ja z.B. nicht foo gleichzeitig mit seiner Abhängigkeit bar kompilieren. Bringt also nur was bei mehreren Paketen oder breiten Abhängigkeitsbäumen. Aber auch da läuft dann das letzte Paket immer nur auf einem Kern.

Könnte mir auch vorstellen, dass der Output unübersichtlich wird. Aber da rede ich als "Blinder von Farbe" da mein portage das anscheinend eh gar nicht kann.

Quote:
Weil beim parallen Kompilieren eines Pakets treten einfach Fehler auf.

Die meisten Pakete bei denen das passiert filtern das doch eh. Ich hab zumindest bisher noch keine Probleme gehabt.


Last edited by sirro on Sat Oct 06, 2007 8:38 am; edited 1 time in total
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3541
Location: Berlin

PostPosted: Sat Oct 06, 2007 8:36 am    Post subject: Reply with quote

80387 in den useflags ? Oder ist das ein Tippfehler? Profuse kennt das nicht.
Geändert habe ich
Code:

CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -mmmx -msse -msse2 -msse3 -msse4 -pipe -s"
CXXFLAGS="${CFLAGS}"

MAKEOPTS="-j1 -s"
FORKS="2"
Back to top
View user's profile Send private message
sirro
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1472
Location: aachen.nrw.de.eu

PostPosted: Sat Oct 06, 2007 8:42 am    Post subject: Reply with quote

see3 gibt es auch (noch) nicht als USE-Flag. Kann man natürlich trotzdem drin lassen falls es irgendwann mal jemand nutzt. Gibt aber ssse3 im mplayer.

nocona impliziert übrigens mmx und SSE1-3, die Flags kannst du dir also sparen wenn du willst.
Code:
           nocona
               Improved version of Intel Pentium4 CPU with 64-bit extensions,
               MMX, SSE, SSE2 and SSE3 instruction set support.


SSE4 gibt es eh noch gar nicht in Serien-CPUs und deiner hat es dann bestimmt auch noch nicht. Der GCC 4.2 kennt das Flag auch nicht.
Code:
cc1: error: unrecognized command line option "-msse4"
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Sat Oct 06, 2007 12:12 pm    Post subject: Reply with quote

Man könnte die benötigte Rechenleistung eines Kompiliervorgangs wie beim Scheduling auf mehrere Kerne verteilen.
Back to top
View user's profile Send private message
Stormkings
Guru
Guru


Joined: 27 Sep 2002
Posts: 352
Location: Europe

PostPosted: Sat Oct 06, 2007 12:13 pm    Post subject: Reply with quote

Vielleicht ist das hier einfach mal interessant:
Save CFLAGS (Gentoo wiki)
Bei MAKEOPTS hab ich übrigens -j5, aber da gibts unterschiedliche Vorschläge in man make.conf
dk


Last edited by Stormkings on Sat Oct 06, 2007 12:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3541
Location: Berlin

PostPosted: Sat Oct 06, 2007 12:22 pm    Post subject: Reply with quote

Ja, das habe ich zuerst gelesen. Da geht doch aber immer noch etwas.
Back to top
View user's profile Send private message
Stormkings
Guru
Guru


Joined: 27 Sep 2002
Posts: 352
Location: Europe

PostPosted: Sat Oct 06, 2007 12:27 pm    Post subject: Reply with quote

Das ist sicher richtig, dass da noch was geht. Fraglich ist nur, ob es etwas bringt. Außer längerer compile-Zeiten und Programmstartzeiten hab ich bisher wenig von Optimierungen bemerkt. Mplayer und Konsorten kann man ja über Useflags optimieren. Am schnellsten fühlt sich noch -Os an kombiniert mit den Safe Flags.
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Mon Oct 08, 2007 6:42 am    Post subject: Reply with quote

Stormkings wrote:
Vielleicht ist das hier einfach mal interessant:
Save CFLAGS (Gentoo wiki)
Bei MAKEOPTS hab ich übrigens -j5, aber da gibts unterschiedliche Vorschläge in man make.conf
dk


Wenn man ca. 30% Geschwindigkeitszuwachs verschenken will, dann kann man dies auch gerne tun.


Last edited by Keruskerfuerst on Mon Oct 08, 2007 11:31 am; edited 2 times in total
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3541
Location: Berlin

PostPosted: Mon Oct 08, 2007 8:10 am    Post subject: Reply with quote

Was?
-j5
oder
Save CFLAGS (Gentoo wiki)
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Mon Oct 08, 2007 8:13 am    Post subject: Reply with quote

Ich meinte Save Cflags.
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3541
Location: Berlin

PostPosted: Mon Oct 08, 2007 8:22 am    Post subject: Reply with quote

Schrott

Last edited by flammenflitzer on Mon Oct 08, 2007 8:24 am; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
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