Re: Problem allocating DMA memory

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Tue, 7 Sep 1999 17:09:07 +0200


Alan Cox wrote:
> Its simple, elegant but does need optimising. If you have little ram left
> but DMA ram your page allocation rate is noticably slower. On a 20Mb box
> thats not ideal.

An obvious solution is: put DMA pages at one of the list and non-DMA at
the other end. RMQUEUE_DMA searches forward, RMQUEUE searches backward.
Each type stays contiguous. Optimal, better than Ben's counting
strategy, d'ya see?

Sorry, can't promise to have time to do the patch...

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/