Re: Hashing and directories

From: Linus Torvalds (torvalds@transmeta.com)
Date: Wed Mar 07 2001 - 13:21:56 EST


In article <003701c0a722$f6b02700$5517fea9@local>,
Manfred Spraul <manfred@colorfullife.com> wrote:
>
>exec_mmap currenly avoids mm_alloc()/activate_mm()/mm_drop() for single
>threaded apps, and that would become impossible.
>I'm not sure how expensive these calls are.

They aren't that expensive: activate_mm() needs to flush the TLB, but we
do that anyway in the re-use case too, so on the whole the expense is
limited to having to do the extra allocation.

That expense might be at least partially offset by being able to do some
things more simply - right now the mm re-use case actually has to be
more careful than I really like for security and protection reasons, for
example. We've had bugs in this area before - simplifying it would be
nice. And it also gets rid of the special cases.

I don't think the patches to do this should be all that huge, but who
knows? It's not a trivial part of the kernel.

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



This archive was generated by hypermail 2b29 : Wed Mar 07 2001 - 21:00:23 EST