On Fri, Feb 25, 2005 at 05:19:15PM +0530, Sunil Khandelwal wrote: > We have hardware accelerator for Video CODEC. The driver for this > accelerator allows mapping of device memory(4MB). > > Our observation on other OS is that if 1MB page size is used in place of 4 > Kb page size(only for this device memory), we get better performance since > there are less of tlb flushes. > > Is it possible for driver in Linux to allows mmap with page size of 1 MB > for device memories so that we can get equivalent performance in Linux. I haven't tried it, but maybe HugeTLB can help you. See Documentation/vm/hugetlbpage.txt . Erik -- Erik Mouw J.A.K.Mouw@xxxxxxxxxxxxxx mouw@xxxxxxxxxxxx
Attachment:
signature.asc
Description: Digital signature