mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kuznet@ms2.inr.ac.ru
To: trond.myklebust@fys.uio.no (Trond Myklebust)
Cc: linux-kernel@vger.kernel.org
Subject: Re: Fragment flooding in 2.4.x/2.5.x
Date: Fri, 28 Jun 2002 00:05:08 +0400 (MSD)	[thread overview]
Message-ID: <200206272005.AAA16804@sex.inr.ac.ru> (raw)
In-Reply-To: <200206271900.22602.trond.myklebust@fys.uio.no> from "Trond Myklebust" at Jun 27, 2 07:00:22 pm

Hello!

> > Did you not solve this problem using right write_space?
> 
> Sure, I can add specific checks for (atomic_read(&sk->wmem_alloc) < 
> sk->sndbuf) in the RPC layer,

But it is there now.

static void
udp_write_space(struct sock *sk)
{
	struct rpc_xprt *xprt;

	if (!(xprt = xprt_from_sock(sk)))
		return;
	if (xprt->shutdown)
		return;

	/* Wait until we have enough socket memory. */
	if (sock_writeable(sk))
		return;

So, I do not understand what you speak about.



>		    	 Sending partial messages isn't a feature 
> that sounds like it would be particularly useful for any other applications 
> either.

The thing, which is really useless, is that your patch preparing skbs
and dropping them in the next line. With the same success you could
trigger BUG() there. :-) Right application just should not reach
this condition.

Anyway, I have to repeat:

>>Better way exists. Just use forced sock_wmalloc instead of
>>sock_alloc_send_skb on non-blocking send of all the fragments
>>but the first.


> However what if the actual call to alloc_skb() fails?

The same as if it would be lost by network.

Alexey

  reply	other threads:[~2002-06-27 20:04 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-27 15:57 Trond Myklebust
2002-06-27 16:34 ` kuznet
2002-06-27 17:00   ` Trond Myklebust
2002-06-27 20:05     ` kuznet [this message]
2002-06-27 20:45       ` Trond Myklebust
2002-06-27 22:07         ` kuznet
2002-06-28  8:22           ` Trond Myklebust
2002-06-28 10:38             ` Trond Myklebust
2002-06-28 18:21               ` Alexey Kuznetsov
2002-07-01 12:14                 ` Trond Myklebust
2002-08-03 10:17                   ` David S. Miller
2002-08-05 13:43                     ` Trond Myklebust
2002-08-05 14:00                       ` Trond Myklebust
2002-08-05 14:54                       ` David S. Miller
2002-08-05 23:30                       ` kuznet
2002-08-05 23:45                         ` Trond Myklebust
2002-08-06  7:53                           ` Henning P. Schmiedehausen
2002-08-06  4:43                         ` David S. Miller

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=200206272005.AAA16804@sex.inr.ac.ru \
    --to=kuznet@ms2.inr.ac.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trond.myklebust@fys.uio.no \
    /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

all inboxes | Powered by JetHome®