Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ottimizzare il kernel per il proprio processore
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Nio84
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2009
Posts: 140

PostPosted: Fri Jul 24, 2009 11:08 am    Post subject: Ottimizzare il kernel per il proprio processore Reply with 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 opterei per la seconda ma non sono sicuro. Da quanto ho letto.....se scegliessi "generic x86_64 " non ottimizza un cavolo.
Back to top
View user's profile Send private message
viralex
Apprentice
Apprentice


Joined: 24 Apr 2008
Posts: 237
Location: Viareggio (Lu,Italy)

PostPosted: Fri Jul 24, 2009 11:35 am    Post subject: Reply with quote

con gli zen-sources puoi compilare con l'opzione native! :P
ovviamente lo puoi fare anche da te modificandoti il makefile...
Back to top
View user's profile Send private message
Nio84
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2009
Posts: 140

PostPosted: Fri Jul 24, 2009 3:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
grifone87
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jun 2005
Posts: 81
Location: Rome, Italy

PostPosted: Sat Jul 25, 2009 10:32 am    Post subject: Reply with quote

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
View user's profile Send private message
Nio84
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2009
Posts: 140

PostPosted: Mon Jul 27, 2009 12:09 pm    Post subject: Reply with quote

Ok grazie..... la -march è sempre "nocona" vero?
Back to top
View user's profile Send private message
grifone87
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jun 2005
Posts: 81
Location: Rome, Italy

PostPosted: Mon Jul 27, 2009 8:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2495
Location: イタリアのロディで

PostPosted: Tue Jul 28, 2009 12:09 pm    Post subject: Reply with quote

io uso k8 e sse3 nelle USE.
Sbaglio?
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Tue Jul 28, 2009 12:52 pm    Post subject: Reply with quote

bandreabis wrote:
io uso k8 e sse3 nelle USE.
Sbaglio?

Alla grande :roll:

LE USE non c'entrano una beneamata cippalippa con le opzioni di compilazione che Portage passa al compilatore C :!:
_________________
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
View user's profile Send private message
viralex
Apprentice
Apprentice


Joined: 24 Apr 2008
Posts: 237
Location: Viareggio (Lu,Italy)

PostPosted: Wed Jul 29, 2009 8:44 am    Post subject: Reply with quote

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 ;)
Back to top
View user's profile Send private message
xdarma
l33t
l33t


Joined: 08 Dec 2003
Posts: 720
Location: tra veneto e friuli (italy)

PostPosted: Wed Jul 29, 2009 1:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
ago
Developer
Developer


Joined: 01 Mar 2008
Posts: 1527
Location: Milan, Italy

PostPosted: Wed Jul 29, 2009 2:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
devilheart
l33t
l33t


Joined: 17 Mar 2005
Posts: 848
Location: Villach, Austria

PostPosted: Wed Jul 29, 2009 4:48 pm    Post subject: Reply with quote

invece... c'è un modo per modificare le flag di compilazione del kernel? basta modificare /usr/src/linux/Makefile ?
Back to top
View user's profile Send private message
xdarma
l33t
l33t


Joined: 08 Dec 2003
Posts: 720
Location: tra veneto e friuli (italy)

PostPosted: Wed Jul 29, 2009 6:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2495
Location: イタリアのロディで

PostPosted: Wed Jul 29, 2009 8:40 pm    Post subject: Reply with quote

bandreabis wrote:
io uso k8 e sse3 nelle USE.
Sbaglio?


Erano le CFLAGS:
Code:
CFLAGS="-O2 -march=k8 -pipe -msse3 -fomit-frame-pointer"


:?
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
viralex
Apprentice
Apprentice


Joined: 24 Apr 2008
Posts: 237
Location: Viareggio (Lu,Italy)

PostPosted: Thu Jul 30, 2009 8:51 am    Post subject: Reply with quote

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
View user's profile Send private message
ago
Developer
Developer


Joined: 01 Mar 2008
Posts: 1527
Location: Milan, Italy

PostPosted: Thu Jul 30, 2009 11:55 am    Post subject: Reply with quote

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:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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