From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Avi Kivity <avi@exanet.com>
Cc: Ulrich Weigand <weigand@i1.informatik.uni-erlangen.de>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Deadlock during heavy write activity to userspace NFS
Date: Wed, 28 Jul 2004 15:32:28 +1000 [thread overview]
Message-ID: <41073A6C.1050606@yahoo.com.au> (raw)
In-Reply-To: <41073710.2020306@exanet.com>
Avi Kivity wrote:
> Ulrich Weigand wrote:
>
>> Avi Kivity wrote:
>>
>>
>>
>>> In our case, all block I/O is done using unbuffered I/O, and all
>>> memory is preallocated, so we don't need kswapd at all, just that
>>> small bit of memory that syscalls consume.
>>>
>>
>>
>> Does your userspace process need to send/receive network packets
>> in order to perform a write-out?
>
> Yes.
>
>> If so, how can you make sure your
>> incoming packets aren't thrown away in out-of-memory situations?
>> (Outgoing packets can use PF_MEMALLOC memory I guess, but incoming
>> ones aren't associated to any process yet ...)
>>
>>
>>
> I did nothing to address this. So far it works well, even under heavy
> load. I guess a general solution needs to address this as well.
>
> 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.
next prev parent reply other threads:[~2004-07-28 5:49 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 [this message]
2004-07-28 22:36 ` Ulrich Weigand
2004-07-29 3:36 ` Nick Piggin
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=41073A6C.1050606@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