From: patchwork-bot+netdevbpf@kernel.org
To: Wei Wang <weiwan@google.com>
Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org,
edumazet@google.com, shakeelb@google.com
Subject: Re: [PATCH v3 net-next 0/3] net: add new socket option SO_RESERVE_MEM
Date: Thu, 30 Sep 2021 12:50:08 +0000 [thread overview]
Message-ID: <163300620809.1111.4905714212204854007.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20210929172513.3930074-1-weiwan@google.com>
Hello:
This series was applied to netdev/net-next.git (refs/heads/master):
On Wed, 29 Sep 2021 10:25:10 -0700 you wrote:
> This patch series introduces a new socket option SO_RESERVE_MEM.
> This socket option provides a mechanism for users to reserve a certain
> amount of memory for the socket to use. When this option is set, kernel
> charges the user specified amount of memory to memcg, as well as
> sk_forward_alloc. This amount of memory is not reclaimable and is
> available in sk_forward_alloc for this socket.
> With this socket option set, the networking stack spends less cycles
> doing forward alloc and reclaim, which should lead to better system
> performance, with the cost of an amount of pre-allocated and
> unreclaimable memory, even under memory pressure.
> With a tcp_stream test with 10 flows running on a simulated 100ms RTT
> link, I can see the cycles spent in __sk_mem_raise_allocated() dropping
> by ~0.02%. Not a whole lot, since we already have logic in
> sk_mem_uncharge() to only reclaim 1MB when sk_forward_alloc has more
> than 2MB free space. But on a system suffering memory pressure
> constently, the savings should be more.
>
> [...]
Here is the summary with links:
- [v3,net-next,1/3] net: add new socket option SO_RESERVE_MEM
https://git.kernel.org/netdev/net-next/c/2bb2f5fb21b0
- [v3,net-next,2/3] tcp: adjust sndbuf according to sk_reserved_mem
https://git.kernel.org/netdev/net-next/c/ca057051cf25
- [v3,net-next,3/3] tcp: adjust rcv_ssthresh according to sk_reserved_mem
https://git.kernel.org/netdev/net-next/c/053f368412c9
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2021-09-30 12:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-29 17:25 [PATCH v3 net-next 0/3] net: add new socket option SO_RESERVE_MEM Wei Wang
2021-09-29 17:25 ` [PATCH v3 net-next 1/3] " Wei Wang
2021-09-29 17:25 ` [PATCH v3 net-next 2/3] tcp: adjust sndbuf according to sk_reserved_mem Wei Wang
2021-09-29 17:25 ` [PATCH v3 net-next 3/3] tcp: adjust rcv_ssthresh " Wei Wang
2021-09-30 12:50 ` patchwork-bot+netdevbpf [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=163300620809.1111.4905714212204854007.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=shakeelb@google.com \
--cc=weiwan@google.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).