[PATCH 4/4] UDP memory accounting and limitation(take 5): memory limitation

2007-10-12 Thread Satoshi OSHIMA
This patch introduces memory limitation for UDP. signed-off-by: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> Index: 2.6.23-udp_limit/include/net/udp.h === --- 2.6.23-udp_limit.orig

[PATCH 3/4] UDP memory accounting and limitation(take 5): memory accounting

2007-10-12 Thread Satoshi OSHIMA
This patch introduces memory usage accounting for UDP. signed-off-by: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> Index: 2.6.23-udp_limit/net/ipv4/ip_output.c === --- 2.6.23-udp_li

[PATCH 2/4] UDP memory accounting and limitation(take 5): accounting unit and variable

2007-10-12 Thread Satoshi OSHIMA
This patch introduces global variable for UDP memory accounting. The unit is page. signed-off-by: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> Index: 2.6.23-udp_limit/includ

[PATCH 1/4] UDP memory accounting and limitation(take 5): fix send buffer check

2007-10-12 Thread Satoshi OSHIMA
This patch introduces sndbuf size check before memory allcation for send buffer. signed-off-by: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> Index: 2.6.23-rc7-udp_limit/net/ipv4

[PATCH 0/4]UDP memory accounting and limitation(take 5)

2007-10-12 Thread Satoshi OSHIMA
em is specified as 4096, UDP memory limitaion will not work. The deafult number of udp_mem is 4096. Comment, review and test are welcome. Thanks, Satoshi Oshima - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordom

Re: [RFC/PATCH 4/4] UDP memory usage accounting (take 4): memory limitation

2007-10-12 Thread Satoshi OSHIMA
Hi Stephen, > On Thu, 11 Oct 2007 21:51:14 +0900 > Satoshi OSHIMA <[EMAIL PROTECTED]> wrote: > >> Hi Stephen, >> >> Thank you for your comment. >> >>>>{ >>>> + .ctl_name = NET_UDP_MEM, >

Re: [RFC/PATCH 4/4] UDP memory usage accounting (take 4): memory limitation

2007-10-11 Thread Satoshi OSHIMA
alue of udp_mem is strange, I agree. I'll fix it. How about this? min=4096 (and turn off limitation) udp_mem>4096 (and turn on limitation) Satoshi Oshima - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC/PATCH 2/4] UDP memory usage accounting (take 4): accounting unit and variable

2007-10-10 Thread Satoshi OSHIMA
Hi Evgeniy, Thank you for your comment. > Hi. > > On Sat, Oct 06, 2007 at 12:01:07AM +0900, Satoshi OSHIMA ([EMAIL PROTECTED]) > wrote: >> --- 2.6.23-rc3-udp_limit.orig/net/ipv4/udp.c >> +++ 2.6.23-rc3-udp_limit/net/ipv4/udp.c >> @@ -113,6 +113,10 @@ DEFINE_SNM

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

2007-10-05 Thread Satoshi OSHIMA
This patch introduces memory usage accounting for UDP. signed-off-by: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> Index: 2.6.23-rc8-udp_limit/net/ipv4/ip_output.c === --

[RFC/PATCH 4/4] UDP memory usage accounting (take 4): memory limitation

2007-10-05 Thread Satoshi OSHIMA
This patch introduces memory limitation for UDP. signed-off-by: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> Index: 2.6.23-rc9-udp_limit/include/net/udp.h === --- 2.6.23-rc9-ud

[RFC/PATCH 2/4] UDP memory usage accounting (take 4): accounting unit and variable

2007-10-05 Thread Satoshi OSHIMA
This patch introduces global variable for UDP memory accounting. The unit is page. signed-off-by: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> Index: 2.6.23-rc3-udp_limit/includ

[RFC/PATCH 1/4] UDP memory usage accounting (take 4): fix send buffer check

2007-10-05 Thread Satoshi OSHIMA
This patch introduces sndbuf size check before memory allcation for send buffer. signed-off-by: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> Index: 2.6.23-rc7-udp_limit/net/ipv4

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

2007-10-05 Thread Satoshi OSHIMA
et me know, if you find the good way to solve this problem. Thanks, Satoshi Oshima - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

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

2007-10-02 Thread Satoshi OSHIMA
This patch introduces memory usage measurement for UDP. signed-off-by: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> Index: 2.6.23-rc8-udp_limit/net/ipv4/ip_output.c === --

[RFC/PATCH 2/3] UDP memory usage accounting (take 3): accounting unit and variable

2007-10-02 Thread Satoshi OSHIMA
This patch introduces global variable for UDP memory accounting. The unit is page. signed-off-by: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> Index: 2.6.23-rc3-udp_limit/includ

[RFC/PATCH 1/3] UDP memory usage accounting (take 3): fix send buffer check

2007-10-02 Thread Satoshi OSHIMA
This patch introduces sndbuf size check before memory allcation for send buffer. signed-off-by: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> Index: 2.6.23-rc7-udp_limit/net/ipv4

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

2007-10-02 Thread Satoshi OSHIMA
appreciate your comment/test/feedback. Satoshi Oshima - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

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 3/3] UDP memory usage accounting (take 2): measurement

2007-10-01 Thread Satoshi OSHIMA
Evgeniy Polyakov wrote: > On Fri, Sep 28, 2007 at 10:41:31PM +0900, Satoshi OSHIMA ([EMAIL PROTECTED]) wrote: >> This patch introduces memory usage measurement for UDP. >> >> These 3 points were updated. >> >> - UDP specific codes in IP layer were removed. &

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

2007-09-28 Thread Satoshi OSHIMA
et is for 2.6.23-rc8. I appreciate your comment/test/feedback. Satoshi Oshima - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

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, me

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

2007-09-28 Thread Satoshi OSHIMA
This patch introduces memory usage measurement for UDP. These 3 points were updated. - UDP specific codes in IP layer were removed. - atomic_sub() in a loop was removed - accounting during socket destruction signed-off-by: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki &

[RFC/PATCH 2/3] UDP memory usage accounting: accounting unit and variable

2007-09-28 Thread Satoshi OSHIMA
This patch introduces global variable for UDP memory accounting. The unit is page. signed-off-by: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> Index: 2.6.23-rc3-udp_limit/includ

[RFC/PATCH 1/3] UDP memory usage accounting (take 2): fix send buffer check

2007-09-28 Thread Satoshi OSHIMA
This patch introduces sndbuf size check before memory allcation for send buffer. signed-off-by: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> Index: 2.6.23-rc7-udp_limit/net/ipv4

Re: [RFC/PATCH 2/3] UDP memory usage accounting: accounting unit and variable

2007-09-28 Thread Satoshi OSHIMA
Hi, Thank you for your comment. Andi Kleen wrote: > Satoshi OSHIMA <[EMAIL PROTECTED]> writes: > >> This patch introduces global variable for UDP memory accounting. >> The unit is page. > > The global variable doesn't seem to be very MP scalable, especially

[RFC/PATCH 1/3] UDP memory usage accounting: fix send buffer check

2007-09-21 Thread Satoshi OSHIMA
This patch introduces sndbuf size check before memory allcation for send buffer. signed-off-by: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> Index: 2.6.23-rc7-udp_limit/net/ipv4

[RFC/PATCH 3/3] UDP memory usage accounting: measurement

2007-09-21 Thread Satoshi OSHIMA
This patch introduces memory usage measurement for UDP. signed-off-by: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> Index: 2.6.23-rc7-udp_limit/net/ipv4/ip_output.c === --

[RFC/PATCH 2/3] UDP memory usage accounting: accounting unit and variable

2007-09-21 Thread Satoshi OSHIMA
This patch introduces global variable for UDP memory accounting. The unit is page. signed-off-by: Satoshi Oshima <[EMAIL PROTECTED]> signed-off-by: Hideo Aoki <[EMAIL PROTECTED]> Index: 2.6.23-rc3-udp_limit/includ

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

2007-09-21 Thread Satoshi OSHIMA
to add memory usage quota for UDP to avoid unlimited memory consumption problem under DDOS attack. This patch set is for 2.6.23-rc7. Unfortunately, I don't have any NIC with UFO. So this patch set is not tested with UFO supported device. I appreciate your comment/test/feedback. Satoshi O