Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ustwienia make.conf dla Core i5
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Instalacja i sprzęt
View previous topic :: View next topic  
Author Message
sherszen
Apprentice
Apprentice


Joined: 28 Jul 2006
Posts: 217

PostPosted: Mon Feb 14, 2011 11:04 pm    Post subject: ustwienia make.conf dla Core i5 Reply with quote

Witam,

Przymierzam się do postawienia Gentoo na Core i5:
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 pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid

Jakie flagi dla gcc i linkera dobrać dla tego CPU? Standardowe core2 nie włączało raczej wszelkich możliwości cpu, a zależało mi by na pełnym wykorzystaniu możliwości procesora, jak i wysoką stabilnością systemu.

Jak wygląda sprawa z HT? Warto ustawiać -j3, czy traktować owe "4" rdzenie jako fizyczne i ustawić jako j5?

Pozdrawiam
Back to top
View user's profile Send private message
Crenshaw
Guru
Guru


Joined: 23 Jun 2004
Posts: 474
Location: Poland

PostPosted: Tue Feb 15, 2011 8:27 pm    Post subject: Reply with quote

Code:

-march=native


Ja jade na -j5.
Back to top
View user's profile Send private message
sherszen
Apprentice
Apprentice


Joined: 28 Jul 2006
Posts: 217

PostPosted: Tue Feb 15, 2011 9:04 pm    Post subject: Reply with quote

Code:
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,--as-needed"
MAKEOPTS="-j5"


Czyli proponujesz coś w tym stylu?
Back to top
View user's profile Send private message
Crenshaw
Guru
Guru


Joined: 23 Jun 2004
Posts: 474
Location: Poland

PostPosted: Thu Feb 17, 2011 9:03 pm    Post subject: Reply with quote

As needed jest automatycznie dodawane od jakiegos czasu:

Quote:
2010-08-01-as-needed-default
Title --as-needed enabled in default profiles
Author Tomáš Chvátal <scarabeus@gentoo.org>
Posted 2010-08-01
Revision 1

-Wl,--as-needed has been added to the default profile's LDFLAGS.

This option optimizes the linking process, only linking binaries to
libraries that are trully needed. This way, fewer libraries are loaded
at runtime and fewer packages need to be rebuilt after library updates.

To take advantage of the new default you can either rebuild world now
or just allow the system to migrate incrementally as it updates.

Please note that setting LDFLAGS="<your flags>" in your make.conf will
override the profile defaults. If you want to add additional LDFLAGS
it is recommended to use LDFLAGS="${LDFLAGS} <your flags>" instead to
avoid this.

For more information on --as-needed, read [1].

[1] http://www.gentoo.org/proj/en/qa/asneeded.xml


A co do zabawy to jesli np. masz jakies procozerne programy i chcialbys sie pobawic nie rozwalajac calego systemu
to mozna (zakladajac ze ma sie portage 2.2) ustawic sobie CFLAGS osobno dla kazdej paczki. (man portage a potem szukaj package.env).
Chociaz przyznam ze sie tym nie bawilem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Instalacja i sprzęt 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