From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <40C8A583.7000504@gmail.com> Date: Thu, 10 Jun 2004 11:16:35 -0700 From: Matt Pidd-Cheshire User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: [9fans] freebsd v. plan9 - profile results (long) Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 9b5ef24c-eacd-11e9-9e20-41e7f4b1d025 I really hope someone can help here ... [please nice moderator person post this; my last two posts never appeared] ... WRT my last lot of complaining posts about speed problems under plan9 ... After discovering that I had somehow zapped the original code I had to do some fast rewriting. Lots of coffee and some tests later, produced the following information. Same conditions as before; same machine, *almost* identical code (see diffs below) - functionally no different as the profiles should confirm, obviously identical garbage in and out. The kfs on the plan9 machine is -rb1024 but I gave it lots of buffer and did a "cat mtent13.txt>/dev/null" to suck it into the cache before running. same with freebsd. watched closely no visible disc accessing during each run. gcc with *no* special options apart from -p, ditto for 8c. if anyone wants the source i can mail it in a bzip2'ed tarfile (6.5k) - and you can show me how slow my machine is. ;-) looking at the profile summaries tells me I know too little about plan9 or freebsd. all i know is that the bottom line is vastly different : plan9 - 93.152 seconds bsd - 3.750 seconds rob pike suggested that the cpu cache might be disabled under plan9, if so please to tell me how i can enable it; i'll gladly hack the kernel source (mine) if i can get a little guidance, and a bit of sleep. thanks :-) |mattjpc ---- "If he'd just pay me what he's spending to stop me robbing him, I'd stop robbing him!" -- (Paul Newman as) Butch Cassidy --------------------- dmesg output ------------------------ Copyright (c) 1992-2004 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 5.2-RELEASE #0: Sun Jan 11 04:21:45 GMT 2004 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC Preloaded elf kernel "/boot/kernel/kernel" at 0xc09e1000. MPTable: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Celeron(TM) CPU 1300MHz (1295.62-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6b1 Stepping = 1 Features=0x383fbff real memory = 536870912 (512 MB) avail memory = 511840256 (488 MB) ioapic0: Changing APIC ID to 8 ioapic0: Assuming intbase of 0 ioapic0 irqs 0-23 on motherboard Pentium Pro MTRR support enabled npx0: [FAST] npx0: on motherboard npx0: INT 16 interface pcibios: BIOS version 2.10 Using $PIR table, 7 entries at 0xc00e8be0 pcib0: at pcibus 0 on motherboard pci0: on pcib0 pcib0: slot 31 INTD routed to irq 19 pcib0: slot 31 INTC routed to irq 23 pcib1: at device 30.0 on pci0 pci2: on pcib1 pcib1: slot 11 INTA routed to irq 17 pcib1: slot 13 INTA routed to irq 18 pcib1: slot 15 INTA routed to irq 19 pci2: at device 11.0 (no driver attached) pci2: