From: "Stephen C. Tweedie" <sct@redhat.com>
To: Peter Wurbs <wurbs@bbcom-hh.de>
Cc: Linux-MM@kvack.org
Subject: Re: Limitation of buffer allocation
Date: Fri, 17 Dec 1999 23:35:11 +0000 (GMT) [thread overview]
Message-ID: <14426.51375.939634.483532@dukat.scot.redhat.com> (raw)
In-Reply-To: <385A3DF0.7B82AE33@bbcom-hh.de>
Hi,
On Fri, 17 Dec 1999 14:43:12 +0100, Peter Wurbs <wurbs@bbcom-hh.de>
said:
> If there is a ad-hoc requierement of a bigger memory block, this
> function seems to be unable to take away memory from the buffer cache.
> Thus alloc_skb returns null pointer, because it must be invoked with
> flag "GFP_ATOMIC" (sudden return if there is no memory available). As a
> result the driver runs into a faulty deadlocked state.
Yes, that's all working exactly as expected.
GFP_ATOMIC allocations are always expected to fail immediately if there
is insufficient memory available. If you want to keep a
larger-than-normal amount of free space available for atomica
llocations, then increase the free pages count in
/proc/sys/vm/freepages.
> Do you see problems in changing the values in /proc/sys/vm/freepages?
No, that's precisely what you are supposed to do!
--Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/
prev parent reply other threads:[~1999-12-17 23:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-17 13:43 Peter Wurbs
1999-12-17 23:35 ` Stephen C. Tweedie [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=14426.51375.939634.483532@dukat.scot.redhat.com \
--to=sct@redhat.com \
--cc=Linux-MM@kvack.org \
--cc=wurbs@bbcom-hh.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