* Socket drop count
@ 2020-09-24 9:41 Wolfgang Grandegger
2020-09-24 9:53 ` Marc Kleine-Budde
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Grandegger @ 2020-09-24 9:41 UTC (permalink / raw
To: linux-can@vger.kernel.org
Hello,
candump can monitor the count of dropped RX messages if the socket
buffer if full with the option "-d". Is there also a command to list
that drop count of a certain socket, e.g. "ss"?
Wolfgang
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Socket drop count
2020-09-24 9:41 Socket drop count Wolfgang Grandegger
@ 2020-09-24 9:53 ` Marc Kleine-Budde
2020-09-24 10:19 ` Wolfgang Grandegger
0 siblings, 1 reply; 4+ messages in thread
From: Marc Kleine-Budde @ 2020-09-24 9:53 UTC (permalink / raw
To: Wolfgang Grandegger, linux-can@vger.kernel.org
[-- Attachment #1.1: Type: text/plain, Size: 884 bytes --]
On 9/24/20 11:41 AM, Wolfgang Grandegger wrote:
> Hello,
>
> candump can monitor the count of dropped RX messages if the socket
> buffer if full with the option "-d". Is there also a command to list
> that drop count of a certain socket, e.g. "ss"?
I haven't tested it, but what about "ss -m"
> -m, --memory
> Show socket memory usage. The output format is:
>
> skmem:(r<rmem_alloc>,rb<rcv_buf>,t<wmem_alloc>,tb<snd_buf>,
> f<fwd_alloc>,w<wmem_queued>,o<opt_mem>,
> bl<back_log>,d<sock_drop>)
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung West/Dortmund | Phone: +49-231-2826-924 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Socket drop count
2020-09-24 9:53 ` Marc Kleine-Budde
@ 2020-09-24 10:19 ` Wolfgang Grandegger
2020-09-24 10:52 ` Marc Kleine-Budde
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Grandegger @ 2020-09-24 10:19 UTC (permalink / raw
To: Marc Kleine-Budde, linux-can@vger.kernel.org
Am 24.09.20 um 11:53 schrieb Marc Kleine-Budde:
> On 9/24/20 11:41 AM, Wolfgang Grandegger wrote:
>> Hello,
>>
>> candump can monitor the count of dropped RX messages if the socket
>> buffer if full with the option "-d". Is there also a command to list
>> that drop count of a certain socket, e.g. "ss"?
>
> I haven't tested it, but what about "ss -m"
>
>> -m, --memory
>> Show socket memory usage. The output format is:
>>
>> skmem:(r<rmem_alloc>,rb<rcv_buf>,t<wmem_alloc>,tb<snd_buf>,
>> f<fwd_alloc>,w<wmem_queued>,o<opt_mem>,
>> bl<back_log>,d<sock_drop>)
Hm, the TCP sockets report such a line but I cannot find my CAN socket
in there opened by "candump":
# ss -p| grep candump
"ss" seams not (yet) to support "AF_CAN" sockets :(.
Wolfgang
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Socket drop count
2020-09-24 10:19 ` Wolfgang Grandegger
@ 2020-09-24 10:52 ` Marc Kleine-Budde
0 siblings, 0 replies; 4+ messages in thread
From: Marc Kleine-Budde @ 2020-09-24 10:52 UTC (permalink / raw
To: Wolfgang Grandegger, linux-can@vger.kernel.org
[-- Attachment #1.1: Type: text/plain, Size: 1257 bytes --]
On 9/24/20 12:19 PM, Wolfgang Grandegger wrote:
>
> Am 24.09.20 um 11:53 schrieb Marc Kleine-Budde:
>> On 9/24/20 11:41 AM, Wolfgang Grandegger wrote:
>>> Hello,
>>>
>>> candump can monitor the count of dropped RX messages if the socket
>>> buffer if full with the option "-d". Is there also a command to list
>>> that drop count of a certain socket, e.g. "ss"?
>>
>> I haven't tested it, but what about "ss -m"
>>
>>> -m, --memory
>>> Show socket memory usage. The output format is:
>>>
>>> skmem:(r<rmem_alloc>,rb<rcv_buf>,t<wmem_alloc>,tb<snd_buf>,
>>> f<fwd_alloc>,w<wmem_queued>,o<opt_mem>,
>>> bl<back_log>,d<sock_drop>)
>
> Hm, the TCP sockets report such a line but I cannot find my CAN socket
> in there opened by "candump":
>
> # ss -p| grep candump
>
> "ss" seams not (yet) to support "AF_CAN" sockets :(.
Looks like a patch opportunity :D
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung West/Dortmund | Phone: +49-231-2826-924 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-09-24 10:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-24 9:41 Socket drop count Wolfgang Grandegger
2020-09-24 9:53 ` Marc Kleine-Budde
2020-09-24 10:19 ` Wolfgang Grandegger
2020-09-24 10:52 ` Marc Kleine-Budde
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.