Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* problem with smp and isolcpus
@ 2005-07-27  2:26 alexander.samad
  2005-07-27 14:43 ` Jay.Estabrook
  0 siblings, 1 reply; 6+ messages in thread
From: alexander.samad @ 2005-07-27  2:26 UTC (permalink / raw)


Hi

Seem to have a problem with one of my cpus on a ES45, cpu2 seems to be
dying, I have had 3 lockups in 2 days 

Jul 26 12:26:23 keyzervega kernel: smp_call_function_on_cpu: initial
timeout -- trying long wait
Jul 26 12:26:53 keyzervega kernel: lib/kernel_lock.c:229 spinlock stuck
in nifd at fffffc00012c65f0(3) owner hald-addon-stor at fffffc00012c65f
0(0) lib/kernel_lock.c:229
Jul 26 12:26:53 keyzervega kernel: lib/kernel_lock.c:229 spinlock stuck
in automount at fffffc00012c65f0(1) owner hald-addon-stor at fffffc0001
2c65f0(0) lib/kernel_lock.c:229
Jul 26 12:26:53 keyzervega kernel: Kernel bug at
arch/alpha/kernel/smp.c:858
Jul 26 12:26:53 keyzervega kernel: CPU 0 hald-addon-stor(1801): Kernel
Bug 1
Jul 26 12:26:53 keyzervega kernel: pc = [<fffffc000101c4ac>]  ra =
[<fffffc000101c404>]  ps = 0000    Not tainted
Jul 26 12:26:53 keyzervega kernel: pc is at
smp_call_function_on_cpu+0x220/0x264,  ra is at
smp_call_function_on_cpu+0x178/0x264
Jul 26 12:26:53 keyzervega kernel: v0 = 0000000000000041  t0 =
0000000000000001  t1 = 0000000000000001
Jul 26 12:26:53 keyzervega kernel: t2 = 0000000100728747  t3 =
fffffc0008bbd108  t4 = 000000003b5f2d38
Jul 26 12:26:53 keyzervega kernel: t5 = 0000000000000089  t6 =
fffffc03fe78d640  t7 = fffffc03f4118000
Jul 26 12:26:53 keyzervega kernel: a0 = 0000000000000000  a1 =
0000000000000000  a2 = 0000000000000001
Jul 26 12:26:53 keyzervega kernel: a3 = 0000000000000000  a4 =
fffffc00012c6038  a5 = 0000000000000000
Jul 26 12:26:53 keyzervega kernel: t8 = 0000000000000200  t9 =
0000000000000020  t10= 0000000000000000
Jul 26 12:26:53 keyzervega kernel: t11= 0000000000000001  pv =
fffffc000101ca78  at = 0000000000000000
Jul 26 12:26:53 keyzervega kernel: gp = fffffc00018b2d00  sp =
fffffc03f411bde8
Jul 26 12:26:53 keyzervega kernel: Trace:
Jul 26 12:26:53 keyzervega kernel: [<fffffc000108ad04>]
invalidate_bdev+0x3c/0x84
Jul 26 12:26:53 keyzervega kernel: [<fffffc000108ba9c>]
invalidate_bh_lru+0x0/0x74
Jul 26 12:26:53 keyzervega kernel: [<fffffc000108ba9c>]
invalidate_bh_lru+0x0/0x74
Jul 26 12:26:53 keyzervega kernel: [<fffffc0001093098>]
kill_bdev+0x24/0x58
Jul 26 12:26:53 keyzervega kernel: [<fffffc0001094020>]
blkdev_put+0xa8/0x26c
Jul 26 12:26:53 keyzervega kernel: [<fffffc00010898d8>]
__fput+0x80/0x1bc
Jul 26 12:26:53 keyzervega kernel: [<fffffc0001087f64>]
filp_close+0xb0/0xd4
Jul 26 12:26:53 keyzervega kernel: [<fffffc000108806c>]
sys_close+0xe4/0x114
Jul 26 12:26:53 keyzervega kernel: [<fffffc0001010ff4>] entSys+0xa4/0xc0



I have had a look through and I haven't seen anything for CPU 2 so I am
presuming that it is CPU that is dying the death.

I thought I would isolate cpu 2 from the schedular but when I try
placing isolcpus=2 in the kernel parameter it doesn't seem to make any
difference for the schel, the affinity mask for all the processes is
still f and less /var/log/dmesg still shows that it is using 4 cpus!

I would prefer to do it in linux so I can test the cpu and not mask it
out in srm, which it looks like I am going to have to do.

Is this a know issue is the a resolve, if not where can I log a bug?
Where is bug tracking for it ?

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/axp-list/attachments/20050727/b3d40fc5/attachment.htm>

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

* problem with smp and isolcpus
  2005-07-27  2:26 alexander.samad
@ 2005-07-27 14:43 ` Jay.Estabrook
  2005-07-27 16:52   ` brtaylor
  0 siblings, 1 reply; 6+ messages in thread
From: Jay.Estabrook @ 2005-07-27 14:43 UTC (permalink / raw)


On Wed, Jul 27, 2005 at 12:26:26PM +1000, Samad, Alex wrote:
> 
> Seem to have a problem with one of my cpus on a ES45, cpu2 seems to be
> dying, I have had 3 lockups in 2 days 
> 
> Jul 26 12:26:23 keyzervega kernel: smp_call_function_on_cpu: initial
> timeout -- trying long wait
> Jul 26 12:26:53 keyzervega kernel: lib/kernel_lock.c:229 spinlock stuck
> in nifd at fffffc00012c65f0(3) owner hald-addon-stor at fffffc00012c65f
> 0(0) lib/kernel_lock.c:229
> Jul 26 12:26:53 keyzervega kernel: lib/kernel_lock.c:229 spinlock stuck
> in automount at fffffc00012c65f0(1) owner hald-addon-stor at fffffc0001
> 2c65f0(0) lib/kernel_lock.c:229
> Jul 26 12:26:53 keyzervega kernel: Kernel bug at
> arch/alpha/kernel/smp.c:858
> Jul 26 12:26:53 keyzervega kernel: CPU 0 hald-addon-stor(1801): Kernel
> Bug 1

From the above messages, it'd be more likely that CPU #0 was bad, because
that was where the lock was being held for too long.

However, what is more likely, is that the HAL daemon has crashed.

I've seen a number of machine checks due to HAL daemon startup, and
recommend thet it NOT BE STARTED.

> Is this a know issue is the a resolve, if not where can I log a bug?
> Where is bug tracking for it ?

The problems with the HAL daemon are known issues on Alpha.

 --Jay++

---------------------------------------------------------------
Jay A Estabrook                            HPTC - XC I & B
Hewlett-Packard Company - ZKO1-3/D-B.8     (603) 884-0301
110 Spit Brook Road, Nashua NH 03062       Jay.Estabrook at hp.com
---------------------------------------------------------------



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

* problem with smp and isolcpus
  2005-07-27 14:43 ` Jay.Estabrook
@ 2005-07-27 16:52   ` brtaylor
  0 siblings, 0 replies; 6+ messages in thread
From: brtaylor @ 2005-07-27 16:52 UTC (permalink / raw)


On Wed, 2005-07-27 at 10:43 -0400, Jay Estabrook wrote:

> The problems with the HAL daemon are known issues on Alpha.

Hmm. Hald is running on AlpaCore 1.0. Shouldn't this be corrected on the
distribution? I've disabled it.

Bob



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

* problem with smp and isolcpus
@ 2005-07-29  0:43 alexander.samad
  2005-07-29  5:27 ` rth
  0 siblings, 1 reply; 6+ messages in thread
From: alexander.samad @ 2005-07-29  0:43 UTC (permalink / raw)


Hi

I have tried 2 things

1) stop the hal daemon from running - but this hasn't helped 8( still
crashing and dumping

2) I have removed cpu #2 with set cpu_enabled b - this seems to have the
best affect, in that the box is more stable, linux only see's 3 cpus and
not four.

I am guessing that the problem is not with the CPU barfing, looking at
the code in smp_call_function_on_cpu smp.c it looks like it is trying to
talk to the other cpu's and one of them is failing. And timing out which
is causing this problem - hence why I can remove cpu2 from within srm
and it is stable.

This brings me to my original question why isn't isolcpus working when I
boot with isolcpus=2 I thought it isolated cpu 2 from the schedular and
thus removed any chance of it running any tasks, threads etc.... Is this
as good as removing it from within srm, or is there a chance that int's
might still run on there.

I checked this with tasksel and ran it on the current pids all had masks
of f - it seems like the srm environment over rides the isolcpus option 

alex


> -----Original Message-----
> From: Estabrook, Jay
> Sent: Thursday, 28 July 2005 12:44 AM
> To: Samad, Alex
> Cc: Linux on Alpha processors; debian-alpha at lists.debian.org
> Subject: Re: problem with smp and isolcpus
> 
> On Wed, Jul 27, 2005 at 12:26:26PM +1000, Samad, Alex wrote:
> >
> > Seem to have a problem with one of my cpus on a ES45, cpu2 seems to
be
> > dying, I have had 3 lockups in 2 days
> >
> > Jul 26 12:26:23 keyzervega kernel: smp_call_function_on_cpu: initial
> > timeout -- trying long wait
> > Jul 26 12:26:53 keyzervega kernel: lib/kernel_lock.c:229 spinlock
stuck
> > in nifd at fffffc00012c65f0(3) owner hald-addon-stor at
fffffc00012c65f
> > 0(0) lib/kernel_lock.c:229
> > Jul 26 12:26:53 keyzervega kernel: lib/kernel_lock.c:229 spinlock
stuck
> > in automount at fffffc00012c65f0(1) owner hald-addon-stor at
fffffc0001
> > 2c65f0(0) lib/kernel_lock.c:229
> > Jul 26 12:26:53 keyzervega kernel: Kernel bug at
> > arch/alpha/kernel/smp.c:858
> > Jul 26 12:26:53 keyzervega kernel: CPU 0 hald-addon-stor(1801):
Kernel
> > Bug 1
> 
> From the above messages, it'd be more likely that CPU #0 was bad,
because
> that was where the lock was being held for too long.
> 
> However, what is more likely, is that the HAL daemon has crashed.
> 
> I've seen a number of machine checks due to HAL daemon startup, and
> recommend thet it NOT BE STARTED.
> 
> > Is this a know issue is the a resolve, if not where can I log a bug?
> > Where is bug tracking for it ?
> 
> The problems with the HAL daemon are known issues on Alpha.
> 
>  --Jay++
> 
> ---------------------------------------------------------------
> Jay A Estabrook                            HPTC - XC I & B
> Hewlett-Packard Company - ZKO1-3/D-B.8     (603) 884-0301
> 110 Spit Brook Road, Nashua NH 03062       Jay.Estabrook at hp.com
> ---------------------------------------------------------------



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

* problem with smp and isolcpus
  2005-07-29  0:43 problem with smp and isolcpus alexander.samad
@ 2005-07-29  5:27 ` rth
  0 siblings, 0 replies; 6+ messages in thread
From: rth @ 2005-07-29  5:27 UTC (permalink / raw)


On Fri, Jul 29, 2005 at 10:43:46AM +1000, Samad, Alex wrote:
> This brings me to my original question why isn't isolcpus working when I
> boot with isolcpus=2 I thought it isolated cpu 2 from the schedular and
> thus removed any chance of it running any tasks, threads etc.... Is this
> as good as removing it from within srm, or is there a chance that int's
> might still run on there.

No idea what this feature is.

But if the cpu is bad, you *should* have it completely disabled
via cpu_enabled.


r~



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

* problem with smp and isolcpus
@ 2005-07-29  5:33 alexander.samad
  0 siblings, 0 replies; 6+ messages in thread
From: alexander.samad @ 2005-07-29  5:33 UTC (permalink / raw)


Hi

This is from the kernel-parameters.txt file in the Documentation
directory

isolcpus=       [KNL,SMP] Isolate CPUs from the general scheduler.
                Format: <cpu number>,...,<cpu number>
                This option can be used to specify one or more CPUs
                to isolate from the general SMP balancing and scheduling
                algorithms. The only way to move a process onto or off
                an "isolated" CPU is via the CPU affinity syscalls.
                <cpu number> begins at 0 and the maximum value is
                "number of CPUs in system - 1".

               This option is the preferred way to isolate CPUs. The
               alternative - manually setting the CPU mask of all tasks
               in the system can cause problems and suboptimal load
               balancer performance.


And from sched.c

/* cpus with isolated domains */
cpumask_t __devinitdata cpu_isolated_map = CPU_MASK_NONE;

/* Setup the mask of cpus configured for isolated domains */
static int __init isolated_cpu_setup(char *str)
{
        int ints[NR_CPUS], i;

        str = get_options(str, ARRAY_SIZE(ints), ints);
        cpus_clear(cpu_isolated_map);
        for (i = 1; i <= ints[0]; i++)
                if (ints[i] < NR_CPUS)
                        cpu_set(ints[i], cpu_isolated_map);
        return 1;
}

__setup ("isolcpus=", isolated_cpu_setup);



I have followed up to see what is happening and why it preffers the
cpu_enabled flag over a kernel parameter 

A

> -----Original Message-----
> From: axp-list-bounces at redhat.com [mailto:axp-list-bounces at redhat.com]
On
> Behalf Of Richard Henderson
> Sent: Friday, 29 July 2005 3:27 PM
> To: Linux on Alpha processors
> Cc: Estabrook, Jay; debian-alpha at lists.debian.org
> Subject: Re: problem with smp and isolcpus
> 
> On Fri, Jul 29, 2005 at 10:43:46AM +1000, Samad, Alex wrote:
> > This brings me to my original question why isn't isolcpus working
when I
> > boot with isolcpus=2 I thought it isolated cpu 2 from the schedular
and
> > thus removed any chance of it running any tasks, threads etc.... Is
this
> > as good as removing it from within srm, or is there a chance that
int's
> > might still run on there.
> 
> No idea what this feature is.
> 
> But if the cpu is bad, you *should* have it completely disabled
> via cpu_enabled.
> 
> 
> r~
> 
> _______________________________________________
> axp-list mailing list
> axp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/axp-list



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

end of thread, other threads:[~2005-07-29  5:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-29  0:43 problem with smp and isolcpus alexander.samad
2005-07-29  5:27 ` rth
  -- strict thread matches above, loose matches on Subject: below --
2005-07-29  5:33 alexander.samad
2005-07-27  2:26 alexander.samad
2005-07-27 14:43 ` Jay.Estabrook
2005-07-27 16:52   ` brtaylor

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