Re: Caches in modules

From: Andreas Gruenbacher (a.gruenbacher@bestbits.at)
Date: Thu Feb 24 2000 - 12:33:18 EST


Tigran Aivazian wrote:
>
> Hi Rik,
>
> > I think registering a cache with do_try_to_free_pages()
> > is a good idea. It allows for a more flexible architecture
> > where drivers can register and unregister caches at their
> > whim and still have their caches shrunk on demand if there's
> > memory pressure.
>
> definitely. Not just drivers, but filesystems too. (but you probably meant
> that inclusive).

Can be used both in the kernel and in modules. For example, both the dentry and
inode cache should use this mechanism.

Andreas

------------------------------------------------------------------------
 Andreas Gruenbacher, a.gruenbacher@computer.org
 Contact information: http://www.bestbits.at/~agruenba

-
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/



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:11 EST