Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO] write-combination su gentoo
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
AlterX
l33t
l33t


Joined: 03 Apr 2004
Posts: 754
Location: rm -rf /*

PostPosted: Fri Jun 10, 2005 1:50 pm    Post subject: [RISOLTO] write-combination su gentoo Reply with quote

Ciao, girando qua e là,
si trova un tip su come rendere più performante X11:
cioè aggiungere in /proc/mtrr, ove supportato, una stringa
con attivata la write-combination (debian la usa, almeno la
sarge)...in gentoo non è impostata!
Io ho provato ad impostarla all'avvio del sistema, ma mi va in
palla l'ambiente grafico, mentre se lo inserisco dopo aver
fatto il login in kde, non sembra lamentarsi.
Qualcuno ha più info su questa tecnica???
Se è applicabile su gentoo o no?!?!?

Grazie


Last edited by AlterX on Wed Jun 15, 2005 9:28 am; edited 1 time in total
Back to top
View user's profile Send private message
nick_spacca
l33t
l33t


Joined: 29 May 2004
Posts: 689
Location: Paris/France

PostPosted: Fri Jun 10, 2005 1:52 pm    Post subject: Reply with quote

Non so se e' quello di cui parli....ma io ho questo in /proc/mtrr:
Code:

nick-book nick # cat /proc/mtrr
reg00: base=0x00000000 (   0MB), size= 512MB: write-back, count=1
reg01: base=0x20000000 ( 512MB), size= 256MB: write-back, count=1
reg02: base=0x2ff00000 ( 767MB), size=   1MB: uncachable, count=1
reg03: base=0xfeda0000 (4077MB), size= 128KB: write-through, count=1
reg04: base=0xf0000000 (3840MB), size= 128MB: write-combining, count=3
nick-book nick #

e sembrerebbe esserci quella regola...
_________________
I can resist anything but temptation.
(O. Wilde)
Back to top
View user's profile Send private message
AlterX
l33t
l33t


Joined: 03 Apr 2004
Posts: 754
Location: rm -rf /*

PostPosted: Fri Jun 10, 2005 2:16 pm    Post subject: Reply with quote

nick_spacca wrote:
Non so se e' quello di cui parli....ma io ho questo in /proc/mtrr:
Code:

nick-book nick # cat /proc/mtrr
reg00: base=0x00000000 (   0MB), size= 512MB: write-back, count=1
reg01: base=0x20000000 ( 512MB), size= 256MB: write-back, count=1
reg02: base=0x2ff00000 ( 767MB), size=   1MB: uncachable, count=1
reg03: base=0xfeda0000 (4077MB), size= 128KB: write-through, count=1
reg04: base=0xf0000000 (3840MB), size= 128MB: write-combining, count=3
nick-book nick #

e sembrerebbe esserci quella regola...


8O e perchè sul mio non c'è?!?!?

EDIT: è proprio questo che intendevo :lol:
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Fri Jun 10, 2005 4:44 pm    Post subject: Reply with quote

hai abilitato nel kernel gli MTRR?
hai letto la documentazione del kernel e hai forse visto se qualcuno ha avuto il tuo stesso problema?
Back to top
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Fri Jun 10, 2005 5:50 pm    Post subject: Reply with quote

in effetti bisogna abilitarlo nel kernel
Code:
CONFIG_MTRR=y

in processor type and features
Code:
MTTR (Memory Type Range Register) support -> yes

Code:
PenguinRemake linux # cat /proc/mtrr
reg00: base=0x00000000 (   0MB), size= 512MB: write-back, count=1
reg01: base=0xe0000000 (3584MB), size=  64MB: write-combining, count=1
reg02: base=0xd0000000 (3328MB), size= 256MB: write-combining, count=1

_________________
C.
Back to top
View user's profile Send private message
AlterX
l33t
l33t


Joined: 03 Apr 2004
Posts: 754
Location: rm -rf /*

PostPosted: Fri Jun 10, 2005 6:22 pm    Post subject: Reply with quote

CarloJekko wrote:
in effetti bisogna abilitarlo nel kernel
Code:
CONFIG_MTRR=y

in processor type and features
Code:
MTTR (Memory Type Range Register) support -> yes

Code:
PenguinRemake linux # cat /proc/mtrr
reg00: base=0x00000000 (   0MB), size= 512MB: write-back, count=1
reg01: base=0xe0000000 (3584MB), size=  64MB: write-combining, count=1
reg02: base=0xd0000000 (3328MB), size= 256MB: write-combining, count=1


E' questo il punto: io ho il supporto MTRR compilato nel kernel perchè uso
i driver della scheda nvidia, ma a quanto pare sono l'unico che non ha
questa impostazione attiva :cry:
Back to top
View user's profile Send private message
wolf3d
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2003
Posts: 101
Location: Nibelheim

PostPosted: Fri Jun 10, 2005 7:27 pm    Post subject: Reply with quote

Code:
cat /proc/mtrr

reg00: base=0x00000000 (   0MB), size= 512MB: write-back, count=1
reg01: base=0xe0000000 (3584MB), size=  64MB: write-combining, count=1


io ho solo questi due.. ma dipendono da impostazioni bios forse :?:
_________________
The Brave Do Not Fear The Grave
Back to top
View user's profile Send private message
AlterX
l33t
l33t


Joined: 03 Apr 2004
Posts: 754
Location: rm -rf /*

PostPosted: Sat Jun 11, 2005 10:31 am    Post subject: Reply with quote

wolf3d wrote:
Code:
cat /proc/mtrr

reg00: base=0x00000000 (   0MB), size= 512MB: write-back, count=1
reg01: base=0xe0000000 (3584MB), size=  64MB: write-combining, count=1


io ho solo questi due.. ma dipendono da impostazioni bios forse :?:


Ho controllato anche nel BIOS; a parte che il bios del mio portatile permette davvero
di fare poche impostazioni!!! :cry:

Altra cosa: se imposto a mano la chiave nel mtrr, anche se specifico 128MB lui al
massimo me lo imposta a 4MB!!!
Che cosa posso fare??
Ho cercato in giro, ma nessuno sa come si deve impostare, o da cosa può dipendere!!!
Back to top
View user's profile Send private message
AlterX
l33t
l33t


Joined: 03 Apr 2004
Posts: 754
Location: rm -rf /*

PostPosted: Mon Jun 13, 2005 9:03 am    Post subject: Reply with quote

AlterX wrote:
CarloJekko wrote:
in effetti bisogna abilitarlo nel kernel
Code:
CONFIG_MTRR=y

in processor type and features
Code:
MTTR (Memory Type Range Register) support -> yes

Code:
PenguinRemake linux # cat /proc/mtrr
reg00: base=0x00000000 (   0MB), size= 512MB: write-back, count=1
reg01: base=0xe0000000 (3584MB), size=  64MB: write-combining, count=1
reg02: base=0xd0000000 (3328MB), size= 256MB: write-combining, count=1


E' questo il punto: io ho il supporto MTRR compilato nel kernel perchè uso
i driver della scheda nvidia, ma a quanto pare sono l'unico che non ha
questa impostazione attiva :cry:


Perchè non è attivo sul mio computer?!?!? :cry: :cry: :cry:
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Mon Jun 13, 2005 4:19 pm    Post subject: Reply with quote

AlterX wrote:
E' questo il punto: io ho il supporto MTRR compilato nel kernel perchè uso i driver della scheda nvidia, ma a quanto pare sono l'unico che non ha
questa impostazione attiva :cry:

Perchè non è attivo sul mio computer?[/quote]
allora... lo sai che esistono in alcuni casi delle limitazioni circa la quantità di memoria che si può usare per queste cose?
cosa dice la documentazione del tuo hardware?
sei veramente sicuro che il driver che stai usando sia correttamente configurato?
Back to top
View user's profile Send private message
AlterX
l33t
l33t


Joined: 03 Apr 2004
Posts: 754
Location: rm -rf /*

PostPosted: Tue Jun 14, 2005 8:46 am    Post subject: Reply with quote

[quote="k.gothmog"]
AlterX wrote:
E' questo il punto: io ho il supporto MTRR compilato nel kernel perchè uso i driver della scheda nvidia, ma a quanto pare sono l'unico che non ha
questa impostazione attiva :cry:
Perchè non è attivo sul mio computer?

allora... lo sai che esistono in alcuni casi delle limitazioni circa la quantità di memoria che si può usare per queste cose?
cosa dice la documentazione del tuo hardware?
sei veramente sicuro che il driver che stai usando sia correttamente configurato?


Non ho trovato nulla che spieghi cosa può o non può fare il mio hardware!!
Capisco che le limitazioni esistono, per carità, ma a quanto pare esiste solo
sul mio portatile!!
Voglio dire: si tratta di una chiave di registro per dire al sistema come deve operare
su quel range di memoria, specificando un indirizzo di base (scheda grafica, ecc...)
e la quantità di memoria, da quel range, che deve essere trattata in quel modo.
Non ci vedo nulla di limitato o dipendente da qualcosa!?!? poi non so...
Il fatto è che se lo imposto a mano, accetta il valore, anche se mi imposta al massimo
solo 4MB per la memoria video nonostante ne specifico 128MB (memoria della scheda AGP).
In ogni caso, accetta la stringa, anche se, provando ad eseguirla al boot in automatico, succede
qualcosa di strano, tipo non si vede bene l'ambiente grafico (una volta si è sdoppiato!).
Il fatto è che, appunto come dici tu, sto cercando informazioni su cosa può dipende questa impostazione,
per capirci meglio qualcosa, ma sono davvero pochissime...:cry:
Back to top
View user's profile Send private message
AlterX
l33t
l33t


Joined: 03 Apr 2004
Posts: 754
Location: rm -rf /*

PostPosted: Wed Jun 15, 2005 9:28 am    Post subject: Reply with quote

Vaaaaaaaaaaa beeeeeeeeeeeneeeeeeeee!!

Ho risolto: sono riuscito a configurarlo bene e con tutti i 128MB della scheda video!
Parte bene all'avvio del sistema e non causa problemi...l'unica perplessità che rimane:

PERCHE' IL MIO SISTEMA E' L'UNICO CHE NON LO ESEGUE IN AUTOMATICO????

Questa è l'ultima domanda che mi incuriosisce di più!!
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Wed Jun 15, 2005 9:33 am    Post subject: Reply with quote

a certe domande nemmeno la scienza può dare risposta
Back to top
View user's profile Send private message
.:deadhead:.
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 2963
Location: Milano, Italy

PostPosted: Wed Jun 15, 2005 10:11 am    Post subject: Reply with quote

raccontaci come hai fatto :-)
_________________
Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! ;)
Back to top
View user's profile Send private message
Josuke
Veteran
Veteran


Joined: 07 May 2003
Posts: 1175
Location: Italy - Bolzano

PostPosted: Wed Jun 15, 2005 12:55 pm    Post subject: Reply with quote

è credo lo stesso problema che sto affrontando su questo pc con scheda madre 775i65gv e una ati radeon 9200 a 128 mb

cat /proc/mtrr mi restituisce questo:
Code:

reg00: base=0x00000000 (   0MB), size=1024MB: write-back, count=1


e basta mentre in altri pc mi restituisce 3 stringhe come dovrebbe..sono perplesso
_________________
fletto i muscoli...e sono nel vuoto
Back to top
View user's profile Send private message
Josuke
Veteran
Veteran


Joined: 07 May 2003
Posts: 1175
Location: Italy - Bolzano

PostPosted: Wed Jun 15, 2005 12:57 pm    Post subject: Reply with quote

tra l'altro ne avevo parlato proprio qui

https://forums.gentoo.org/viewtopic-t-348978.html
_________________
fletto i muscoli...e sono nel vuoto
Back to top
View user's profile Send private message
AlterX
l33t
l33t


Joined: 03 Apr 2004
Posts: 754
Location: rm -rf /*

PostPosted: Wed Jun 15, 2005 5:41 pm    Post subject: Reply with quote

.:deadhead:. wrote:
raccontaci come hai fatto :-)


Nulla di più semplice!!!
Bisogna prendere l'indirizzo base corretto, che solo nel file log di xorg viene impostato:

cat /var/logXorg.0.log | grep -i Linear

e poi, la memoria a disposizione che potete usare per il video:

cat /var/logXorg.0.log | grep -i videoram

presi, l'indirizzo base e la memoria (da convertire in esadecimale),
eseguire:

echo "base=0xmemoria_mia size=0xdisponibile type=write-combining" >> /proc/mtrr

that's all right!!! :lol:
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