2.4.25-rc1: BUG: wrong zone alignment, it will crash
As with 2.4.24, using the highmem option causes the BUG message.
This is a kernel ex BK without any patches.
Linux version 2.4.25-rc1 (root@mhfl4) (gcc version 2.95.3 20010315 (release)) #5 Fri Feb 6 17:27:18 HKT 2004 BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001eff0000 (usable)
BIOS-e820: 000000001eff0000 - 000000001eff3000 (ACPI NVS)
BIOS-e820: 000000001eff3000 - 000000001f000000 (ACPI data)
BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved)
300MB HIGHMEM available.
195MB LOWMEM available.
On node 0 totalpages: 126960
zone(0): 4096 pages.
zone(1): 46064 pages.
zone(2): 76800 pages.
BUG: wrong zone alignment, it will crash
Kernel command line: vga=0xf07 root=/dev/hda4 console=tty0 console=ttyS0,115200n8r devfs=nomount nousb acpi=off highmem=300m Initializing CPU#0
Detected 2399.771 MHz processor.
Console: colour VGA+ 80x60
Calibrating delay loop... 4784.12 BogoMIPS
Memory: 498696k/507840k available (1589k kernel code, 8756k reserved, 676k data, 120k init, 307200k highmem)
The kernel seems to experience stability problems.
How to resolve?
Michael
Quoted 20 lines · Michael Frank
As with 2.4.24, using the highmem option causes the BUG message.
This is a kernel ex BK without any patches.
Linux version 2.4.25-rc1 (root@mhfl4) (gcc version 2.95.3 20010315 (release)) #5 Fri Feb 6 17:27:18 HKT 2004 BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 -000000000009fc00(usable)
BIOS-e820:000000000009fc00-00000000000a0000(reserved)
BIOS-e820:00000000000f0000- 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 -000000001eff0000(usable)
BIOS-e820:000000001eff0000-000000001eff3000(ACPI NVS)
BIOS-e820:000000001eff3000-000000001f000000(ACPI data)
BIOS-e820:00000000fec00000- 0000000100000000 (reserved)
300MB HIGHMEM available.
195MB LOWMEM available.
On node 0 totalpages: 126960
zone(0): 4096 pages.
zone(1): 46064 pages.
zone(2): 76800 pages.BUG: wrong zone alignment, it will crash
Quoted 8 lines
Kernel command line: vga=0xf07 root=/dev/hda4 console=tty0 console=ttyS0,115200n8r devfs=nomount nousb acpi=off highmem=300m Initializing CPU#0
Detected 2399.771 MHz processor.
Console: colour VGA+ 80x60
Calibrating delay loop... 4784.12 BogoMIPS
Memory: 498696k/507840k available (1589k kernel code, 8756k reserved, 676k data, 120k init, 307200k highmem)The kernel seems to experience stability problems.
Michael,
This is totally bogus, you dont have highmem available. Dont use highmem=.
Quoted 30 lines · Marcelo Tosatti
Quoted 27 lines · Michael Frank
As with 2.4.24, using the highmem option causes the BUG message.
This is a kernel ex BK without any patches.
Linux version 2.4.25-rc1 (root@mhfl4) (gcc version 2.95.3 20010315 (release)) #5 Fri Feb 6 17:27:18 HKT 2004 BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 -000000000009fc00(usable)
BIOS-e820:000000000009fc00-00000000000a0000(reserved)
BIOS-e820:00000000000f0000- 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 -000000001eff0000(usable)
BIOS-e820:000000001eff0000-000000001eff3000(ACPI NVS)
BIOS-e820:000000001eff3000-000000001f000000(ACPI data)
BIOS-e820:00000000fec00000- 0000000100000000 (reserved)
300MB HIGHMEM available.
195MB LOWMEM available.
On node 0 totalpages: 126960
zone(0): 4096 pages.
zone(1): 46064 pages.
zone(2): 76800 pages.BUG: wrong zone alignment, it will crashKernel command line: vga=0xf07 root=/dev/hda4 console=tty0 console=ttyS0,115200n8r devfs=nomount nousb acpi=off highmem=300m Initializing CPU#0
Detected 2399.771 MHz processor.
Console: colour VGA+ 80x60
Calibrating delay loop... 4784.12 BogoMIPS
Memory: 498696k/507840k available (1589k kernel code, 8756k reserved, 676k data, 120k init, 307200k highmem)
Quoted 8 lines
Quoted 1 line
The kernel seems to experience stability problems.
Michael,
This is totally bogus, you dont have highmem available. Dont use highmem=.
Marcello,
Thanks for your reply.
It is supposed to work, just a bug in the zone alignment code.
Also 2.6.2 has same problem.
I have have to use HIGHMEM emulation for testing.
Regards
Michqel
Linux version 2.6.2 (mhf@mhfl4) (gcc version 2.95.3 20010315 (release)) #1 Fri Feb 6 19:46:34 HKT 2004 BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001eff0000 (usable)
BIOS-e820: 000000001eff0000 - 000000001eff3000 (ACPI NVS)
BIOS-e820: 000000001eff3000 - 000000001f000000 (ACPI data)
BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved)
300MB HIGHMEM available.
195MB LOWMEM available.
On node 0 totalpages: 126960
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 46064 pages, LIFO batch:11
HighMem zone: 76800 pages, LIFO batch:16
BUG: wrong zone alignment, it will crash
DMI 2.3 present.
Building zonelist for node : 0
Kernel command line: vga=0xf07 root=/dev/hda4 console=tty0 console=ttyS0,115200n8r devfs=nomount nousb acpi=off highmem=300m Initializing CPU#0
PID hash table entries: 2048 (order 11: 16384 bytes)
Detected 2400.068 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x60
Memory: 498224k/507840k available (1930k kernel code, 8592k reserved, 986k data, 160k init, 307200k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 4734.97 BogoMIPS
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU#0: Intel P4/Xeon Extended MCE MSRs (12) available
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 07
Enabling fast FPU save and restore... done.
Quoted 9 lines · Michael Frank
Quoted 7 lines
Quoted 7 lines
300MB HIGHMEM available.
195MB LOWMEM available.
On node 0 totalpages: 126960
zone(0): 4096 pages.
zone(1): 46064 pages.
zone(2): 76800 pages.BUG: wrong zone alignment, it will crashIt is supposed to work, just a bug in the zone alignment code.
The error isn't in the kernel, it's between the chair and the keyboard. You have created a lowmem zone of a size that doesn't correctly align with the largest blocks used by the buddy allocator.
Quoted 1 line
I have have to use HIGHMEM emulation for testing.
Then you'll need to choose a different size for the highmem= parameter, one that doesn't cause an unaligned boundary.
Alternatively, you could submit a patch so the highmem= boot option parsing code does the aligning for you.
However, that would simply be an improvement to the kernel and nothing like a bug you can demand to get fixed now.
Signature · 3 lines
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan
Quoted 12 lines · Rik van Riel
Quoted 9 lines · Michael Frank
Quoted 7 lines
Quoted 7 lines
300MB HIGHMEM available.
195MB LOWMEM available.
On node 0 totalpages: 126960
zone(0): 4096 pages.
zone(1): 46064 pages.
zone(2): 76800 pages.BUG: wrong zone alignment, it will crashIt is supposed to work, just a bug in the zone alignment code.
Quoted 8 lines
The error isn't in the kernel, it's between the chair and the keyboard. You have created a lowmem zone of a size that doesn't correctly align with the largest blocks used by the buddy allocator.
Quoted 1 line
I have have to use HIGHMEM emulation for testing.
Then you'll need to choose a different size for the highmem= parameter, one that doesn't cause an unaligned boundary.
Which is not user friendly and does not match the documentation.
Quoted 3 lines
Alternatively, you could submit a patch so the highmem= boot option parsing code does the aligning for you.
OK, will do. I'll produce and test a patch.
Quoted 3 lines
However, that would simply be an improvement to the kernel and nothing like a bug you can demand to get fixed now.
OK, Please note that I only passed on the message produced by the kernel
BUG: wrong zone alignment, it will crash
Perhaps the kernel should have reported it as "Invalid value for highmem" instead of "BUG" ;)
Thank you
Michael
On Sat, 7 Feb 2004 00:46:31 +0800 Michael Frank <[email protected]> wrote:
| On Friday 06 February 2004 23:36, Rik van Riel wrote: | > On Fri, 6 Feb 2004, Michael Frank wrote: | > | > > > > 300MB HIGHMEM available. | > > > > 195MB LOWMEM available. | > > > > On node 0 totalpages: 126960 | > > > > zone(0): 4096 pages. | > > > > zone(1): 46064 pages. | > > > > zone(2): 76800 pages. | > > > > BUG: wrong zone alignment, it will crash | > | > > It is supposed to work, just a bug in the zone alignment code. | > | > The error isn't in the kernel, it's between the chair and the keyboard. | > You have created a lowmem zone of a size that doesn't correctly | > align with the largest blocks used by the buddy allocator. | > | > > I have have to use HIGHMEM emulation for testing. | > | > Then you'll need to choose a different size for the highmem= | > parameter, one that doesn't cause an unaligned boundary. | | Which is not user friendly and does not match the documentation.
Interesting boot option... but what doc. are you referring to?
| > Alternatively, you could submit a patch so the highmem= boot | > option parsing code does the aligning for you. | | OK, will do. I'll produce and test a patch.
Please include an update to Documentation/kernel-parameters.txt .
| > However, that would simply be an improvement to the kernel and | > nothing like a bug you can demand to get fixed now. | | OK, Please note that I only passed on the message produced by the kernel | BUG: wrong zone alignment, it will crash | | Perhaps the kernel should have reported it as "Invalid value for highmem" | instead of "BUG" ;)
How does this option work? Does it just fake highmem_pages of low memory as being in high memory?
--
~Randy
kernel-janitors project: http://janitor.kernelnewbies.org/
Quoted 26 lines · Randy.Dunlap
On Sat, 7 Feb 2004 00:46:31 +0800 Michael Frank <[email protected]> wrote:
| On Friday 06 February 2004 23:36, Rik van Riel wrote: | > On Fri, 6 Feb 2004, Michael Frank wrote: | > | > > > > 300MB HIGHMEM available. | > > > > 195MB LOWMEM available. | > > > > On node 0 totalpages: 126960 | > > > > zone(0): 4096 pages. | > > > > zone(1): 46064 pages. | > > > > zone(2): 76800 pages. | > > > > BUG: wrong zone alignment, it will crash | > | > > It is supposed to work, just a bug in the zone alignment code. | > | > The error isn't in the kernel, it's between the chair and the keyboard. | > You have created a lowmem zone of a size that doesn't correctly | > align with the largest blocks used by the buddy allocator. | > | > > I have have to use HIGHMEM emulation for testing. | > | > Then you'll need to choose a different size for the highmem= | > parameter, one that doesn't cause an unaligned boundary. | | Which is not user friendly and does not match the documentation.
Quoted 1 line
Interesting boot option... but what doc. are you referring to?
Line 863 of 2.4.2[45]/arch/i386/setup.c
/*
* highmem=size forces highmem to be exactly 'size' bytes.
* This works even on boxes that have no highmem otherwise.
* This also works to reduce highmem size on bigger boxes. */
else if (!memcmp(from, "highmem=", 8))
highmem_pages = memparse(from+8, &from) >> PAGE_SHIFT;
Quoted 8 lines
| > Alternatively, you could submit a patch so the highmem= boot | > option parsing code does the aligning for you. | | OK, will do. I'll produce and test a patch.Please include an update to
Documentation/kernel-parameters.txt.
Sure.
Quoted 10 lines
| > However, that would simply be an improvement to the kernel and | > nothing like a bug you can demand to get fixed now. | | OK, Please note that I only passed on the message produced by the kernel | BUG: wrong zone alignment, it will crash | | Perhaps the kernel should have reported it as "Invalid value for highmem" | instead of "BUG" ;)
Quoted 2 lines
How does this option work? Does it just fake
highmem_pagesof low memory as being in high memory?
Sort of, it maps some pages into highmem zone instead of lowmem zone.
Regards
Michael