Hello, I was interested in testing the Oberon disk access performance. I used a Pentium 4 1,8Ghz PC with 512Mb of RAM, and a 36 Mb File.Test. Allocated 40Mb cache in Aos. Challengers: Bluebottle ver. 04.06.2003 Native Oberon ver. 05.01.2003 Win Plugin ver. 14.05.2001 on Windows 2000 WinAos ver. 30.06.2003 on Windows 2000 Linux x86 ver 08.01.2003 on Mandrake 9.1 READ / WRITE test: t := Input.Time(); fi := Files.Old( "File.Test" ); Files.Set( ri, fi, 0 ); fo := Files.New( "File.Bak" ); Files.Set( ro, fo, 0 ); REPEAT Files.ReadBytes( ri, buf, 1024 ); Files.WriteBytes( ro, buf, 1024 ); UNTIL ri.eof; Out.String( "Time: " ); Out.Int( Input.Time() - t , 9); Out.Ln; and the equivalent in Activ Oberon. Results: First run Second run Aos 53309 17584 Native 27950 13112 Win Plugin 4672 4782 WinAos 4703 4578 Linux x86 1718 1764 RANDOM READ test: len := fi.Length(); t := Input.Time(); pos := 0; FOR i:=1 TO 100000 DO pos := (pos + i * 5) MOD len; IF pos >= len - 1024 THEN pos := len - 1024 END; fi.Set( ri, pos ); fi.ReadBytes( ri, buf, 0, 1024 ); END; AosOut.String( "Rand time: " ); AosOut.Int( Input.Time() - t , 9); and the equivalent in Oberon. The results: First run Second run Aos 42757 896 Native 22681 585 Win Plugin 16156 828 WinAos 16625 938 Linux x86 2095 777 SEQUENTIAL READ test: First run Second run Aos 32170 100 Native 13672 70 Win Plugin 1281 78 WinAos 1250 94 Linux x86 1354 77 Conclusions: AosFS it's great on cache. Congratulations. But writing and the first time reading it's a pain. Am I missing something ? Is it anything else to adjust for better performance ? Thank you, Dan Parnete
AosFS it's great on cache. Congratulations. But writing and the first time reading it's a pain. Am I missing something ? Is it anything else to adjust for better performance ? It depends a great lot on the harddisk controller. Check the Kernel-Log for "PIO" in the init message of the driver. If you see PIO, the driver is running in some compatibility mode, that can be about 10x slower than a fully supported controller.
--Thomas
Thomas Frey wrote:
AosFS it's great on cache. Congratulations. But writing and the first time reading it's a pain. Am I missing something ? Is it anything else to adjust for better performance ?
It depends a great lot on the harddisk controller. Check the Kernel-Log for "PIO" in the init message of the driver. If you see PIO, the driver is running in some compatibility mode, that can be about 10x slower than a fully supported controller.
--Thomas
-- Oberon@inf.ethz.ch mailing list for ETH Oberon and related systems http://www.lists.inf.ethz.ch/mailman/listinfo/oberon
Thank you the for the sugestion. Here is my KernelLog: Aos 04.06.2003 Intel MP Spec 1.4 Processor 0, APIC 11, ver 15.2.4, features 0000FBFF, ID 0 IDE0..1: 14 000001F0 000003F6 reset ok IDE2..3: 15 00000170 00000376 reset ok ATA: Status ctrl=00000170 drv=1 lba=260013951 err=7F stat=7F s=7F m=88 e=00 b=00 ms=500 IDE3: no reset IDE0: 39266MB, 16383*16*63, (79780*16*63), LBA, IC35L040AVVN07-0, ver 5.21 IDE3: packet cd-rom device, removable, OEM CD-ROM F563E Bus-master chipset not detected AosDiskVolumes: IDE0#2 AosDiskFS: Index not found on IDE0#2 AosDiskFS: Scanning IDE0#2... marking.............. 1887 files AosDiskFS: 396160K of 513564K available on IDE0#2 {P0 AosDisplayLinear: GlobalSetCacheProperties = 2304} Default font installedManager.New finished Disp.format = 2 {P0 Bottom up...New background-->Mouse Cursor-->NIL } {P0 ETH Oberon / Aos 04.06.2003} There is no PIO, and I don't realise if anything else is wrong. What meens: Index not found on IDE0#2 ? Dan
Dan Parnete wrote:
Aos 04.06.2003 Intel MP Spec 1.4 Processor 0, APIC 11, ver 15.2.4, features 0000FBFF, ID 0 IDE0..1: 14 000001F0 000003F6 reset ok IDE2..3: 15 00000170 00000376 reset ok ATA: Status ctrl=00000170 drv=1 lba=260013951 err=7F stat=7F s=7F m=88 e=00 b=00 ms=500 IDE3: no reset IDE0: 39266MB, 16383*16*63, (79780*16*63), LBA, IC35L040AVVN07-0, ver 5.21 IDE3: packet cd-rom device, removable, OEM CD-ROM F563E Bus-master chipset not detected
The last message means the driver won't be able to work at optimal speed, using DMA. Fixing this could be relatively simple, if you provide the output of PCITools.Scan.
AosDiskVolumes: IDE0#2 AosDiskFS: Index not found on IDE0#2
This is normal. When shutting down cleanly (e.g. using Ctrl-Alt-Del), the current map of in-use disk blocks is written to disk. At the next startup it will be read again, and disk garbage collection can be skipped, to speed up booting. This message means the on-disk index was not up-to-date, so a GC has to be done.
AosDiskFS: Scanning IDE0#2... marking.............. 1887 files
This is the GC being done...
AosDiskFS: 396160K of 513564K available on IDE0#2 {P0 AosDisplayLinear: GlobalSetCacheProperties = 2304} Default font installedManager.New finished Disp.format = 2 {P0 Bottom up...New background-->Mouse Cursor-->NIL } {P0 ETH Oberon / Aos 04.06.2003}
There is no PIO, and I don't realise if anything else is wrong. What meens: Index not found on IDE0#2 ?
-- Pieter
Pieter Muller wrote:
Dan Parnete wrote:
Bus-master chipset not detected
The last message means the driver won't be able to work at optimal speed, using DMA. Fixing this could be relatively simple, if you provide the output of PCITools.Scan.
-- Pieter
Thanks Pieter. Here is my PCIScan.Text: Bus 0, device 0, function 0: class/rev 06000011, vendor/device 80861A30, status/cmd 20900006 Class: Bridge, Sub-class: Host bridge Vendor: Intel Corp., Device: 82845 845 (Brookdale) Chipset Host Bridge 64MB prefetchable 32-bit memory at E0000000 - E3FFFFFF Bus 0, device 1, function 0: class/rev 06040011, vendor/device 80861A31, status/cmd 00A00107 Class: Bridge, Sub-class: PCI bridge, ProgIntfc: Normal decode Vendor: Intel Corp., Device: 82845 845 (Brookdale) Chipset AGP Bridge Bus 1, device 0, function 0: class/rev 03000015, vendor/device 10DE002D, status/cmd 02B00007 Class: Display controller, Sub-class: VGA compatible controller, ProgIntfc: VGA Vendor: nVidia Corporation, Device: Vanta [NV6] IRQ9, INTA 16MB 32-bit memory at E6000000 - E6FFFFFF 32MB prefetchable 32-bit memory at E4000000 - E5FFFFFF Bus 0, device 29, function 0: class/rev 0C030001, vendor/device 808624C2, status/cmd 02800005 Class: Serial bus controller, Sub-class: USB Controller, ProgIntfc: UHCI Vendor: Intel Corp., Device: Unknown IRQ9, INTA 32B I/O at 0000D800 - 0000D81F Bus 0, device 29, function 1: class/rev 0C030001, vendor/device 808624C4, status/cmd 02800005 Class: Serial bus controller, Sub-class: USB Controller, ProgIntfc: UHCI Vendor: Intel Corp., Device: Unknown IRQ9, INTB 32B I/O at 0000D000 - 0000D01F Bus 0, device 29, function 2: class/rev 0C030001, vendor/device 808624C7, status/cmd 02800005 Class: Serial bus controller, Sub-class: USB Controller, ProgIntfc: UHCI Vendor: Intel Corp., Device: Unknown IRQ11, INTC 32B I/O at 0000D400 - 0000D41F Bus 0, device 30, function 0: class/rev 06040081, vendor/device 8086244E, status/cmd 80800107 Class: Bridge, Sub-class: PCI bridge, ProgIntfc: Normal decode Vendor: Intel Corp., Device: 82801BA/CA PCI Bridge Bus 2, device 6, function 0: class/rev 02000010, vendor/device 10EC8139, status/cmd 02900007 Class: Network controller, Sub-class: Ethernet controller Vendor: Realtek Semiconductor Co., Ltd., Device: RTL-8139 IRQ11, INTA 256B I/O at 0000C000 - 0000C0FF 256B 32-bit memory at E8000000 - E80000FF Bus 2, device 10, function 0: class/rev 02000010, vendor/device 10EC8139, status/cmd 02800007 Class: Network controller, Sub-class: Ethernet controller Vendor: Realtek Semiconductor Co., Ltd., Device: RTL-8139 IRQ5, INTA 256B I/O at 0000C400 - 0000C4FF 256B 32-bit memory at E8001000 - E80010FF Bus 0, device 31, function 0: class/rev 06010001, vendor/device 808624C0, status/cmd 0280000F Class: Bridge, Sub-class: ISA bridge Vendor: Intel Corp., Device: Unknown Bus 0, device 31, function 1: class/rev 01018A01, vendor/device 808624CB, status/cmd 02800007 Class: Mass storage controller, Sub-class: IDE interface Vendor: Intel Corp., Device: Unknown IRQ0, INTA 8B I/O at 00000000 - 00000007 4B I/O at 00000000 - 00000003 8B I/O at 00000000 - 00000007 4B I/O at 00000000 - 00000003 16B I/O at 0000F000 - 0000F00F 11 devices found Dan
Dan Parnete wrote:
Bus 0, device 31, function 1: class/rev 01018A01, vendor/device 808624CB, status/cmd 02800007 Class: Mass storage controller, Sub-class: IDE interface Vendor: Intel Corp., Device: Unknown IRQ0, INTA 8B I/O at 00000000 - 00000007 4B I/O at 00000000 - 00000003 8B I/O at 00000000 - 00000007 4B I/O at 00000000 - 00000003 16B I/O at 0000F000 - 0000F00F
This is the IDE controller. Vendor 8086H is Intel, and 24CBH is the device type. You could try add code to AosATADisks.Mod to recognize this controller. Intel controllers are usually backward compatible. Of course you would be changing a driver, so you can never exclude the possibility of data loss completely. Make sure your valuable data is backed up and you have time available to restore the system if required. 1. To add the device, add a "FindDevice(24CBH, 8086H)" in the InitBusMaster procedure. It should be clear from the context where it should go. 2. Compile the module and link a new kernel using the first "AosLinker.Link AOS:AosIDE.Bin" command in Aos.Tool. 3. Use the "Partitions.UpdateBootFile Diskette0#0 Aos ~" command to write the kernel to a boot floppy for testing. See Partitions.Tool. 4. Copy your boot settings to the floppy using Partitions.GetConfig and Partitions.SetConfig. 5. Boot from the floppy to test the driver. Since you copied your BootVol setting, it will only load the kernel from the floppy and then boot further from the normal boot device (hard disk or CD). 6. Check the kernel log for the bus master message. I haven't tried this in a while, so I hope nothing important was left out... Good luck! -- Pieter
Pieter Muller wrote:
Dan Parnete wrote:
Bus 0, device 31, function 1: class/rev 01018A01, vendor/device 808624CB, status/cmd 02800007 Class: Mass storage controller, Sub-class: IDE interface Vendor: Intel Corp., Device: Unknown IRQ0, INTA 8B I/O at 00000000 - 00000007 4B I/O at 00000000 - 00000003 8B I/O at 00000000 - 00000007 4B I/O at 00000000 - 00000003 16B I/O at 0000F000 - 0000F00F
This is the IDE controller. Vendor 8086H is Intel, and 24CBH is the device type.
You could try add code to AosATADisks.Mod to recognize this controller. Intel controllers are usually backward compatible. Of course you would be changing a driver, so you can never exclude the possibility of data loss completely. Make sure your valuable data is backed up and you have time available to restore the system if required.
1. To add the device, add a "FindDevice(24CBH, 8086H)" in the InitBusMaster procedure. It should be clear from the context where it should go.
2. Compile the module and link a new kernel using the first "AosLinker.Link AOS:AosIDE.Bin" command in Aos.Tool.
3. Use the "Partitions.UpdateBootFile Diskette0#0 Aos ~" command to write the kernel to a boot floppy for testing. See Partitions.Tool.
4. Copy your boot settings to the floppy using Partitions.GetConfig and Partitions.SetConfig.
5. Boot from the floppy to test the driver. Since you copied your BootVol setting, it will only load the kernel from the floppy and then boot further from the normal boot device (hard disk or CD).
6. Check the kernel log for the bus master message.
I haven't tried this in a while, so I hope nothing important was left out...
Good luck! -- Pieter
-- Oberon@inf.ethz.ch mailing list for ETH Oberon and related systems http://www.lists.inf.ethz.ch/mailman/listinfo/oberon
Wowww, it rocks. Yes it is. From 42757 now performs 14304 in random, and from 32170 to 1134 in sequential. This is another story. Thank you Pieter, from now one you are my Maestro. Dan
participants (3)
-
Dan Parnete -
Pieter Muller -
Thomas Frey