版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、A Comparative Study of the Linux and Windows Device Driver Architectures with a focus on IEEE1394 (high speed serial bus) driversMelekam Tsegayeg98t4414campus.ru.ac.zaSupervisors Prof. Richard Foss, Bradley KlinkradtOverviewThe Linux and Windows driver architecturesThe Linux and Windows IEEE 1394 dr
2、iver stacksDriver development on the two platformsResults of the studyWhy the study was conducted ?Microsoft Windows and Linux Two of the most popular operating systemsNo previous comparisons of their driver architectures done by other researchersIEEE 1394 (firewire)Popular bus offering high data tr
3、ansfer ratesActive research area for the CS departments Audio Engineering GroupIEEE 1394Data Transfer rates of 100, 200 and 400 MbpsIsochronous mode of transferGuaranteed bandwidth (80%)Asynchronous mode of transferGuaranteed packet delivery (20% or more) Fully plug n playIEEE 1394 Consumer Products
4、Device DriversA driver is a piece of software that extends a kernels functionality Drivers enable applications (through the kernel)to transfer data to and from a deviceto control the a device to allow modification of its attributesComposed of a set of routines that a kernel calls at appropriate time
5、s e.g. read/writeTypical driver routinesA driver would implementInitialisationCleanupOpenReadWriteI/O Control (ioctl)CloseThe Windows driver architectureStandard model The Windows Driver Model (WDM)bus, functional & filter driversPnP & Power managementCommunication I/O request packets (IRPs)The Linu
6、x driver architectureNo standard driver model Drivers are modulesNo PnP & Power management message dispatchingCommunication through direct function callsSide by side comparison of the two driver architecturesLinuxWindowsIEEE 1394 driver stacksThe Windows IEEE 1394 stack closed sourcemaintained by Mi
7、crosoftstableThe Linux IEEE 1394 stack open sourcemaintained by the Linux 1394 community (private individuals)tagged experimentalThe Windows IEEE 1394 stackHost controllerBus driverClient driversCommunication I/O request block (IRB)The Linux IEEE 1394 stackHost controllerBus driversClient driversCom
8、municationdirect function callsDirect driver possibleSide by side comparison of the two IEEE 1394 stacksLinuxWindowsThe Windows IEEE 1394 implementationThe Linux IEEE 1394 implementationWhat operations should IEEE 1394 client drivers provide ?Asynchronous OperationsReadWriteLockListenRegister Asynch
9、ronous ListeningDeregister Asynchronous ListeningIsochronous operationsListenTalkAsynchronous streamingWhat operations should IEEE 1394 client drivers provide ? (Continued)Bus reset handlingRegister Bus Reset HandlerGenerate Soft Bus ResetObtain Bus Information (e.g. node count)Local configuration R
10、OM manipulationNetwork troubleshooting Pinging of nodes Device Driver Development EnvironmentsIssues to be considered when creating driversMemory managementThe kernel provides memory allocation/de-allocation routinesHas two pools of memory (swappable, non-swappable)Data structuresThe kernel provides
11、 implementations for queues, lists, stacksSynchronisation with spin locks, mutexes, semaphores, signal objectsIssues to be considered when creating drivers (Continued)Drivers routines must be re-entrant i.e. should be executable by multiple threads with no problemsavoid recursionHardware Abstraction
12、 Layeruse HAL routines provided by the kernel to access hardwareMap of software produced during this studyWindows raw1394 driverLinux raw1394-2 driverLinux Ieee1394diagDriver TestsTests were run to determinehighest data transfer rates that can be achieved by each of the IEEE 1394 drivershow close th
13、ese came to the theoretical maximum of 50MB/sBus analyser used to measure the duration of data transfers the amount of data transferredCalculated the data transfer rate in MB/sTest resultsIsochronous mode Windows raw13948.9 MB/s packet size 1024 bytesLinux raw13944.5 MB/s packet size 512 bytesIsochr
14、onous mode (buffered)Linux raw1394-28.9 MB/s packet size 1024 bytesWindows raw139417.7 MB/spacket size 2048 bytesTest results (continued)Drivers from both Linux and Windows do not transfer data at a rate close to the theoretical 50MB/sThey achieve almost half that due to the PCI bus bottleneck (theo
15、retical 132MB/s) In practice have that availableshared by all I/O devices attached to the PCI busThe PCI bus has latency problemsdriver implementation may not be efficientConclusionA comparison of the Windows and Linux driver architectures has shown thatDrivers for the two platform have similar comp
16、onents composed of routines for performingI/O and device control drivers are modules which are loadable at runtimeWindows has a formally defined driver model, Linux does not.PnP and power management support integrated in the Windows architecture, not so in LinuxConclusion (continued)A comparison of
17、the Windows and Linux IEEE 1394 stacks has shown thatTheir IEEE 1394 driver stacks are broken up into similar layers host controller, bus and client driver layersEach stack provides the standard IEEE 1394 operations (both asynchronous and isochronous)The Linux IEEE 1394 stack is open source while th
18、e Windows stack is proprietaryEasier to create IEEE 1394 drivers for Linux than Windows since all source code is availableFuture workIEEE 1394.1 bridge awarenessIEEE 1394.1 allows extending the no. of nodes to 64K instead of the current 63still in draft phaseThe Windows and Linux IEEE 1394 driver developers did not take into account IEEE1394.1 bridging in their designThi
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 環(huán)保檢測(cè)信息共享協(xié)議
- 房屋買賣定金合同意向金
- 會(huì)計(jì)稅務(wù)申報(bào)服務(wù)合同
- 招標(biāo)文件備案全教程
- 車輛服務(wù)合同的簽訂程序
- 職業(yè)裝制作合同樣式
- 政府采購(gòu)合同的培訓(xùn)課程
- 居家護(hù)工護(hù)理合同
- 企業(yè)年度采購(gòu)合同案例
- 磚瓦殘骸購(gòu)銷協(xié)議
- 識(shí)別自動(dòng)化思維重塑快樂(lè)自我
- 2023版思想道德與法治課件專題7第1講社會(huì)主義法律的特征和運(yùn)行PPT
- 毒品與艾滋病預(yù)防智慧樹(shù)知到答案章節(jié)測(cè)試2023年湖南警察學(xué)院
- GJB9001C質(zhì)量手冊(cè)+程序文件+記錄清單
- 2023-2024學(xué)年山東省臨沂市小學(xué)數(shù)學(xué)五年級(jí)上冊(cè)期末自測(cè)試卷
- 靜態(tài)爆破施工方法
- GB/T 35506-2017三氟乙酸乙酯(ETFA)
- GB 1208-2006電流互感器
- 幼兒教師如何做家訪專題培訓(xùn)課件
- 基于Matlab的光伏發(fā)電并網(wǎng)系統(tǒng)設(shè)計(jì)
- 長(zhǎng)城潤(rùn)滑油脂產(chǎn)品大全
評(píng)論
0/150
提交評(píng)論