From: Pavel Machek <pavel@suse.cz>
To: Tommy Reynolds <reynolds@redhat.com>
Cc: Pavel Machek <pavel@suse.cz>, linux-kernel@vger.kernel.org
Subject: Re: GFP_FAIL?
Date: Tue, 25 Sep 2001 21:59:50 +0200 [thread overview]
Message-ID: <20010925215950.C17829@atrey.karlin.mff.cuni.cz> (raw)
In-Reply-To: <20010924210951.A165@bug.ucw.cz> <20010925144611.01590a08.reynolds@redhat.com>
In-Reply-To: <20010925144611.01590a08.reynolds@redhat.com>
Hi!
> > I need to alloc as much memory as possible, *but not more*. I do not
> > want to OOM-kill anything. How do I do this? Tried GFP_KERNEL, will
> > oom-kill. GFP_USER will OOM-kill, too.
>
> Try GFP_ATOMIC; GFP_KERNEL sets the __GFP_WAIT flag and you don't
> want that.
No, I want other apps to be moved to swap, dirty data written out
etc. I really can't live with GFP_ATOMIC.
> But, if you're really asking how to know how large the current working set is,
> so that you don't grab more than your applications are going to need and
> eventually OOM, you'll need to set GFP_HAVE_CRYSTAL_BALL ;-)
I want to push just as much that I do not cause OOM. I'll stop
applications real soon after that.
Pavel
--
Causalities in World Trade Center: 6453 dead inside the building,
cryptography in U.S.A. and free speech in Czech Republic.
prev parent reply other threads:[~2001-09-25 19:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-24 19:09 GFP_FAIL? Pavel Machek
2001-09-25 18:43 ` GFP_FAIL? Marcelo Tosatti
2001-09-25 19:46 ` GFP_FAIL? Tommy Reynolds
2001-09-25 19:59 ` Pavel Machek [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=20010925215950.C17829@atrey.karlin.mff.cuni.cz \
--to=pavel@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=reynolds@redhat.com \
/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®