Re: 2.4.8 Resource leaks + limits

Linus Torvalds (torvalds@transmeta.com)
Tue, 14 Aug 2001 22:32:16 -0700


In article <3ce801c12548$b7971750$020a0a0a@totalmef> you write:
>
>Question: why isn't there a limit for global memory usage per user?

Answer: because traditionally Linux (or UNIX) hasn't had a good and
efficient way to have per-user statistics.

This is why you mainly find per-process stuff in all the limits.

Linux has had (for a while now) a "struct user" that is actually quickly
accessible through a direct pointer off every process that is associated
with that user, and we could (and _will_) start adding these kinds of
limits. However, part of the problem is that because the limits haven't
historically existed, there is also no accepted and nice way of setting
the limits.

Oh, well.

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/