On Tue, Dec 17, 2019 at 12:01:09AM +0000, Laurent Bercot wrote:
> 
> > The socket receive buffer turned out to be too small for real world
> > systems. Use the same size as udevd to be on the safe side. As this is
> > just a limit and the memory is not allocated by the kernel until really
> > needed there is actually no memory wasted.
> 
> Is it also the case when overcommit is disabled?
> busybox is used in a lot of embedded systems, and some of them disable
> overcommit. Committing 128 MiB would make mdev completely unusable.

AFAICT it is not accounted to the process memory until the data is
actually queued on the socket.

> Laurent, who still believes leaving the choice to the user is the
> correct approach. https://skarnet.org/software/mdevd/mdevd.html

Hmm, I see that it might be desirable to limit the event queue depth on
resource constraint systems. But the trade-off is to loose the events
and always do a full scan if it happens... :/

/Jan
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to