[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130416.164019.1074985550251974378.davem@davemloft.net>
Date: Tue, 16 Apr 2013 16:40:19 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: dilip.daya@...com
Cc: netdev@...r.kernel.org, linux-sctp@...r.kernel.org,
nhorman@...driver.com, dborkman@...hat.com
Subject: Re: [PATCH v4] sctp: Add buffer utilization fields to
/proc/net/sctp/assocs
From: Dilip Daya <dilip.daya@...com>
Date: Tue, 16 Apr 2013 07:39:07 -0400
> From: Dilip Daya <dilip.daya@...com>
>
> sctp: Add buffer utilization fields to /proc/net/sctp/assocs
>
> This patch adds the following fields to /proc/net/sctp/assocs output:
>
> - sk->sk_wmem_alloc as "wmema" (transmit queue bytes committed)
> - sk->sk_wmem_queued as "wmemq" (persistent queue size)
> - sk->sk_sndbuf as "sndbuf" (size of send buffer in bytes)
> - sk->sk_rcvbuf as "rcvbuf" (size of receive buffer in bytes)
>
> When small DATA chunks containing 136 bytes data are sent the TX_QUEUE
> (assoc->sndbuf_used) reaches a maximum of 40.9% of sk_sndbuf value when
> peer.rwnd = 0. This was diagnosed from sk_wmem_alloc value reaching maximum
> value of sk_sndbuf.
>
> TX_QUEUE (assoc->sndbuf_used), sk_wmem_alloc and sk_wmem_queued values are
> incremented in sctp_set_owner_w() for outgoing data chunks. Having access to
> the above values in /proc/net/sctp/assocs will provide a better understanding
> of SCTP buffer management.
...
> Signed-off-by: Dilip Daya <dilip.daya@...com>
> Acked-by: Neil Horman <nhorman@...driver.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists