All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vlad Yasevich <vyasevich@gmail.com>
To: linux-sctp@vger.kernel.org
Subject: Re: Question on SCTP parameters tunning
Date: Tue, 15 Dec 2015 03:49:16 +0000	[thread overview]
Message-ID: <566F8DBC.7080502@gmail.com> (raw)
In-Reply-To: <CAFXGftJ3kdbHc54QwH6m-KEemsDXLkKSRk5E+D+F2jKtBVr4wg@mail.gmail.com>

On 12/14/2015 08:19 PM, Sun Paul wrote:
> Hi All
> 
> the current memory settings on sctp is as below.
> 
> net.sctp.sctp_mem = 1531104 2041472 3062208
> net.sctp.sctp_rmem = 4096 349500 4194304
> net.sctp.sctp_wmem = 4096 16384 4194304
> 
> However, we observed that consumption of one particular SCTP
> connection is as below.
> 
> ffff8803d0609000 ffff8804358a6500 2   1   4  21855 968785  3882668
> 13184   28674 1132095678 3868  18710  171.109.115.116 171.109.115.122
> <-> *164.114.213.15 164.114.213.136   10000    10  2048    6    0    0
>      175
> 
> The Transmit Q reaches around 3.6MB, we would like to check what is
> the value we should enlarge. is there any limitation on setting the
> read/write memory for LKSCTP?

Why do you want to enlarge memory?  That just allows you to buffer
more data in the kernel, but doesn't really improve anything.
The fact that you have 3.6 MB of data buffered in the transmit q
means that you either your receive or your path is very slow and
buffering more data in the kernel would actually be a bad thing,

As for programatically limiting of buffer sizes, they are limited by net.core.wmem_max
and net.core.rmem_max. Bump those value and you can set larger buffer values
in your application.

-vlad

> 
> Thanks
> 
> - RBK
> 
> On Tue, Dec 15, 2015 at 9:14 AM, Sun Paul <paulrbk@gmail.com> wrote:
>> Hi All
>>
>> the current memory settings on sctp is as below.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


      parent reply	other threads:[~2015-12-15  3:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-15  1:14 Question on SCTP parameters tunning Sun Paul
2015-12-15  1:19 ` Sun Paul
2015-12-15  3:49 ` Vlad Yasevich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=566F8DBC.7080502@gmail.com \
    --to=vyasevich@gmail.com \
    --cc=linux-sctp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.