From: Jeff Moyer <jmoyer@redhat.com>
To: Lukas Czerner <lczerner@redhat.com>
Cc: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org,
axboe@kernel.dk, akpm@linux-foundation.org
Subject: Re: [PATCH 2/2 v5] loop: Limit the number of requests in the bio list
Date: Tue, 27 Nov 2012 11:58:57 -0500 [thread overview]
Message-ID: <x49haobdlta.fsf@segfault.boston.devel.redhat.com> (raw)
In-Reply-To: <1353572315-4508-2-git-send-email-lczerner@redhat.com> (Lukas Czerner's message of "Thu, 22 Nov 2012 09:18:35 +0100")
Lukas Czerner <lczerner@redhat.com> writes:
> Currently there is not limitation of number of requests in the loop bio
> list. This can lead into some nasty situations when the caller spawns
> tons of bio requests taking huge amount of memory. This is even more
> obvious with discard where blkdev_issue_discard() will submit all bios
> for the range and wait for them to finish afterwards. On really big loop
> devices and slow backing file system this can lead to OOM situation as
> reported by Dave Chinner.
>
> With this patch we will wait in loop_make_request() if the number of
> bios in the loop bio list would exceed 'nr_congestion_on'.
> We'll wake up the process as we process the bios form the list. Some
> threshold hysteresis is in place to avoid high frequency oscillation.
>
> Signed-off-by: Lukas Czerner <lczerner@redhat.com>
> Reported-by: Dave Chinner <dchinner@redhat.com>
Acked-by: Jeff Moyer <jmoyer@redhat.com>
next prev parent reply other threads:[~2012-11-27 16:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-22 8:18 [PATCH 1/2 v2] wait: add wait_event_lock_irq() interface Lukas Czerner
2012-11-22 8:18 ` [PATCH 2/2 v5] loop: Limit the number of requests in the bio list Lukas Czerner
2012-11-27 16:58 ` Jeff Moyer [this message]
2012-11-27 23:25 ` [PATCH 1/2 v2] wait: add wait_event_lock_irq() interface Andrew Morton
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=x49haobdlta.fsf@segfault.boston.devel.redhat.com \
--to=jmoyer@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=axboe@kernel.dk \
--cc=lczerner@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.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 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®