[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: journaling & VM



On Thu, Jun 08, 2000 at 10:29:50PM +0100, Stephen C. Tweedie wrote:

> On Thu, Jun 08, 2000 at 11:44:35AM +0200, Ralf Baechle wrote:

> > some device drivers may also collect relativly large amounts of memory.
> > In case of my HIPPI cards this may be in the range of megabytes.  So I'd
> > like to see a hook for freeing device memory.

> Device drivers really are a special case because they typically need
> their memory at short notice, and at awkward times (such as in the 
> middle of interrupts).  What sort of flexibility do you have regarding
> the allocation/release of the buffer pull in your driver?

I can release those buffers immediately.  The driver only holds them for
some while since it delays cleaning the tx ring, depending on the various
interrupt avoidance strategies we might use even indefinately.  Allocation
on rx is done at interrupt time but that's no big deal, if we fail to
allocate memory we just drop the packet and try again later.  Such
interrupt avoidance is actually a very common thing for alot of NICs.  The
(rare...) HIPPI case is worst because HIPPI has the largest MTU with 64kb.

  Ralf
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/