public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Ulrich Weigand <weigand@i1.informatik.uni-erlangen.de>
Cc: Avi Kivity <avi@exanet.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Deadlock during heavy write activity to userspace NFS
Date: Thu, 29 Jul 2004 13:36:41 +1000	[thread overview]
Message-ID: <410870C9.7090103@yahoo.com.au> (raw)
In-Reply-To: <200407282236.AAA00859@faui1m.informatik.uni-erlangen.de>

Ulrich Weigand wrote:

>Nick Piggin wrote:
>
>
>>Avi Kivity wrote:
>>
>>>The kernel NFS client (which kswapd depends on) has the same issue. Has 
>>>anyone ever observed kswapd deadlock due to imcoming or outgoing NFS 
>>>packets being discarded due to oom?
>>>
>>>
>>Yes this has been observed.
>>
>>alloc_skb on the client needs to somehow know that traffic coming
>>from the server is "MEMALLOC" and allowed to use memory reserves.
>>
>
>What would be an appropriate way to solve this problem? A special
>socket option?
>
>

What I think was happening is dirty NFS pages being written out in response
to low memory. The acks coming back from the server weren't being received
because memory couldn't be allocated for them.

Ideally you would allow the NFS path to allocate enough memory that it can
guarantee forward progress - like how the block layer uses mempools for
struct requests, for example.


      reply	other threads:[~2004-07-29  3:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-28  2:32 [PATCH] Deadlock during heavy write activity to userspace NFS Ulrich Weigand
2004-07-28  5:18 ` Avi Kivity
2004-07-28  5:32   ` Nick Piggin
2004-07-28 22:36     ` Ulrich Weigand
2004-07-29  3:36       ` Nick Piggin [this message]

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=410870C9.7090103@yahoo.com.au \
    --to=nickpiggin@yahoo.com.au \
    --cc=avi@exanet.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=weigand@i1.informatik.uni-erlangen.de \
    /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