Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* 21264 Alpha stuck spinlocks and memory woes
@ 1999-11-13  2:26 Chance Reschke
  1999-11-15 18:25 ` Jay.Estabrook
  1999-11-16 20:48 ` Paul Jakma
  0 siblings, 2 replies; 5+ messages in thread
From: Chance Reschke @ 1999-11-13  2:26 UTC (permalink / raw)
  To: axp-list

Hi,

We run several dual-processor 21264 alpha machines - kernel 2.2.12smp,
RedHat 6.0 - and we'd like to resolve a couple of problems we've been
having with them.

1) They crash every couple of weeks complaining about stuck kernel
spinlocks.

For example:

        socket.c:43 spinlock stuck in amd at fffffc00003a6eb8(0) owner
        xauth at fffffc000032ae14(1) sched.c:30

Warnings about stuck spinlocks are regularly logged by the kernel, but the
machine usually gets unstuck and carries on.  Is there anything we can do
to eliminate this problem?

2) We'd like to use 4GB of physical RAM on one of these machines, but the
current Linux kernel only supports 2GB.  The i386 BIGMEM patch doesn't
appear to address our problem either.  Is anyone working on native support
for big memory on Alphas?

On a related note, I recently tried compiling a 2.3.26 kernel hoping it
might fix the spinlock problems, but it failed with many errors in
/usr/src/linux/mm/memory.c

Thanks,
        Chance




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

* Re: 21264 Alpha stuck spinlocks and memory woes
  1999-11-13  2:26 21264 Alpha stuck spinlocks and memory woes Chance Reschke
@ 1999-11-15 18:25 ` Jay.Estabrook
  1999-11-15 19:33   ` Chance Reschke
  1999-11-16 20:48 ` Paul Jakma
  1 sibling, 1 reply; 5+ messages in thread
From: Jay.Estabrook @ 1999-11-15 18:25 UTC (permalink / raw)
  To: axp-list


>>> Chance Reschke said:
> 
> We run several dual-processor 21264 alpha machines - kernel 2.2.12smp,
> RedHat 6.0 - and we'd like to resolve a couple of problems we've been
> having with them.
> 
> 1) They crash every couple of weeks complaining about stuck kernel
> spinlocks.
> 
> For example:
> 
>         socket.c:43 spinlock stuck in amd at fffffc00003a6eb8(0) owner
>         xauth at fffffc000032ae14(1) sched.c:30
> 
> Warnings about stuck spinlocks are regularly logged by the kernel, but the
> machine usually gets unstuck and carries on.  Is there anything we can do
> to eliminate this problem?

Is the above an example of one of the locks that does NOT come unstuck?

As you've noticed, there are occasions when a spinlock is held for a
very long time, during normal system operation. This is most apt to be
the "kernel" lock, which under 2.2 is still being used to manage a lot
of the kernel operations under SMP.

If you have encountered cases in which the lock does NOT (eventually)
come unstuck, you may have found a deadlock condition that needs to be
investigated. Please try to collect as much information about those
cases as possible, and post here and to linux-kernel.

> 2) We'd like to use 4GB of physical RAM on one of these machines, but the
> current Linux kernel only supports 2GB.  The i386 BIGMEM patch doesn't
> appear to address our problem either.  Is anyone working on native support
> for big memory on Alphas?

Yes, I am working on patches that will support more than 2GB of memory, but
only for RAWHIDE and all the EV6-based machines, nothing else. I expect to
have something available for public consumption soon after official 2.2.14
is released.

> On a related note, I recently tried compiling a 2.3.26 kernel hoping it
> might fix the spinlock problems, but it failed with many errors in
> /usr/src/linux/mm/memory.c

Join the crowd... :-\

--Jay++

-----------------------------------------------------------------------------
Jay A Estabrook                            Alpha Engineering - LINUX Project
Compaq Computer Corp. - MRO1-2/K20         (508) 467-2080
200 Forest Street, Marlboro, MA  01752     Jay.Estabrook@compaq.com
-----------------------------------------------------------------------------



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

* Re: 21264 Alpha stuck spinlocks and memory woes
  1999-11-15 18:25 ` Jay.Estabrook
@ 1999-11-15 19:33   ` Chance Reschke
  0 siblings, 0 replies; 5+ messages in thread
From: Chance Reschke @ 1999-11-15 19:33 UTC (permalink / raw)
  To: axp-list


> >         socket.c:43 spinlock stuck in amd at fffffc00003a6eb8(0) owner
> >         xauth at fffffc000032ae14(1) sched.c:30
> > 
> > Warnings about stuck spinlocks are regularly logged by the kernel, but the
> > machine usually gets unstuck and carries on.  Is there anything we can do
> > to eliminate this problem?
> 
> Is the above an example of one of the locks that does NOT come unstuck?
> 
> As you've noticed, there are occasions when a spinlock is held for a
> very long time, during normal system operation. This is most apt to be
> the "kernel" lock, which under 2.2 is still being used to manage a lot
> of the kernel operations under SMP.
> 
> If you have encountered cases in which the lock does NOT (eventually)
> come unstuck, you may have found a deadlock condition that needs to be
> investigated. Please try to collect as much information about those
> cases as possible, and post here and to linux-kernel.

You've described our situation exactly: quite a few "kernel" spinlocks
that eventually come unstuck (a few seconds at most), and the occasional
non-"kernel" spinlock that takes down the machine.  The example above is
one of the latter.  In fact, I think the majority of these have been
"xauth" stuck in "amd".

What information should I try to collect the next time this happens?

> > 2) We'd like to use 4GB of physical RAM on one of these machines, but the
> > current Linux kernel only supports 2GB.  The i386 BIGMEM patch doesn't
> > appear to address our problem either.  Is anyone working on native support
> > for big memory on Alphas?
> 
> Yes, I am working on patches that will support more than 2GB of memory, but
> only for RAWHIDE and all the EV6-based machines, nothing else. I expect to
> have something available for public consumption soon after official 2.2.14
> is released.

This would be a real boon for us.  There seems to be considerable
confusion about > 2GB RAM support on Alphas - lots of folks blindly
asserting that it has always worked for all alphas, while other folks
insist you have to buy a "real" server from Compaq for this to work.  Do
you know of a definitive reference (other than the kernel source) for
answers to this sort of question?

> > On a related note, I recently tried compiling a 2.3.26 kernel hoping it
> > might fix the spinlock problems, but it failed with many errors in
> > /usr/src/linux/mm/memory.c
> 
> Join the crowd... :-\

Yeah, I've seen several messages on this topic since joining the alpha
lists...

Thanks again for your thorough answers - they really helped.

 - C



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

* Re: 21264 Alpha stuck spinlocks and memory woes
  1999-11-13  2:26 21264 Alpha stuck spinlocks and memory woes Chance Reschke
  1999-11-15 18:25 ` Jay.Estabrook
@ 1999-11-16 20:48 ` Paul Jakma
  1999-11-16 22:26   ` Peter Rival
  1 sibling, 1 reply; 5+ messages in thread
From: Paul Jakma @ 1999-11-16 20:48 UTC (permalink / raw)
  To: axp-list

On Fri, 12 Nov 1999, Chance Reschke wrote:

  2) We'd like to use 4GB of physical RAM on one of these machines, but the
  current Linux kernel only supports 2GB.  The i386 BIGMEM patch doesn't
  appear to address our problem either.  Is anyone working on native support
  for big memory on Alphas?

the problem is with the way pci/isa address space is mapped into
physical address space. Currently linux maps the first 2gb of bus
addr space to 2-4gb physical space. 

the correct solution is to implement scatter-gather bus -> phys
translation which most alpha's support. (see other posts). But this
involves a lot of changes to the driver interface.

afaik alpha allows bus space to be mapped anywhere into the first 8GB
of phys space. So it might perhaps be possible to move the mapping up
as a short term solution, ie map first 2GB of bus space to 4+GB of
physical and change the bus/phys/virt_to... macros accordingly.

Anyone know what could break with this? If it's a nobrainer we'd have
4GB RAM support for nothing! :) 

regards,
-- 
Paul Jakma	paul@clubi.ie
PGP5 key: http://www.clubi.ie/jakma/publickey.txt
-------------------------------------------
Fortune:
Support Bingo, keep Grandma off the streets.


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

* Re: 21264 Alpha stuck spinlocks and memory woes
  1999-11-16 20:48 ` Paul Jakma
@ 1999-11-16 22:26   ` Peter Rival
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Rival @ 1999-11-16 22:26 UTC (permalink / raw)
  To: axp-list

Paul Jakma wrote:

> On Fri, 12 Nov 1999, Chance Reschke wrote:
>
>   2) We'd like to use 4GB of physical RAM on one of these machines, but the
>   current Linux kernel only supports 2GB.  The i386 BIGMEM patch doesn't
>   appear to address our problem either.  Is anyone working on native support
>   for big memory on Alphas?
>
> the problem is with the way pci/isa address space is mapped into
> physical address space. Currently linux maps the first 2gb of bus
> addr space to 2-4gb physical space.
>
> the correct solution is to implement scatter-gather bus -> phys
> translation which most alpha's support. (see other posts). But this
> involves a lot of changes to the driver interface.
>

This is true.  However, we might be able to get away (until the "correct
solution" is in place) with just adapting to the zoned allocator that mingo is
working on.  This is a fairly simple solution to get us moving into the
direction we all want to go, that is, true full support for our entire address
space.  I'm already looking into the implications this mod will have in terms
of NUMA (it basically doesn't do anything NUMA-ish yet), but overall it looks
pretty doable.

 - Pete (And yes Jay, I know I have the sources... ;)


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

end of thread, other threads:[~1999-11-16 21:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-13  2:26 21264 Alpha stuck spinlocks and memory woes Chance Reschke
1999-11-15 18:25 ` Jay.Estabrook
1999-11-15 19:33   ` Chance Reschke
1999-11-16 20:48 ` Paul Jakma
1999-11-16 22:26   ` Peter Rival

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