View previous topic :: View next topic |
Author |
Message |
Nio84 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/9428480074c21c559f113b.jpg)
Joined: 22 Jul 2009 Posts: 140
|
Posted: Fri Jul 24, 2009 11:08 am Post subject: Ottimizzare il kernel per il proprio processore |
|
|
Ciao a tutti , ma per ottimizzare il kernel per il mio processore (amd turion 64 x2 ) nel menuconfig , devo scegliere :
core2/newer xenon
oppure Athlon64/Opteron64
Io opterei per la seconda ma non sono sicuro. Da quanto ho letto.....se scegliessi "generic x86_64 " non ottimizza un cavolo. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
viralex Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/5651771954815e934e168c.jpg)
Joined: 24 Apr 2008 Posts: 237 Location: Viareggio (Lu,Italy)
|
Posted: Fri Jul 24, 2009 11:35 am Post subject: |
|
|
con gli zen-sources puoi compilare con l'opzione native!
ovviamente lo puoi fare anche da te modificandoti il makefile... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Nio84 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/9428480074c21c559f113b.jpg)
Joined: 22 Jul 2009 Posts: 140
|
Posted: Fri Jul 24, 2009 3:01 pm Post subject: |
|
|
Quote: | con gli zen-sources puoi compilare con l'opzione native |
Scusa sono niubbo! Gli Zen source presumo siano altri sorgenti kernel e quale è la differenza con gentoo.sources?
Io per compilare il kernel uso
Code: | genkernel --menuconfig all |
posso usare tale comando pure con zen-source? Cosa è l' opzione "native"? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
grifone87 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 01 Jun 2005 Posts: 81 Location: Rome, Italy
|
Posted: Sat Jul 25, 2009 10:32 am Post subject: |
|
|
Quote: | Ciao a tutti , ma per ottimizzare il kernel per il mio processore (amd turion 64 x2 ) nel menuconfig , devo scegliere :
core2/newer xenon
oppure Athlon64/Opteron64 |
Io ho scelto il secondo; anche perchè core2 si dovrebbe riferire ai processori Intel. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Nio84 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/9428480074c21c559f113b.jpg)
Joined: 22 Jul 2009 Posts: 140
|
Posted: Mon Jul 27, 2009 12:09 pm Post subject: |
|
|
Ok grazie..... la -march è sempre "nocona" vero? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
grifone87 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 01 Jun 2005 Posts: 81 Location: Rome, Italy
|
Posted: Mon Jul 27, 2009 8:05 pm Post subject: |
|
|
Nio84 wrote: | Ok grazie..... la -march è sempre "nocona" vero? |
No. Come puoi vedere qui, nocona è per i processori Intel a 64 bit. Tu hai un Amd, quindi devi usare k8 o athlon64: sono equivalenti, quindi la scelta è una questione di gusti!
Dato che il tuo processore (che è anche quello del mio portatile) supporta le istruzioni SSE3, è meglio usare k8-sse3 o athlon64-sse3. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bandreabis Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/188011968046698f5684c86.jpg)
Joined: 18 Feb 2005 Posts: 2495 Location: イタリアのロディで
|
Posted: Tue Jul 28, 2009 12:09 pm Post subject: |
|
|
io uso k8 e sse3 nelle USE.
Sbaglio? _________________ Il numero di post non fa di me un esperto! Anzi! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Scen Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/13649464064b974bf2b19cc.jpg)
Joined: 29 Jul 2003 Posts: 2470 Location: Padova, Italy
|
Posted: Tue Jul 28, 2009 12:52 pm Post subject: |
|
|
bandreabis wrote: | io uso k8 e sse3 nelle USE.
Sbaglio? |
Alla grande
LE USE non c'entrano una beneamata cippalippa con le opzioni di compilazione che Portage passa al compilatore C ![Exclamation :!:](images/smiles/icon_exclaim.gif) _________________ I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
viralex Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/5651771954815e934e168c.jpg)
Joined: 24 Apr 2008 Posts: 237 Location: Viareggio (Lu,Italy)
|
Posted: Wed Jul 29, 2009 8:44 am Post subject: |
|
|
si puoi compilarli alla stessa maniera, per selezionarli dopo che hai scaricato la versione git in src usi "eselect kernel".
l'overlay degli zen nn è più curato, conviene far così.
io non uso genkernel,
make menuconfig
make -j5 && make modules -j5 && make install && make modules_install
non è poi tanto più difficile...di genkernel.
poi il grub te lo sistemi a mano rimuovendo i kernel troppo vecchi, te ne tieni un'altro di sicurezza ![Wink ;)](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xdarma l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/184279067143ff0e9b28a94.jpg)
Joined: 08 Dec 2003 Posts: 720 Location: tra veneto e friuli (italy)
|
Posted: Wed Jul 29, 2009 1:19 pm Post subject: |
|
|
Quote: | io uso k8 e sse3 nelle USE |
Per le CFLAGS dovrebbe esistere sia -march=k8 -msse3 ma anche -march=k8-sse3.
Almeno secondo il manuale di GCC 4.3.3.
Per le USE, k8 non me la ricordo molto bene ;-) _________________ proud user of faKeDE-4.7.3 -> back to windowmaker -> moved to LXQt |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ago Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/6180337614ab953ee61ee4.jpg)
Joined: 01 Mar 2008 Posts: 1527 Location: Milan, Italy
|
Posted: Wed Jul 29, 2009 2:59 pm Post subject: |
|
|
viralex wrote: | io non uso genkernel,
make menuconfig
make -j5 && make modules -j5 && make install && make modules_install
non è poi tanto più difficile...di genkernel. |
essendosi dichiarato niubbo NIo84 è inutile confondegli le idee..il -j lo definisci nel make.conf e poi per compilare il kernel basta: Code: | make && make modules_install | il problema che potrebbe sorgere è la scelta dei moduli...quantomeno sistemare il kernel affinché possa partire senza initrd. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
devilheart l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/65891752743b7d4b158b7b.gif)
Joined: 17 Mar 2005 Posts: 848 Location: Villach, Austria
|
Posted: Wed Jul 29, 2009 4:48 pm Post subject: |
|
|
invece... c'è un modo per modificare le flag di compilazione del kernel? basta modificare /usr/src/linux/Makefile ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xdarma l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/184279067143ff0e9b28a94.jpg)
Joined: 08 Dec 2003 Posts: 720 Location: tra veneto e friuli (italy)
|
Posted: Wed Jul 29, 2009 6:51 pm Post subject: |
|
|
devilheart wrote: | invece... c'è un modo per modificare le flag di compilazione del kernel? basta modificare /usr/src/linux/Makefile ? |
Mi sembra di si, anche se a me hanno sconsigliato di "tirare" il kernel.
Vecchi thread:
KC14: Kernel CFLAGS
Kernel CFLAG tweaking experiences _________________ proud user of faKeDE-4.7.3 -> back to windowmaker -> moved to LXQt |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bandreabis Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/188011968046698f5684c86.jpg)
Joined: 18 Feb 2005 Posts: 2495 Location: イタリアのロディで
|
Posted: Wed Jul 29, 2009 8:40 pm Post subject: |
|
|
bandreabis wrote: | io uso k8 e sse3 nelle USE.
Sbaglio? |
Erano le CFLAGS:
Code: | CFLAGS="-O2 -march=k8 -pipe -msse3 -fomit-frame-pointer"
|
![Confused :?](images/smiles/icon_confused.gif) _________________ Il numero di post non fa di me un esperto! Anzi! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
viralex Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/5651771954815e934e168c.jpg)
Joined: 24 Apr 2008 Posts: 237 Location: Viareggio (Lu,Italy)
|
Posted: Thu Jul 30, 2009 8:51 am Post subject: |
|
|
il make.conf si applica solo ai pacchetti contenuti nel portage.. o no?
semmai dovrei modificare il makefile, ma dovrebbe andare anche così... con il -j nel make
già cmq la parte più importante è mettere i moduli corretti nel kernel..
penso che la cosa più importante sia selezionare correttamente i driver sata, di solito basta solo quello per farlo partire correttamente senza initrd. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ago Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/6180337614ab953ee61ee4.jpg)
Joined: 01 Mar 2008 Posts: 1527 Location: Milan, Italy
|
Posted: Thu Jul 30, 2009 11:55 am Post subject: |
|
|
viralex wrote: | penso che la cosa più importante sia selezionare correttamente i driver sata, di solito basta solo quello per farlo partire correttamente senza initrd. |
da non dimenticare i fs per /boot (se a parte) e / e a volte gli scsi che vengono utilizzati ![Wink :wink:](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|