lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080525212350.GB8405@one.firstfloor.org>
Date:	Sun, 25 May 2008 23:23:50 +0200
From:	Andi Kleen <andi@...stfloor.org>
To:	Alan Cox <alan@...rguk.ukuu.org.uk>
Cc:	Andi Kleen <andi@...stfloor.org>,
	Miquel van Smoorenburg <miquels@...tron.nl>,
	Glauber Costa <gcosta@...hat.com>,
	linux-kernel@...r.kernel.org, linux-mm@...ck.org,
	andi-suse@...stfloor.org
Subject: Re: 2.6.26: x86/kernel/pci_dma.c: gfp |= __GFP_NORETRY ?

On Sun, May 25, 2008 at 08:55:32PM +0100, Alan Cox wrote:
> On Sun, 25 May 2008 18:35:39 +0200
> Andi Kleen <andi@...stfloor.org> wrote:
> 
> > > So how about linux-2.6.26-gfp-no-oom.patch (see previous mail) for
> > > 2.6.26 
> > 
> > Changing the gfp once globally like you did is not right, because
> > the different fallback cases have to be handled differently
> > (see the different cases I discussed in my earlier mail)
> > 
> > Especially the 16MB zone allocation should never trigger the OOM killer.
> 
> That depends how much memory you have.

No it doesn't because the lower zone protection basically never puts
anything that is not GFP_DMA into the 16MB zone.

Just check yourself on your machine using sysrq.

That was one of the motivations behind the mask allocator design.

-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ