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: <9a8748490607200127r40ad4e66iffa3a6efb6f9f06c@mail.gmail.com>
Date:	Thu, 20 Jul 2006 10:27:13 +0200
From:	"Jesper Juhl" <jesper.juhl@...il.com>
To:	Subbu <subbu@...ken.com>
Cc:	linux-kernel@...r.kernel.org, linux-net@...r.kernel.org,
	subbu2k_av@...oo.com
Subject: Re: Memory allocation Failure problem with kmalloc.

On 20/07/06, Subbu <subbu@...ken.com> wrote:
>
>
> Hi,
>
>    I am working on 2.4.20 kernel.
>
>    I need to allocate memory with kmalloc.
>
>    kmalloc fails because i want to allocate more than 128kb. How to handle
> this issue.
>
>    Please help me in this regard.
>
>    How i can allocate memory of size equal to 1Mb with kmalloc or any other
> function (2.4 kernel)
>
kmalloc() allocates physically contiguous pages. 1M is a hell of a lot
of contig pages to ask for. I doubt you can get that much except at
early boot. But, if the pages don't actually need to be physically
contiguous, then you can use vmalloc() - it'll give you a virtually
contiguous range but the pages are not nessesarily physically
contiguous.

Why do you need this much btw?

-- 
Jesper Juhl <jesper.juhl@...il.com>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html
-
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