Re: Bug in kernel code?

H. Peter Anvin (hpa@zytor.com)
28 Aug 2002 14:54:59 -0700


Followup to: <20020827.212649.102436426.davem@redhat.com>
By author: "David S. Miller" <davem@redhat.com>
In newsgroup: linux.dev.kernel
>
> From: "Stephen Biggs" <s.biggs@softier.com>
> Date: Tue, 27 Aug 2002 21:29:06 -0700
>
> You tell me. You're saying a billion pages (((unsigned long)(~0)) >> 2) also crashes) is never
> going to be realistically possible?
>
> On a 32-bit system? No. x86 cpus are architectually limited
> to 64GB of memory, shift that right by PAGE_SIZE (13) and we're
> still within bounds. ^^^^^^^^^^^^^^
>

PAGE_SHIFT, 12.

The maximum possible page count of any known 32-bit system (64 GB @ 4K
for x86) is 2^24 pages.

-hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@zytor.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/