presny CPUTYPE pro Compaq Armada 110
Jan Stary
hans at stare.cz
Sun Jul 6 19:56:47 CEST 2008
On Jul 06 13:54:55, Jan Stary wrote:
> Zdravim,
>
> instaluju 7.0R na Compaq Armada 110 (dmesg viz dole).
> Hodlam prekompiloavt jadro i world a instalovat vsechno
> z portu, protoze pri spravne optimalizaci to dle mych zkusenosti
> bezi _vyrazne_ rychleji (obzvlaste na takove sunce).
>
> Procesor to ma
>
> CPU: Intel Celeron (846.87-MHz 686-class CPU)
> Origin = "GenuineIntel" Id = 0x686 Stepping = 6
> Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
>
> a ja bych z nej na jednu stranu rad vyzdimal co nejvic,
> na druhou stranu bych spatnym CPUTYPE nerad zpusobil problemy.
>
> Jenze: ktery CPUTYPE to je? Celeronu je vic
> a v ukazkovem /usr/share/examples/etc/make.conf
> se primo "celeron" nezminuje.
On Jul 06 14:36:31, Dan Lukes wrote:
> Jan Stary wrote:
> > CPU: Intel Celeron (846.87-MHz 686-class CPU)
> > Origin = "GenuineIntel" Id = 0x686 Stepping = 6
> > Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
>
> > Jenze: ktery CPUTYPE to je? Celeronu je vic
>
> Odpoved je castecne obsazena v otazce - je to 686-class CPU. Takze v
> konfiguraku kernelu je treba pouzit I686_CPU
V konfiguraku kernelu ano, a muj KERNCONF samozrejme rika "cpu I686_CPU"
- ale o to tu nejde. Jde o nastaveni CPUTYPE v make.conf
> CPUTYPE je jenom zkratka pro ruzn ekombinace mtune/march optionu.
> Vzajemnou vazbu lze nejlepe vycist v
> /usr/share/mk/bsd.cpu.mk
Dik.
> Takze az budes vedet jake nejlepe march a mtune pouzit (viz otazka a
> odpoved nize) uz si k nim jen najdes jaky CPUTYPE jim odpovida. Bude-li
> takovy existovat.
To je presne muj problem: az budu vedet, ktere pouzit.
To prave nevim, protoze nevim, ktery presne Celeron mam.
On Jul 06 16:13:03, Richard Willmann wrote:
> > instaluju 7.0R na Compaq Armada 110 (dmesg viz dole).
> > Hodlam prekompiloavt jadro i world a instalovat vsechno
> > z portu, protoze pri spravne optimalizaci to dle mych zkusenosti
> > bezi _vyrazne_ rychleji (obzvlaste na takove sunce).
>
> ehm, ja som v sample make.conf resp. make.conf(5) prave cital, ze CPUTYPE
> ovplyvni len optimalizaciu openssl ...
... as well as modifying the value of CFLAGS and COPTFLAGS
to contain the appropriate optimization directive to gcc(1).
Neboli, jak rika Dan, je to zkratka, jak rict "mam tenhle procesor",
pomoci ktere bsd.cpu.mk preda gcc spravne -march/-mtune, a to prave
nastavenim CFLAGC a COPTFLAGS. Pricemz
CFLAGS Controls the compiler setting when compiling C code.
COPTFLAGS Controls the compiler settings when building the kernel.
- na obojim mi zalezi.
Jedna moznost je sam specifikovat CFLAGS a COPTFLAGS, ale radeji
bych to nechal na systemu, at si je sam vymysli, a rekl mu jenom
spravne CPUTYPE; pritom:
Refer to /usr/share/examples/etc/make.conf
for a list of recognized CPUTYPE options.
takze receno polopaticky, ktery z nasledujicich
je muj Celeron, a jak to zjistim?
(Intel CPUs) core2 core nocona pentium4m pentium4 prescott
pentium3m pentium3 pentium-m pentium2
pentiumpro pentium-mmx pentium i486 i386
Zatim me napada resit to tak, ze CPU neuvedu, a primo nastavim
CFLAGS/COPTFLAGS tak, aby obsahovaly (mimo jine) -march=native, protoze
This selects the CPU to tune for at compilation time by determining
the processor type of the compiling machine. Using -mtune=native
will produce code optimized for the local machine under the constraints
of the selected instruction set. Using -march=native will enable all
subsets supported by the local machine (hence the result might not
run on different machines).
- pak budu mit kod ptiomalizovany pro svuj processor type, at je
jakykoli; ale pri kazdem volani CC se to bude determinovat znovu,
takze moje kompilace budou zbytecne pomale oproti tomu, kdybych
proste jednou provzdy rekl spravny CPUTYPE.
(Ze to nepobezi na jinych strojich je uplne jedno.)
H.
More information about the Users-l
mailing list