CPUTYPE="crusoe"

Manuel Chaviano <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Any clues on how to improve the speed or suggestion for optimizations on this laptop?
It is Fujitsu Lifebook P2110 and I think it runs slower than it should.

firefox3 takes around 40 seconds load the home page. 

I am afraid to install linux-flashpluginX, I do not think it will be able to handle it.

Even Dillo (/usr/ports/www/dillo2) and Midori (/usr/ports/www/midori) seem slow 
handling some sites.

By comparison, a Toshiba 3490ct (PIII 700Mhz, 256M RAM) fills a lot faster than the 
Fujitsu (860Mhz, 384M RAM). Both running same 7.1-PRERELEASE and WM/Session Manager: 
Windowmaker/WDM (lightweight).

I was thinking that perhaps optimizing /etc/make.conf and /sys/i386/conf/MYKE
could speed up this computer, but I have not been successful.

I thought setting CPYTYPE="crusoe"

...then I was not sure that CPUTYPE="crusoe" is valid.

According /etc/make.conf I cannot see that "crusoe" as one of the allowed types:
(There is nothing for the Transmeta family at all, which is weird!)
#
# The CPUTYPE variable controls which processor should be targeted for
# generated code.  This controls processor-specific optimizations in
# certain code (currently only OpenSSL) as well as modifying the value
# of CFLAGS to contain the appropriate optimization directive to gcc.
# The automatic setting of CFLAGS may be overridden using the
# NO_CPU_CFLAGS variable below.
# Currently the following CPU types are recognized:
#   Intel x86 architecture:
#       (AMD CPUs)      opteron athlon64 athlon-mp athlon-xp athlon-4
#                       athlon-tbird athlon k8 k6-3 k6-2 k6 k5
#       (Intel CPUs)    core2 core nocona pentium4m pentium4 prescott
#                       pentium3m pentium3 pentium-m pentium2
#                       pentiumpro pentium-mmx pentium i486 i386
#       (Via CPUs)      c3 c3-2
#   Alpha/AXP architecture: ev67 ev6 pca56 ev56 ev5 ev45 ev4
#   AMD64 architecture: opteron, athlon64, nocona, prescott, core2
#   Intel ia64 architecture: itanium2, itanium
#
# (?= allows to buildworld for a different CPUTYPE.)
#


However, digging in /usr/src/share/mk/bsd.cpu.mk I can see at some point:
.  if ${CPUTYPE} == "crusoe"
_CPUCFLAGS = -march=i686 -falign-functions=0 -falign-jumps=0 -falign-loops=0

Why i686?. dmesg says it is a 586-class CPU...?
Is this a bug?
 
... and a little later on:
if ${CPUTYPE} == "crusoe"
_ICC_CPUCFLAGS = -tpp6 -xiM




A section of the kernel source:

#cpu            I486_CPU
cpu             I586_CPU
#cpu            I686_CPU
ident           MYKE
...
options         CPU_ENABLE_LONGRUN


:uname -a
FreeBSD lifebook 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: 
Tue Dec  2 12:45:03 EST 2008 manny@lifebook:/usr/obj/usr/src/sys/MYKE  i386



:dmesg
Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.1-PRERELEASE #0: Tue Dec  2 12:45:03 EST 2008
    manny@lifebook:/usr/obj/usr/src/sys/MYKE
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Transmeta(tm) Crusoe(tm) Processor TM5800 (859.34-MHz 586-class CPU)
  Origin = "GenuineTMx86"  Id = 0x543  Stepping = 3
  Features=0x80893f<FPU,VME,DE,PSE,TSC,MSR,CX8,SEP,CMOV,MMX>
real memory  = 385744896 (367 MB)
avail memory = 367198208 (350 MB)
Crusoe LongRun support enabled, current mode: 2 <867MHz 1300mV 100%>
kbd1 at kbdmux0
acpi0: <FUJ PAULING2> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xff08-0xff0b on acpi0
acpi_ec0: <Embedded Controller: GPE 0> port 0x62,0x66 on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <memory, RAM> at device 0.1 (no driver attached)
ohci0: <AcerLabs M5237 (Aladdin-V) USB controller> mem 0xfc004000-0xfc004fff irq 3 at device 2.0 on pci0
ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
usb0: OHCI version 1.0, legacy support
usb0: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: <AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 2 ports with 2 removable, self powered
pcm0: <Acer Labs M5451> port 0x1000-0x10ff mem 0xfc005000-0xfc005fff irq 7 at device 4.0 on pci0
pcm0: <SigmaTel STAC9756/57 AC97 Codec>
pcm0: [GIANT-LOCKED]
pcm0: [ITHREAD]
pci0: <bridge> at device 6.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
pci0: <bridge, PCI-CardBus> at device 12.0 (no driver attached)
atapci0: <AcerLabs M5229 UDMA66 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1800-0x180f at device 15.0 on pci0
atapci0: using PIO transfers above 137GB as workaround for 48bit DMA access bug, expect reduced performance
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
iwi0: <Intel(R) PRO/Wireless 2915ABG> mem 0xfc006000-0xfc006fff irq 9 at device 18.0 on pci0
iwi0: Ethernet address: 00:16:6f:98:55:5f
iwi0: [ITHREAD]
pci0: <serial bus, FireWire> at device 19.0 (no driver attached)
vgapci0: <VGA-compatible display> port 0x1400-0x14ff mem 0xfd000000-0xfdffffff,0xfc007000-0xfc007fff irq 5 at device 20.0 on pci0
acpi_button0: <Power Button> on acpi0
acpi_acad0: <AC Adapter> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
battery1: <ACPI Control Method Battery> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model Generic PS/2 mouse, device ID 0
acpi_fujitsu0: <Fujitsu Function Hotkeys FUJ02B1> on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcffff pnpid ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 859336368 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 114473MB <WDC WD1200BEVE-00WZT0 01.01A01> at ata0-master UDMA66
acd0: CDRW <TOSHIBA DVD-ROM SD-R2212/1F15> at ata1-master UDMA33
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x40 0x00 0x01
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x40 0x00 0x01
cd0 at ata1 bus 0 target 0 lun 0
cd0: <TOSHIBA DVD-ROM SD-R2212 1F15> Removable CD-ROM SCSI-0 device 
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
Trying to mount root from ufs:/dev/ad0s1a

- -- 
L8R

He is great who confers the most benefits.
- -- Ralph Waldo Emerson
       __
      ///      Manuel Chaviano
 __  ///       MMBB
 \\\///
  \XX/         FreeBSD 7-STABLE
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkllLXoACgkQ9iHuTVjSDySnBwCdFh7ZLJ0ms7BfwQo6Yb+6M4hv
6yIAni/oi3TyFDpFPG9ACJVc1HGUo/ak
=nw1N
-----END PGP SIGNATURE-----

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.