[RFC/PATCH 0/3] UDP memory usage accounting (take 3)

2007-10-02 Thread Satoshi OSHIMA
This patch set try to introduce memory usage accounting for UDP(currently ipv4 only). This is the second post of take 2 patch, because previous post was broken by my MUA setting. Only what I chage is my MUA setting. There is no code change from take 2. This patch set is for 2.6.23-rc8. I appre

Re: [RFC/PATCH 0/3] UDP memory usage accounting

2007-10-01 Thread Satoshi OSHIMA
> On Fri, Sep 28, 2007 at 09:47:37PM -0700, David Miller wrote: >> There are two things we (might) need to guard against, one local and >> one remote. > > Right I was focusing on the local threat. > >> If you do a per-user limit, apache would basically just stop at that >> redzone point. In some s

Re: [RFC/PATCH 0/3] UDP memory usage accounting

2007-10-01 Thread Satoshi OSHIMA
Herbert Xu wrote: > On Fri, Sep 28, 2007 at 09:51:59PM -0700, David Miller wrote: >> There is a per-socket send buffer limit, and there is a per-user open >> file descriptor limit. Multiply the two to determine how much system >> memory the user can consume using sockets. > > We do have these limi

Re: [RFC/PATCH 0/3] UDP memory usage accounting

2007-09-28 Thread Herbert Xu
On Fri, Sep 28, 2007 at 09:47:37PM -0700, David Miller wrote: > > There are two things we (might) need to guard against, one local and > one remote. Right I was focusing on the local threat. > If you do a per-user limit, apache would basically just stop at that > redzone point. In some sense mak

Re: [RFC/PATCH 0/3] UDP memory usage accounting

2007-09-28 Thread Herbert Xu
On Fri, Sep 28, 2007 at 09:51:59PM -0700, David Miller wrote: > > There is a per-socket send buffer limit, and there is a per-user open > file descriptor limit. Multiply the two to determine how much system > memory the user can consume using sockets. We do have these limits but they're per-proc

Re: [RFC/PATCH 0/3] UDP memory usage accounting

2007-09-28 Thread David Miller
From: David Miller <[EMAIL PROTECTED]> Date: Fri, 28 Sep 2007 21:47:37 -0700 (PDT) > Per-user limits are not necessarily the answer. Seeing myself say this reminds me that it seems to have been missed in all of this that we do have a limit per user already. There is a per-socket send buffer limi

Re: [RFC/PATCH 0/3] UDP memory usage accounting

2007-09-28 Thread David Miller
From: Herbert Xu <[EMAIL PROTECTED]> Date: Sat, 29 Sep 2007 11:21:05 +0800 > Satoshi OSHIMA <[EMAIL PROTECTED]> wrote: > > > > In such case, from 300 to 500MB memory consumption will > > be fatal. Users can easily open 1000 sockets per process > > under default ulimit. If such sockets hold message

Re: [RFC/PATCH 0/3] UDP memory usage accounting

2007-09-28 Thread Herbert Xu
Satoshi OSHIMA <[EMAIL PROTECTED]> wrote: > > In such case, from 300 to 500MB memory consumption will > be fatal. Users can easily open 1000 sockets per process > under default ulimit. If such sockets hold messages but > user processes don't receive it. Almost all slab will > be occupied by sk_buff

[RFC/PATCH 0/3] UDP memory usage accounting(take 2)

2007-09-28 Thread Satoshi OSHIMA
This patch set try to introduce memory usage accounting for UDP(currently ipv4 only). 3 points are improved along with some feedback. (a) to improve scalability, avoiding atomic_*()s as small as possible (b) avoiding UDP specific code in IP layer (c) supporting socket destruction accou

Re: [RFC/PATCH 0/3] UDP memory usage accounting

2007-09-28 Thread Satoshi OSHIMA
Hi, Thank you for your comment. Evgeniy Polyakov wrote: > Hi. > > On Fri, Sep 21, 2007 at 09:18:07PM +0900, Satoshi OSHIMA ([EMAIL PROTECTED]) wrote: >> This patch set try to introduce memory usage accounting for >> UDP(currently ipv4 only). >> >> Currently, memory usage of UDP can be observed a

Re: [RFC/PATCH 0/3] UDP memory usage accounting

2007-09-27 Thread Hideo AOKI
Hello, Apologies for late response. Evgeniy Polyakov wrote: Hi. On Fri, Sep 21, 2007 at 09:18:07PM +0900, Satoshi OSHIMA ([EMAIL PROTECTED]) wrote: This patch set try to introduce memory usage accounting for UDP(currently ipv4 only). Currently, memory usage of UDP can be observed as the sam

Re: [RFC/PATCH 0/3] UDP memory usage accounting

2007-09-21 Thread Evgeniy Polyakov
Hi. On Fri, Sep 21, 2007 at 09:18:07PM +0900, Satoshi OSHIMA ([EMAIL PROTECTED]) wrote: > This patch set try to introduce memory usage accounting for > UDP(currently ipv4 only). > > Currently, memory usage of UDP can be observed as the sam of > usage of tx_queue and rx_queue. But I believe that

[RFC/PATCH 0/3] UDP memory usage accounting

2007-09-21 Thread Satoshi OSHIMA
This patch set try to introduce memory usage accounting for UDP(currently ipv4 only). Currently, memory usage of UDP can be observed as the sam of usage of tx_queue and rx_queue. But I believe that the system wide accounting is usefull when heavy loaded condition. In the next step, I would like t