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] [day] [month] [year] [list]
Message-ID: <alpine.LRH.1.00.0712211006290.18697@mini.warudkars.net>
Date:	Fri, 21 Dec 2007 11:31:53 -0500 (EST)
From:	Parag Warudkar <parag.warudkar@...il.com>
To:	Andi Kleen <ak@...e.de>
cc:	Parag Warudkar <parag.warudkar@...il.com>,
	linux-kernel@...r.kernel.org, mingo@...e.hu,
	akpm@...ux-foundation.org, torvalds@...ux-foundation.org
Subject: Re: [PATCH] x86: Fix DMI out of memory problems



On Fri, 21 Dec 2007, Andi Kleen wrote:

> 
> FWIW the ff tree has patches to allow "really early allocation" now.
> They could be used for this. I didn't implement that for i386 though,
> so that would still need some variant of your patch.

Just to clarify -The allocation failure currently happens only on x86_64 - 
on i386 it uses alloc_bootmem and does not fail.

Regardless though this patch is a good idea for both i386 and x86_64 - 
there is no point in repeatedly allocating memory for large empty strings 
no matter where it comes from, which was the point of this patch.

> 
> Disadvantage right now: e820 memory allocation currently rounds to pages
> always. I intend to fix that though because it also wastes memory
> with the memnodemap for once.
> 
So looks like currently we have to at least use 4K with these patches - 
that would be at least 8 times more than what is actually used after this 
patch unless we also fit in some other early alloc in this 4k. I will keep 
an eye on the ff tree though - when you get to fix it we can switch all early allocs to use it.

Thanks

Parag
--
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