Re: Caches in modules

From: Tigran Aivazian (tigran@sco.COM)
Date: Thu Feb 24 2000 - 07:42:56 EST


Hi,

You said:

> I'm trying to implement a cache in a module.

presumably you have investigated using general-purpose cache manager, i.e.
slab allocator and found it to be inadequate for your specific needs? It
is possible to think of a situation when slab is not perfect, e.g. imagine
a filesystem that allocate a million inode objects and then freed 500000
of them back to the slab. The next time the slab shrinks its caches, if
the objects happened to lie in different pages, it will keep the kernel
virtual address ranges used up, thus preventing from allocating large
(multi-page) objects... But those cases are very very special...

Regards,
------
Tigran A. Aivazian | http://www.sco.com
Escalations Research Group | tel: +44-(0)1923-813796
Santa Cruz Operation Ltd | http://www.ocston.org/~tigran

-
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:09 EST