Re: [PATCH net-next 0/2] sctp: fully support memory accounting

2019-04-04 Thread Xin Long
On Fri, Apr 5, 2019 at 1:38 AM David Miller wrote: > > From: Xin Long > Date: Thu, 4 Apr 2019 17:45:07 +0800 > > > We're thinking about adding some sctp tests into selftests, > > but these ones are not good to be the first one, I think. > > sysctl_sockets_memctl.sh is a multi-host test, even netn

Re: [PATCH net-next 0/2] sctp: fully support memory accounting

2019-04-04 Thread David Miller
From: Xin Long Date: Thu, 4 Apr 2019 17:45:07 +0800 > We're thinking about adding some sctp tests into selftests, > but these ones are not good to be the first one, I think. > sysctl_sockets_memctl.sh is a multi-host test, even netns can't work for it. You can't set per-netns memory controls app

Re: [PATCH net-next 0/2] sctp: fully support memory accounting

2019-04-04 Thread Xin Long
On Mon, Apr 1, 2019 at 2:02 AM David Miller wrote: > > From: Xin Long > Date: Sun, 31 Mar 2019 16:56:40 +0800 > > > Simple tests are as attached. > > Are these integratable into selftests somehow? We're thinking about adding some sctp tests into selftests, but these ones are not good to be the fi

Re: [PATCH net-next 0/2] sctp: fully support memory accounting

2019-04-02 Thread Neil Horman
On Tue, Apr 02, 2019 at 12:36:10AM -0300, Marcelo Ricardo Leitner wrote: > On Mon, Apr 01, 2019 at 07:31:10AM -0400, Neil Horman wrote: > > On Sun, Mar 31, 2019 at 04:53:45PM +0800, Xin Long wrote: > > > sctp memory accounting is added in this patchset by using > > > these kernel APIs on send side:

Re: [PATCH net-next 0/2] sctp: fully support memory accounting

2019-04-01 Thread Marcelo Ricardo Leitner
On Mon, Apr 01, 2019 at 07:31:10AM -0400, Neil Horman wrote: > On Sun, Mar 31, 2019 at 04:53:45PM +0800, Xin Long wrote: > > sctp memory accounting is added in this patchset by using > > these kernel APIs on send side: > > > > - sk_mem_charge() > > - sk_mem_uncharge() > > - sk_wmem_schedule(

Re: [PATCH net-next 0/2] sctp: fully support memory accounting

2019-04-01 Thread Neil Horman
On Sun, Mar 31, 2019 at 04:53:45PM +0800, Xin Long wrote: > sctp memory accounting is added in this patchset by using > these kernel APIs on send side: > > - sk_mem_charge() > - sk_mem_uncharge() > - sk_wmem_schedule() > - sk_under_memory_pressure() > - sk_mem_reclaim() > > and these on

Re: [PATCH net-next 0/2] sctp: fully support memory accounting

2019-04-01 Thread Xin Long
On Sun, Mar 31, 2019 at 4:53 PM Xin Long wrote: > > sctp memory accounting is added in this patchset by using > these kernel APIs on send side: > > - sk_mem_charge() > - sk_mem_uncharge() > - sk_wmem_schedule() > - sk_under_memory_pressure() > - sk_mem_reclaim() > > and these on receive

Re: [PATCH net-next 0/2] sctp: fully support memory accounting

2019-03-31 Thread David Miller
From: Marcelo Ricardo Leitner Date: Sun, 31 Mar 2019 17:10:48 -0300 > On Sun, Mar 31, 2019 at 04:53:45PM +0800, Xin Long wrote: >> sctp memory accounting is added in this patchset by using >> these kernel APIs on send side: > > Please give me till tomorrow to review this one. No problem.

Re: [PATCH net-next 0/2] sctp: fully support memory accounting

2019-03-31 Thread Marcelo Ricardo Leitner
On Sun, Mar 31, 2019 at 04:53:45PM +0800, Xin Long wrote: > sctp memory accounting is added in this patchset by using > these kernel APIs on send side: Please give me till tomorrow to review this one. Thanks, Marcelo

Re: [PATCH net-next 0/2] sctp: fully support memory accounting

2019-03-31 Thread Matteo Croce
On Sun, Mar 31, 2019 at 10:53 AM Xin Long wrote: > > sctp memory accounting is added in this patchset by using > these kernel APIs on send side: > > - sk_mem_charge() > - sk_mem_uncharge() > - sk_wmem_schedule() > - sk_under_memory_pressure() > - sk_mem_reclaim() > > and these on receive

Re: [PATCH net-next 0/2] sctp: fully support memory accounting

2019-03-31 Thread David Miller
From: Xin Long Date: Sun, 31 Mar 2019 16:56:40 +0800 > Simple tests are as attached. Are these integratable into selftests somehow?

Re: [PATCH net-next 0/2] sctp: fully support memory accounting

2019-03-31 Thread Xin Long
Simple tests are as attached. On Sun, Mar 31, 2019 at 4:53 PM Xin Long wrote: > > sctp memory accounting is added in this patchset by using > these kernel APIs on send side: > > - sk_mem_charge() > - sk_mem_uncharge() > - sk_wmem_schedule() > - sk_under_memory_pressure() > - sk_mem_recl

[PATCH net-next 0/2] sctp: fully support memory accounting

2019-03-31 Thread Xin Long
sctp memory accounting is added in this patchset by using these kernel APIs on send side: - sk_mem_charge() - sk_mem_uncharge() - sk_wmem_schedule() - sk_under_memory_pressure() - sk_mem_reclaim() and these on receive side: - sk_mem_charge() - sk_mem_uncharge() - sk_rmem_schedule