Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Wrong amount of memory detected on AS1200 / rawhide/tincup
@ 2002-02-25 16:41 Michael Keller
  2002-02-26 12:43 ` Andy Purkiss
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Keller @ 2002-02-25 16:41 UTC (permalink / raw)


Folks.

I've got here a rawhide/tincup having 2 CPUs and 2 GB RAM [1], which
shows a strange behaviour concerning the RAM:

While booting the 2.2.20 - kernel without a mem= option supplied [2], it
first seems to detect all the 2 GB of RAM [2.1], but it then crops it to
1 GB. On the running system, the output of top confirms that only 1 GB
RAM is used.

With 2.4.17 and the option mem=2048M supplied [3], the system behaves
identically, reducing the forced 2 GB to 1 GB [3.1].

Finally, 2.4.17 without a mem= option [4] crashes [4.2] after having detected 4
GB RAM and reduced it to 2 [4.1].

Does anybody have an idea what could be wrong with my system or the linux
kernel?

[1]

P00>>>sho conf
                           Compaq Computer Corporation
                                 AlphaServer 1200

 Console V6.0-4  OpenVMS PALcode V1.21-2, Digital UNIX PALcode V1.23-2

 Module                          Type     Rev    Name  
 System Motherboard              0        0000   mthrbrd0
 Memory  256 MB DIMM             0        0000   mem0     
 Memory  256 MB DIMM             0        0000   mem1     
 Memory  256 MB DIMM             0        0000   mem2     
 Memory  256 MB DIMM             0        0000   mem3     
 Memory  256 MB DIMM             0        0000   mem4     
 Memory  256 MB DIMM             0        0000   mem5     
 Memory  256 MB DIMM             0        0000   mem6     
 Memory  256 MB DIMM             0        0000   mem7     
 CPU (4MB Cache)                 3        0003   cpu0     
 CPU (4MB Cache)                 3        0003   cpu1     
 Bridge (IOD0/IOD1)              600      0032   iod0/iod1
 PCI Motherboard                 a        0000   saddle0  

P00>>>sho mem

Slot    Type       MB     Base
----    ----      ----    --------
 0      DIMM       256    0
 1      DIMM       256    20000000
 2      DIMM       256    40000000
 3      DIMM       256    60000000
 4      DIMM       256    80000000
 5      DIMM       256    a0000000
 6      DIMM       256    c0000000
 7      DIMM       256    e0000000

Total             2048


[2]

Linux version 2.2.20 (root@bw138isd) (gcc version 2.95.4 (Debian prerelease)) #1 SMP Sat Feb 23 12:51:59 CET 2002
Booting on Rawhide variation Tincup using machine vector Rawhide from SRM
Command line: ro root=3001 console=ttyS0,9600
[2.1]
Cropping memory from 3840MB to 2048MB
mcpcia_init_arch: allocating for 4 hoses
SMP: 2 CPUs probed -- cpu_present_mask = 3
mcpcia_init_hoses: found 2 hoses
HWRPB cycle frequency (531914893) seems inaccurate - using the measured value of 532795224 Hz
Using epoch = 1952
Console: colour VGA+ 80x25
Calibrating delay loop... 528.12 BogoMIPS
[2.2]
Memory: 1023992k available
Dentry hash table entries: 262144 (order 9, 4096k)
Buffer cache hash table entries: 524288 (order 9, 4096k)
Page cache hash table entries: 262144 (order 8, 2048k)


[3]
Linux version 2.4.17 (root@bw138isd) (gcc version 3.0.3) #1 SMP Sat Feb 23 18:16:01 CET 2002
Booting on Rawhide variation Tincup using machine vector Rawhide from SRM
Command line: ro root=3001 mem=2048M console=ttyS0,9600
memcluster 0, usage 1, start        0, end      256
memcluster 1, usage 0, start      256, end    32768
memcluster 2, usage 0, start    65536, end    98304
memcluster 3, usage 0, start   131072, end   163840
memcluster 4, usage 0, start   196608, end   229376
memcluster 5, usage 0, start   262144, end   294912
memcluster 6, usage 0, start   327680, end   360448
memcluster 7, usage 0, start   393216, end   425984
memcluster 8, usage 0, start   458752, end   491515
memcluster 9, usage 1, start   491515, end   491520
setup: forcing memory size to 2097152K (from 3932120K).
freeing pages 256:1024
freeing pages 1396:32768
freeing pages 65536:98304
freeing pages 131072:163840
freeing pages 196608:229376
reserving pages 1396:1400
SMP: 2 CPUs probed -- cpu_present_mask = 3
On node 0 totalpages: 262144
zone(0): 262144 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: ro root=3001 mem=2048M console=ttyS0,9600
mcpcia_init_hoses: found 2 hoses
Using epoch = 1952
Turning on RTC interrupts.
Console: colour VGA+ 80x25
Calibrating delay loop... 1060.36 BogoMIPS
[3.1]
Memory: 1008632k/2097152k available (1646k kernel code, 37896k reserved, 352k data, 296k init)
Dentry-cache hash table entries: 262144 (order: 9, 4194304 bytes)
Inode-cache hash table entries: 131072 (order: 8, 2097152 bytes)
Mount-cache hash table entries: 32768 (order: 6, 524288 bytes)
Buffer-cache hash table entries: 131072 (order: 7, 1048576 bytes)
Page-cache hash table entries: 262144 (order: 8, 2097152 bytes)


[4]

Linux version 2.4.17 (root@bw138isd) (gcc version 3.0.3) #1 SMP Sat Feb 23 18:16:01 CET 2002
Booting on Rawhide variation Tincup using machine vector Rawhide from SRM
Command line: ro root=3001 console=ttyS0,9600
memcluster 0, usage 1, start        0, end      256
memcluster 1, usage 0, start      256, end    32768
memcluster 2, usage 0, start    65536, end    98304
memcluster 3, usage 0, start   131072, end   163840
memcluster 4, usage 0, start   196608, end   229376
memcluster 5, usage 0, start   262144, end   294912
memcluster 6, usage 0, start   327680, end   360448
memcluster 7, usage 0, start   393216, end   425984
memcluster 8, usage 0, start   458752, end   491515
memcluster 9, usage 1, start   491515, end   491520
freeing pages 256:1024
freeing pages 1396:32768
freeing pages 65536:98304
freeing pages 131072:163840
freeing pages 196608:229376
freeing pages 262144:294912
freeing pages 327680:360448
freeing pages 393216:425984
freeing pages 458752:491515
reserving pages 1396:1404
SMP: 2 CPUs probed -- cpu_present_mask = 3
On node 0 totalpages: 491515
zone(0): 491515 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: ro root=3001 console=ttyS0,9600
mcpcia_init_hoses: found 2 hoses
Using epoch = 1952
Turning on RTC interrupts.
Console: colour VGA+ 80x25
Calibrating delay loop... 1060.36 BogoMIPS
[4.1]
Memory: 2028480k/3932120k available (1646k kernel code, 66584k reserved, 352k data, 296k init)
Dentry-cache hash table entries: 262144 (order: 9, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 4194304 bytes)
Mount-cache hash table entries: 65536 (order: 7, 1048576 bytes)
Buffer-cache hash table entries: 262144 (order: 8, 2097152 bytes)
Page-cache hash table entries: 524288 (order: 9, 4194304 bytes)
POSIX conformance testing by UNIFIX
Using heuristic of 2147483647 cycles.
SMP starting up secondaries.
Calibrating delay loop... 1065.48 BogoMIPS
SMP: Total of 2 processors activated (2132.09 BogoMIPS).
Waiting on wait_init_idle (map = 0x2)
All processors have done init_idle
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Diskquotas version dquot_6.4.0 initialized
Journalled Block Device driver loaded
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
block: 128 slots per queue, batch=32
DAC960: ***** DAC960 RAID Driver Version 2.4.11 of 11 October 2001 *****
DAC960: Copyright 1998-2001 by Leonard N. Zubkoff <lnz@dandelion.com>
[4.2]
Unable to handle kernel paging request at virtual address 000000000000002c
CPU 0 swapper(0): Oops 0
pc = [<fffffc00008fc830>]  ra = [<fffffc00008fc5ec>]  ps = 0007    Not tainted
v0 = 0000000000000000  t0 = ffffffff80000000  t1 = 0000000080000000
t2 = 0000000000000000  t3 = fffffc0000a5c3e8  t4 = 0000000000000000
t5 = fffffc0000a5bcc4  t6 = fffffffffffffffe  t7 = fffffc0000a00000
s0 = 0000000000000005  s1 = fffffc00effa01f0  s2 = 0000000040000001
s3 = fffffc0000a03ed8  s4 = fffffc00effa01b0  s5 = fffffcf902258000
s6 = fffffc00effa0000
a0 = 0000000000000002  a1 = 0000000000000000  a2 = 0000000000000060
a3 = 0000000000000020  a4 = fffffc0000a98048  a5 = fffffc0000a05460
t8 = 000000000000001f  t9 = 0000000000000001  t10= fffffc0000a5bcd8
t11= fffffc0000a352c0  pv = fffffc00009a5120  at = 0000000000000000
gp = fffffc0000a579e0  sp = fffffc0000a03df8
Trace:fffffc0000816164 fffffc0000817238 fffffc00008201cc fffffc0000817ab8 fffffc0000810bd8 fffffc0000812314 fffffc0000820390 fffffc0000812328 fffffc00008100d8 fffffc000081001c 
Code: a4440000  4821f621  40220521  40230403  44201c83  2fe00000 <2f83002c> 22030024 
Kernel panic: Aiee, killing interrupt handler!
In interrupt handler - not syncing
 boot failure


Regards
  Michael Keller
-- 
GCS/CC/E/IT d- s+: a- C++ UL++++/S++$ P+ L+++
E- W++ N+++ o? K? w O(++) M- V !PS !PE Y?
PGP+ t 5? X R !tv b+ DI+ D++ G e+++ h-- r++ y+


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Wrong amount of memory detected on AS1200 / rawhide/tincup
  2002-02-25 16:41 Wrong amount of memory detected on AS1200 / rawhide/tincup Michael Keller
@ 2002-02-26 12:43 ` Andy Purkiss
  2002-02-26 13:20   ` Michael Keller
  0 siblings, 1 reply; 8+ messages in thread
From: Andy Purkiss @ 2002-02-26 12:43 UTC (permalink / raw)


Have you turned on high memory support in the kernel. If not, you'll 
have to recompile the kernel. The memory will be detected but only 1GB 
will be used without this option.

Andy


Michael Keller <m@ike.ch> wrote in message news:<a5dq1s$6hcms$1@ID-7321.news.dfncis.de>...
> Folks.
> 
> I've got here a rawhide/tincup having 2 CPUs and 2 GB RAM [1], which
> shows a strange behaviour concerning the RAM:
> 
> While booting the 2.2.20 - kernel without a mem= option supplied [2], it
> first seems to detect all the 2 GB of RAM [2.1], but it then crops it to
> 1 GB. On the running system, the output of top confirms that only 1 GB
> RAM is used.
> 
> With 2.4.17 and the option mem=2048M supplied [3], the system behaves
> identically, reducing the forced 2 GB to 1 GB [3.1].
> 
> Finally, 2.4.17 without a mem= option [4] crashes [4.2] after having detected 4
> GB RAM and reduced it to 2 [4.1].
> 
> Does anybody have an idea what could be wrong with my system or the linux
> kernel?
> 
> [1]
> 
> P00>>>sho conf
>                            Compaq Computer Corporation
>                                  AlphaServer 1200
> 
>  Console V6.0-4  OpenVMS PALcode V1.21-2, Digital UNIX PALcode V1.23-2
> 
>  Module                          Type     Rev    Name  
>  System Motherboard              0        0000   mthrbrd0
>  Memory  256 MB DIMM             0        0000   mem0     
>  Memory  256 MB DIMM             0        0000   mem1     
>  Memory  256 MB DIMM             0        0000   mem2     
>  Memory  256 MB DIMM             0        0000   mem3     
>  Memory  256 MB DIMM             0        0000   mem4     
>  Memory  256 MB DIMM             0        0000   mem5     
>  Memory  256 MB DIMM             0        0000   mem6     
>  Memory  256 MB DIMM             0        0000   mem7     
>  CPU (4MB Cache)                 3        0003   cpu0     
>  CPU (4MB Cache)                 3        0003   cpu1     
>  Bridge (IOD0/IOD1)              600      0032   iod0/iod1
>  PCI Motherboard                 a        0000   saddle0  
> 
> P00>>>sho mem
> 
> Slot    Type       MB     Base
> ----    ----      ----    --------
>  0      DIMM       256    0
>  1      DIMM       256    20000000
>  2      DIMM       256    40000000
>  3      DIMM       256    60000000
>  4      DIMM       256    80000000
>  5      DIMM       256    a0000000
>  6      DIMM       256    c0000000
>  7      DIMM       256    e0000000
> 
> Total             2048
> 
> 
> [2]
> 
> Linux version 2.2.20 (root@bw138isd) (gcc version 2.95.4 (Debian prerelease)) #1 SMP Sat Feb 23 12:51:59 CET 2002
> Booting on Rawhide variation Tincup using machine vector Rawhide from SRM
> Command line: ro root=3001 console=ttyS0,9600
> [2.1]
> Cropping memory from 3840MB to 2048MB
> mcpcia_init_arch: allocating for 4 hoses
> SMP: 2 CPUs probed -- cpu_present_mask = 3
> mcpcia_init_hoses: found 2 hoses
> HWRPB cycle frequency (531914893) seems inaccurate - using the measured value of 532795224 Hz
> Using epoch = 1952
> Console: colour VGA+ 80x25
> Calibrating delay loop... 528.12 BogoMIPS
> [2.2]
> Memory: 1023992k available
> Dentry hash table entries: 262144 (order 9, 4096k)
> Buffer cache hash table entries: 524288 (order 9, 4096k)
> Page cache hash table entries: 262144 (order 8, 2048k)
> 
> 
> [3]
> Linux version 2.4.17 (root@bw138isd) (gcc version 3.0.3) #1 SMP Sat Feb 23 18:16:01 CET 2002
> Booting on Rawhide variation Tincup using machine vector Rawhide from SRM
> Command line: ro root=3001 mem=2048M console=ttyS0,9600
> memcluster 0, usage 1, start        0, end      256
> memcluster 1, usage 0, start      256, end    32768
> memcluster 2, usage 0, start    65536, end    98304
> memcluster 3, usage 0, start   131072, end   163840
> memcluster 4, usage 0, start   196608, end   229376
> memcluster 5, usage 0, start   262144, end   294912
> memcluster 6, usage 0, start   327680, end   360448
> memcluster 7, usage 0, start   393216, end   425984
> memcluster 8, usage 0, start   458752, end   491515
> memcluster 9, usage 1, start   491515, end   491520
> setup: forcing memory size to 2097152K (from 3932120K).
> freeing pages 256:1024
> freeing pages 1396:32768
> freeing pages 65536:98304
> freeing pages 131072:163840
> freeing pages 196608:229376
> reserving pages 1396:1400
> SMP: 2 CPUs probed -- cpu_present_mask = 3
> On node 0 totalpages: 262144
> zone(0): 262144 pages.
> zone(1): 0 pages.
> zone(2): 0 pages.
> Kernel command line: ro root=3001 mem=2048M console=ttyS0,9600
> mcpcia_init_hoses: found 2 hoses
> Using epoch = 1952
> Turning on RTC interrupts.
> Console: colour VGA+ 80x25
> Calibrating delay loop... 1060.36 BogoMIPS
> [3.1]
> Memory: 1008632k/2097152k available (1646k kernel code, 37896k reserved, 352k data, 296k init)
> Dentry-cache hash table entries: 262144 (order: 9, 4194304 bytes)
> Inode-cache hash table entries: 131072 (order: 8, 2097152 bytes)
> Mount-cache hash table entries: 32768 (order: 6, 524288 bytes)
> Buffer-cache hash table entries: 131072 (order: 7, 1048576 bytes)
> Page-cache hash table entries: 262144 (order: 8, 2097152 bytes)
> 
> 
> [4]
> 
> Linux version 2.4.17 (root@bw138isd) (gcc version 3.0.3) #1 SMP Sat Feb 23 18:16:01 CET 2002
> Booting on Rawhide variation Tincup using machine vector Rawhide from SRM
> Command line: ro root=3001 console=ttyS0,9600
> memcluster 0, usage 1, start        0, end      256
> memcluster 1, usage 0, start      256, end    32768
> memcluster 2, usage 0, start    65536, end    98304
> memcluster 3, usage 0, start   131072, end   163840
> memcluster 4, usage 0, start   196608, end   229376
> memcluster 5, usage 0, start   262144, end   294912
> memcluster 6, usage 0, start   327680, end   360448
> memcluster 7, usage 0, start   393216, end   425984
> memcluster 8, usage 0, start   458752, end   491515
> memcluster 9, usage 1, start   491515, end   491520
> freeing pages 256:1024
> freeing pages 1396:32768
> freeing pages 65536:98304
> freeing pages 131072:163840
> freeing pages 196608:229376
> freeing pages 262144:294912
> freeing pages 327680:360448
> freeing pages 393216:425984
> freeing pages 458752:491515
> reserving pages 1396:1404
> SMP: 2 CPUs probed -- cpu_present_mask = 3
> On node 0 totalpages: 491515
> zone(0): 491515 pages.
> zone(1): 0 pages.
> zone(2): 0 pages.
> Kernel command line: ro root=3001 console=ttyS0,9600
> mcpcia_init_hoses: found 2 hoses
> Using epoch = 1952
> Turning on RTC interrupts.
> Console: colour VGA+ 80x25
> Calibrating delay loop... 1060.36 BogoMIPS
> [4.1]
> Memory: 2028480k/3932120k available (1646k kernel code, 66584k reserved, 352k data, 296k init)
> Dentry-cache hash table entries: 262144 (order: 9, 4194304 bytes)
> Inode-cache hash table entries: 262144 (order: 9, 4194304 bytes)
> Mount-cache hash table entries: 65536 (order: 7, 1048576 bytes)
> Buffer-cache hash table entries: 262144 (order: 8, 2097152 bytes)
> Page-cache hash table entries: 524288 (order: 9, 4194304 bytes)
> POSIX conformance testing by UNIFIX
> Using heuristic of 2147483647 cycles.
> SMP starting up secondaries.
> Calibrating delay loop... 1065.48 BogoMIPS
> SMP: Total of 2 processors activated (2132.09 BogoMIPS).
> Waiting on wait_init_idle (map = 0x2)
> All processors have done init_idle
> Linux NET4.0 for Linux 2.4
> Based upon Swansea University Computer Society NET3.039
> Initializing RT netlink socket
> Starting kswapd
> VFS: Diskquotas version dquot_6.4.0 initialized
> Journalled Block Device driver loaded
> pty: 256 Unix98 ptys configured
> Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
> ttyS00 at 0x03f8 (irq = 4) is a 16550A
> ttyS01 at 0x02f8 (irq = 3) is a 16550A
> block: 128 slots per queue, batch=32
> DAC960: ***** DAC960 RAID Driver Version 2.4.11 of 11 October 2001 *****
> DAC960: Copyright 1998-2001 by Leonard N. Zubkoff <lnz@dandelion.com>
> [4.2]
> Unable to handle kernel paging request at virtual address 000000000000002c
> CPU 0 swapper(0): Oops 0
> pc = [<fffffc00008fc830>]  ra = [<fffffc00008fc5ec>]  ps = 0007    Not tainted
> v0 = 0000000000000000  t0 = ffffffff80000000  t1 = 0000000080000000
> t2 = 0000000000000000  t3 = fffffc0000a5c3e8  t4 = 0000000000000000
> t5 = fffffc0000a5bcc4  t6 = fffffffffffffffe  t7 = fffffc0000a00000
> s0 = 0000000000000005  s1 = fffffc00effa01f0  s2 = 0000000040000001
> s3 = fffffc0000a03ed8  s4 = fffffc00effa01b0  s5 = fffffcf902258000
> s6 = fffffc00effa0000
> a0 = 0000000000000002  a1 = 0000000000000000  a2 = 0000000000000060
> a3 = 0000000000000020  a4 = fffffc0000a98048  a5 = fffffc0000a05460
> t8 = 000000000000001f  t9 = 0000000000000001  t10= fffffc0000a5bcd8
> t11= fffffc0000a352c0  pv = fffffc00009a5120  at = 0000000000000000
> gp = fffffc0000a579e0  sp = fffffc0000a03df8
> Trace:fffffc0000816164 fffffc0000817238 fffffc00008201cc fffffc0000817ab8 fffffc0000810bd8 fffffc0000812314 fffffc0000820390 fffffc0000812328 fffffc00008100d8 fffffc000081001c 
> Code: a4440000  4821f621  40220521  40230403  44201c83  2fe00000 <2f83002c> 22030024 
> Kernel panic: Aiee, killing interrupt handler!
> In interrupt handler - not syncing
>  boot failure
> 
> 
> Regards
>   Michael Keller


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Wrong amount of memory detected on AS1200 / rawhide/tincup
  2002-02-26 12:43 ` Andy Purkiss
@ 2002-02-26 13:20   ` Michael Keller
  2002-02-26 17:39     ` Andy Purkiss
  2002-02-26 19:41     ` watman
  0 siblings, 2 replies; 8+ messages in thread
From: Michael Keller @ 2002-02-26 13:20 UTC (permalink / raw)


Andy.

On Tue, 26 Feb 2002 13:43:04 +0100, Andy Purkiss wrote:

> Have you turned on high memory support in the kernel. If not, you'll
> have to recompile the kernel. The memory will be detected but only 1GB
> will be used without this option.

I already thought about that option, but I did not find it in 'make
menuconfig' on the Alpha.
Where can I turn it on (does this option even exist on Alpha)?

Regards
  Michael Keller
-- 
GCS/CC/E/IT d- s+: a- C++ UL++++/S++$ P+ L+++
E- W++ N+++ o? K? w O(++) M- V !PS !PE Y?
PGP+ t 5? X R !tv b+ DI+ D++ G e+++ h-- r++ y+


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Wrong amount of memory detected on AS1200 / rawhide/tincup
  2002-02-26 13:20   ` Michael Keller
@ 2002-02-26 17:39     ` Andy Purkiss
  2002-02-26 19:41     ` watman
  1 sibling, 0 replies; 8+ messages in thread
From: Andy Purkiss @ 2002-02-26 17:39 UTC (permalink / raw)


Michael Keller <m@ike.ch> wrote in message news:<a5g2mj$71ds2$1@ID-7321.news.dfncis.de>...
> Andy.
> 
> On Tue, 26 Feb 2002 13:43:04 +0100, Andy Purkiss wrote:
> 
> > Have you turned on high memory support in the kernel. If not, you'll
> > have to recompile the kernel. The memory will be detected but only 1GB
> > will be used without this option.
> 
> I already thought about that option, but I did not find it in 'make
> menuconfig' on the Alpha.
> Where can I turn it on (does this option even exist on Alpha)?
> 
> Regards
>   Michael Keller

Sorry, 

Should have checked before I wrote. I've only seen the 1GB limit on
i686, my alphas only have .5GB, so I'm afraid I'm stuck as well.

Andy


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Wrong amount of memory detected on AS1200 / rawhide/tincup
  2002-02-26 13:20   ` Michael Keller
  2002-02-26 17:39     ` Andy Purkiss
@ 2002-02-26 19:41     ` watman
  2002-02-27  9:32       ` Michael Keller
  1 sibling, 1 reply; 8+ messages in thread
From: watman @ 2002-02-26 19:41 UTC (permalink / raw)


Hi,

If you use are using xwindows try

make xconfig

under the general setup tab the top option is bigmem support!

This might work, I'm using kernel 2.2.19
"Michael Keller" <m@ike.ch> wrote in message
news:a5g2mj$71ds2$1@ID-7321.news.dfncis.de...
> Andy.
>
> On Tue, 26 Feb 2002 13:43:04 +0100, Andy Purkiss wrote:
>
> > Have you turned on high memory support in the kernel. If not, you'll
> > have to recompile the kernel. The memory will be detected but only 1GB
> > will be used without this option.
>
> I already thought about that option, but I did not find it in 'make
> menuconfig' on the Alpha.
> Where can I turn it on (does this option even exist on Alpha)?
>
> Regards
>   Michael Keller
> --
> GCS/CC/E/IT d- s+: a- C++ UL++++/S++$ P+ L+++
> E- W++ N+++ o? K? w O(++) M- V !PS !PE Y?
> PGP+ t 5? X R !tv b+ DI+ D++ G e+++ h-- r++ y+




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Wrong amount of memory detected on AS1200 / rawhide/tincup
  2002-02-26 19:41     ` watman
@ 2002-02-27  9:32       ` Michael Keller
  2002-02-28  8:43         ` watman
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Keller @ 2002-02-27  9:32 UTC (permalink / raw)


watman.

On Tue, 26 Feb 2002 20:41:11 +0100, watman wrote:

> Hi,
> 
> If you use are using xwindows try
> 
> make xconfig
> 
> under the general setup tab the top option is bigmem support!

Could it be that you have seen this on x86/Linux?
On Alpha/Linux this option does not appear.

Regards
  Michael Keller
-- 
GCS/CC/E/IT d- s+: a- C++ UL++++/S++$ P+ L+++
E- W++ N+++ o? K? w O(++) M- V !PS !PE Y?
PGP+ t 5? X R !tv b+ DI+ D++ G e+++ h-- r++ y+


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Wrong amount of memory detected on AS1200 / rawhide/tincup
  2002-02-27  9:32       ` Michael Keller
@ 2002-02-28  8:43         ` watman
  2002-03-01  1:22           ` JohnJ
  0 siblings, 1 reply; 8+ messages in thread
From: watman @ 2002-02-28  8:43 UTC (permalink / raw)


Does appear on the Alpha am compiling kernel 2.2.19 so may just be an option
for that kernel
"Michael Keller" <m@ike.ch> wrote in message
news:a5i9n8$7gn97$1@ID-7321.news.dfncis.de...
> watman.
>
> On Tue, 26 Feb 2002 20:41:11 +0100, watman wrote:
>
> > Hi,
> >
> > If you use are using xwindows try
> >
> > make xconfig
> >
> > under the general setup tab the top option is bigmem support!
>
> Could it be that you have seen this on x86/Linux?
> On Alpha/Linux this option does not appear.
>
> Regards
>   Michael Keller
> --
> GCS/CC/E/IT d- s+: a- C++ UL++++/S++$ P+ L+++
> E- W++ N+++ o? K? w O(++) M- V !PS !PE Y?
> PGP+ t 5? X R !tv b+ DI+ D++ G e+++ h-- r++ y+




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Wrong amount of memory detected on AS1200 / rawhide/tincup
  2002-02-28  8:43         ` watman
@ 2002-03-01  1:22           ` JohnJ
  0 siblings, 0 replies; 8+ messages in thread
From: JohnJ @ 2002-03-01  1:22 UTC (permalink / raw)


Mike,
           I've attached a reply to your problem.  The replies are
interspersed with your observations..



-----Original Message-----
Sent: Thursday, February 28, 2002 11:30 AM
To: Jemiolo, John
Subject: Re: FW: Wrong amount of memory detected on AS1200 /
rawhide/tincup


On Thu, Feb 28, 2002 at 07:41:44AM -0500, Jemiolo, John wrote:
>
> any ideas on this?   I do not have 2g for my 1200 to try it.

Yes, I know why it looks odd, but not why it is failing under 2.4.17.

> Also, the qlogic on the 3300, will not install 7.2, it dies
> restoring the rpm's..  The plugin qlogic (pci) works fine.  I'm
> going to try a narrow drive off the other cable, instead of the
> ultra, and see if it makes a difference to the on-board controller.

> 7.2 installed to a ide on a ds10 no problem, will try my 1200 today.

Yeah, DS10 should be fine under most configurations. 1200 may be a
problem if you've got something like KZPCM (is something with a
bridge) on PCI bus #0, otherwise it should be OK.

You can post my remarks below to c.o.l.a. if you want...

> ----- Original Message -----
> From: "Michael Keller" <m@ike.ch>
> Newsgroups: comp.os.linux.alpha
> Sent: Monday, February 25, 2002 11:41 AM
> Subject: Wrong amount of memory detected on AS1200 / rawhide/tincup
>
>
> > Folks.
> >
> > I've got here a rawhide/tincup having 2 CPUs and 2 GB RAM [1], which
> > shows a strange behaviour concerning the RAM:
> >
> > While booting the 2.2.20 - kernel without a mem= option supplied [2], it
> > first seems to detect all the 2 GB of RAM [2.1], but it then crops it to
> > 1 GB. On the running system, the output of top confirms that only 1 GB
> > RAM is used.
> >
> > With 2.4.17 and the option mem=2048M supplied [3], the system behaves
> > identically, reducing the forced 2 GB to 1 GB [3.1].
> >
> > Finally, 2.4.17 without a mem= option [4] crashes [4.2] after having
> > detected 4 GB RAM and reduced it to 2 [4.1].
> >
> > Does anybody have an idea what could be wrong with my system or the
linux
> > kernel?

Nothing is wrong with your system, and it behaves as I would expect it
to under all cases except the last (2.4.17 with no mem=), when it crashes.

> > P00>>>sho mem
> >
> > Slot    Type       MB     Base
> > ----    ----      ----    --------
> >  0      DIMM       256    0
> >  1      DIMM       256    20000000
> >  2      DIMM       256    40000000
> >  3      DIMM       256    60000000
> >  4      DIMM       256    80000000
> >  5      DIMM       256    a0000000
> >  6      DIMM       256    c0000000
> >  7      DIMM       256    e0000000
> >
> > Total             2048

Notice the mapping; each 256MB DIMM is located in the bottom half of a
512MB area. Thus, of the total 4GB (32-bit) memory address space, only
half is actually populated, ie there are "holes" between each of the
DIMMs' address spaces.

For example, slot #0's 256MB DIMM has an address space of 0 to 0fffffff,
while the total slot #0 address space is 0 to 1fffffff.

When using the "mem=2048M" argument, you are reducing the *total* address
space to 2GB, into which only *half* of the actual memory falls, because
of the "holes", thus the usable memory is 1GB.

> > Cropping memory from 3840MB to 2048MB

This is done automatically by the 2.2 kernels, because their drivers are
not capable (on Alpha) of addressing more than 2GB of address space (whether
that space is full of memory OR NOT, as is your case).

> > Linux version 2.4.17 (root@bw138isd) (gcc version 3.0.3) #1 SMP Sat Feb
23
> 18:16:01 CET 2002
> > Booting on Rawhide variation Tincup using machine vector Rawhide from
SRM
> > Command line: ro root=3001 mem=2048M console=ttyS0,9600
> > memcluster 0, usage 1, start        0, end      256
> > memcluster 1, usage 0, start      256, end    32768
> > memcluster 2, usage 0, start    65536, end    98304
> > memcluster 3, usage 0, start   131072, end   163840
> > memcluster 4, usage 0, start   196608, end   229376
> > memcluster 5, usage 0, start   262144, end   294912
> > memcluster 6, usage 0, start   327680, end   360448
> > memcluster 7, usage 0, start   393216, end   425984
> > memcluster 8, usage 0, start   458752, end   491515
> > memcluster 9, usage 1, start   491515, end   491520

The memclusters describe the actuall memory present in the system; you
can see the "holes" here quite clearly.

> > setup: forcing memory size to 2097152K (from 3932120K).
>......
> > Memory: 1008632k/2097152k available (1646k kernel code, 37896k reserved,
> 352k data, 296k init)

Notice that the space is 2GB but the memory only fills half.

> > Linux version 2.4.17 (root@bw138isd) (gcc version 3.0.3) #1 SMP Sat Feb
23
> 18:16:01 CET 2002
>............
> > Memory: 2028480k/3932120k available (1646k kernel code, 66584k reserved,
> 352k data, 296k init)

Here we see nearly all the address space (the code doesn't count the
empty space beyond the last DIMM), and all of the actual memory.

> > DAC960: ***** DAC960 RAID Driver Version 2.4.11 of 11 October 2001 *****
> > DAC960: Copyright 1998-2001 by Leonard N. Zubkoff <lnz@dandelion.com>
> > [4.2]
> > Unable to handle kernel paging request at virtual address
000000000000002c
> > CPU 0 swapper(0): Oops 0
> > pc = [<fffffc00008fc830>]  ra = [<fffffc00008fc5ec>]  ps = 0007    Not
> tainted

Uh, oh.

Assuming that the above pc= is somewhere in the DAC960 driver, I think
you've found a limitation in that driver, ie that it won't work
correctly with more than 2GB of memory address space on Alpha. I just
looked at the sources, and it is using the old "virt_to_bus()" routine
for getting the bus address of the DMA memory, which, on Alpha, uses
the "direct map" technique and is limited to 2GB of address
space. Since your memory occupies nearly 4GB of address space (see
above :-), it is probably attempting to use memory that is located at
an address above the limit.

The driver should be using "pci_map_xx()" and "pci_unmap_xx()"
routines, which are fully capable of handling as much memory as one
can put into an Alpha. This is NOT simply a matter of replacing the
virt_to_bus() calls with calls to pci_map_single(), as one also needs
to release any resources (via pci_unmap_single()) that may have been
allocated by the matching pci_map_single() calls.

Solutions:

1. fix the driver
2. run on your AS1200 with memory space limited to 2G

Good luck.

--Jay++






^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-03-01  1:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-25 16:41 Wrong amount of memory detected on AS1200 / rawhide/tincup Michael Keller
2002-02-26 12:43 ` Andy Purkiss
2002-02-26 13:20   ` Michael Keller
2002-02-26 17:39     ` Andy Purkiss
2002-02-26 19:41     ` watman
2002-02-27  9:32       ` Michael Keller
2002-02-28  8:43         ` watman
2002-03-01  1:22           ` JohnJ

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox