[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <eb65772f-8bb3-944b-d213-263008028bb3@akamai.com>
Date: Fri, 17 Mar 2017 23:01:19 -0500
From: Josh Hunt <johunt@...mai.com>
To: Eric Dumazet <eric.dumazet@...il.com>,
Chris Kuiper <ckuiper@...gle.com>
Cc: netdev@...r.kernel.org, pgynther@...gle.com
Subject: Re: [PATCH] net: udp: add socket option to report RX queue level
On 03/17/2017 05:01 PM, Eric Dumazet wrote:
> On Fri, 2017-03-17 at 14:13 -0700, Chris Kuiper wrote:
>> This adds a new socket option "SO_RXQ_ALLOC" that enables providing
>> the RX queue buffer allocation as ancillary data from the recvmsg()
>> system call. The value reported is a byte number and together with
>> the RX queue size (obtained via getsockopt(SO_RCVBUF) can be used to
>> calculate a percentage value on how full the socket buffer is.
>> ---
>
> Seems a lot of overhead, and only UDP would be supported.
>
> I very much prefer Josh Hunt proposal
> ( https://patchwork.ozlabs.org/patch/738250/ )
>
> Ie using a separate getsockopt() call instead of adding code to UDP fast
> path ?
>
Yes, let me know and I can send a patch adding a sockopt to return all
of the meminfo vars.
Powered by blists - more mailing lists