Re: [PATCH] per-user signal pending and message queue limits

From: Jakub Jelinek
Date: Mon Apr 19 2004 - 17:52:13 EST


On Mon, Apr 19, 2004 at 06:28:10PM -0300, Marcelo Tosatti wrote:
> Andrew,
>
> Here goes the signal pending & POSIX mqueue's per-uid limit patch.
>
> Initialization has been moved to include/asm-i386/resource.h, as you suggested.
>
> The global mqueue limit has been increased to 256 (64 per user), and the global
> signal pending limit to 4096 (1024 per user).
>
> This has been well tested.
>
> If you are OK with it for inclusion (-mm) I'll generate the arch-dependant
> changes for the other architectures.
>
> Comments are welcome.

I wonder if it is a good idea to base mqueue limitation on the number of
message queues and not take into account how big they are.
64 message queues with 1 byte msgsize and 1 maxmsg is certainly quite
harmless and the system could have even more queues for such a user,
while 64 message queues with 16K msgsize (current default) and 40 maxmsg
(also default) eats ~ 40M of kernel memory.

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