From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8c41b88748d69db9 X-Google-Attributes: gidfee84,public From: Christian Worley Subject: Re: Device driver question Date: 1996/08/26 Message-ID: <3221C992.FF6@altatech.com>#1/1 X-Deja-AN: 176563868 references: <321F7903.1C00@flash.net> to: rharter@flash.net content-type: text/plain; charset=us-ascii organization: Alta Technology mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 3.0b7 (X11; I; OSF1 V4.0 alpha) Ron Harter wrote: > > Hello > > I have been tasked with performing some performace enhancements on a > custom in-house developed device driver for VXLI interface. The main > bottleneck that has been observed is the time to lock down the users > memory pages during the i/o operations. The average tiome is approx > 125-150 microseconds. The read/write interface uses the physio call to > lock the memory down and branch to the appropriate strategy portion of > the driver to setup and initiate the DMA operations. Does anyone have > any suggestions as to how to reduce this amount of time? One method > being discussed is to force the user to lock down their pages using > mlock prior to doing any io operations and then just calling the stratgy > portions of the driver directly. > try vm_map_pageable(...) with VM_PROT_READ or VM_PROT_WRITE arguments to lock down the users buffer, VM_PROT_NONE to clear the lock. Chris