From: Hideo AOKI <haoki@redhat.com>
To: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Cc: Satoshi OSHIMA <satoshi.oshima.fk@hitachi.com>,
netdev@vger.kernel.org, yoshfuji@linux-ipv6.org
Subject: Re: [RFC/PATCH 0/3] UDP memory usage accounting
Date: Thu, 27 Sep 2007 14:51:29 -0400 [thread overview]
Message-ID: <46FBFBB1.2020503@redhat.com> (raw)
In-Reply-To: <20070921125843.GA15810@2ka.mipt.ru>
Hello,
Apologies for late response.
Evgeniy Polyakov wrote:
> Hi.
>
> On Fri, Sep 21, 2007 at 09:18:07PM +0900, Satoshi OSHIMA (satoshi.oshima.fk@hitachi.com) 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 the system
>> wide accounting is usefull when heavy loaded condition.
>>
>> In the next step, I would like to add memory usage quota
>> for UDP to avoid unlimited memory consumption problem
>> under DDOS attack.
>
> Could you please desribed such attack in more details?
> Each UDP socket has its queue length which can not be exceeded
> (roughly), no new sockets are created when remote side sends a packet
> (like after special steps in TCP), so where is possibility to eat all
> the mem?
I think Satoshi will answer this question soon.
>> This patch set is for 2.6.23-rc7.
>
> I seriously doubt you want to put udp specific hacks and zillions of
> atomic ops all around the code just to know exact number of bytes eaten
> for UDP.
I'll revise the patch to reduce the number of atomic operations.
> Please use udp specific code (like udp_sendmsg()) for proper accounting
> if you need that, but not hacks in generic ip code.
As far as I know, Satoshi is improving this part right now. Please wait his
response.
Many thanks for your comments.
Best regards,
Hideo Aoki
--
Hitachi Computer Products (America) Inc.
next prev parent reply other threads:[~2007-09-27 18:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-21 12:18 [RFC/PATCH 0/3] UDP memory usage accounting Satoshi OSHIMA
2007-09-21 12:58 ` Evgeniy Polyakov
2007-09-27 18:51 ` Hideo AOKI [this message]
2007-09-28 13:26 ` Satoshi OSHIMA
2007-09-29 3:21 ` Herbert Xu
2007-09-29 4:47 ` David Miller
2007-09-29 4:51 ` David Miller
2007-09-29 5:20 ` Herbert Xu
2007-10-01 13:56 ` Satoshi OSHIMA
2007-09-29 5:55 ` Herbert Xu
2007-10-01 13:57 ` Satoshi OSHIMA
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=46FBFBB1.2020503@redhat.com \
--to=haoki@redhat.com \
--cc=johnpol@2ka.mipt.ru \
--cc=netdev@vger.kernel.org \
--cc=satoshi.oshima.fk@hitachi.com \
--cc=yoshfuji@linux-ipv6.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.