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

From: Manfred Spraul
Date: Tue Apr 20 2004 - 13:08:03 EST


Marcelo Tosatti wrote:

Indeed, it seems more correct to account for something else than "nr of message queues".

Memory occupied sounds better, yeap?


I agree, but note that there is one hidden problem:
There can be one notification for each registered message queue. If there are more than ~560 queues and one process wants to install SIGEV_THREAD notification handlers for all of them, then the netfilter code will run against the socket rmem limit and mq_notify will block.
_If_ there are users that do that we'll have to bypass the normal sk_rmem_alloc and add an mqueue specific limit.

--
Manfred


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