* RE: [PATCH] XPC heartbeat timer function must run on CPU 0
2007-11-07 13:53 [PATCH] XPC heartbeat timer function must run on CPU 0 Dean Nelson
@ 2007-11-07 16:26 ` Luck, Tony
2007-11-08 12:11 ` Dean Nelson
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Luck, Tony @ 2007-11-07 16:26 UTC (permalink / raw)
To: linux-ia64
> Currently, XPC's heartbeat timer function runs on whatever CPU modprobe/insmod
> ran on when XPC was started. To avoid the heartbeat from being delayed for
> long periods the timer function must run on CPU 0.
Does Altix allow hot remove of cpu0? If so, then you have a problem.
-Tony
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH] XPC heartbeat timer function must run on CPU 0
2007-11-07 13:53 [PATCH] XPC heartbeat timer function must run on CPU 0 Dean Nelson
2007-11-07 16:26 ` Luck, Tony
@ 2007-11-08 12:11 ` Dean Nelson
2007-11-14 20:49 ` Simon Horman
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Dean Nelson @ 2007-11-08 12:11 UTC (permalink / raw)
To: linux-ia64
On Wed, Nov 07, 2007 at 08:26:59AM -0800, Luck, Tony wrote:
> > Currently, XPC's heartbeat timer function runs on whatever CPU modprobe/insmod
> > ran on when XPC was started. To avoid the heartbeat from being delayed for
> > long periods the timer function must run on CPU 0.
>
> Does Altix allow hot remove of cpu0? If so, then you have a problem.
At this time Altix does not support hot remove of cpu0, but it is something
currently being worked on. At the time that feature is ready then this
code would indeed need to be modified. In the meantime, we have an existing
customer in need of a fix.
Thanks,
Dean
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH] XPC heartbeat timer function must run on CPU 0
2007-11-07 13:53 [PATCH] XPC heartbeat timer function must run on CPU 0 Dean Nelson
2007-11-07 16:26 ` Luck, Tony
2007-11-08 12:11 ` Dean Nelson
@ 2007-11-14 20:49 ` Simon Horman
2007-11-14 21:12 ` Robin Holt
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Simon Horman @ 2007-11-14 20:49 UTC (permalink / raw)
To: linux-ia64
On Thu, Nov 08, 2007 at 06:11:19AM -0600, Dean Nelson wrote:
> On Wed, Nov 07, 2007 at 08:26:59AM -0800, Luck, Tony wrote:
> > > Currently, XPC's heartbeat timer function runs on whatever CPU modprobe/insmod
> > > ran on when XPC was started. To avoid the heartbeat from being delayed for
> > > long periods the timer function must run on CPU 0.
> >
> > Does Altix allow hot remove of cpu0? If so, then you have a problem.
>
> At this time Altix does not support hot remove of cpu0, but it is something
> currently being worked on. At the time that feature is ready then this
> code would indeed need to be modified. In the meantime, we have an existing
> customer in need of a fix.
Kdump will run the second (crash) kernel on whatever CPU the crash
occurs on, so its quite possible for cpu 0 not to exist in the
second kernel. Would this be a problem for this code?
--
Horms, California Edition
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH] XPC heartbeat timer function must run on CPU 0
2007-11-07 13:53 [PATCH] XPC heartbeat timer function must run on CPU 0 Dean Nelson
` (2 preceding siblings ...)
2007-11-14 20:49 ` Simon Horman
@ 2007-11-14 21:12 ` Robin Holt
2007-11-14 22:11 ` Simon Horman
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Robin Holt @ 2007-11-14 21:12 UTC (permalink / raw)
To: linux-ia64
On Wed, Nov 14, 2007 at 12:49:14PM -0800, Simon Horman wrote:
> On Thu, Nov 08, 2007 at 06:11:19AM -0600, Dean Nelson wrote:
> > On Wed, Nov 07, 2007 at 08:26:59AM -0800, Luck, Tony wrote:
> > > > Currently, XPC's heartbeat timer function runs on whatever CPU modprobe/insmod
> > > > ran on when XPC was started. To avoid the heartbeat from being delayed for
> > > > long periods the timer function must run on CPU 0.
> > >
> > > Does Altix allow hot remove of cpu0? If so, then you have a problem.
> >
> > At this time Altix does not support hot remove of cpu0, but it is something
> > currently being worked on. At the time that feature is ready then this
> > code would indeed need to be modified. In the meantime, we have an existing
> > customer in need of a fix.
>
> Kdump will run the second (crash) kernel on whatever CPU the crash
> occurs on, so its quite possible for cpu 0 not to exist in the
> second kernel. Would this be a problem for this code?
Wouldn't that cpu appear to the new OS instance as cpu0? If so, then
it should not be an issue.
Thanks,
Robin
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH] XPC heartbeat timer function must run on CPU 0
2007-11-07 13:53 [PATCH] XPC heartbeat timer function must run on CPU 0 Dean Nelson
` (3 preceding siblings ...)
2007-11-14 21:12 ` Robin Holt
@ 2007-11-14 22:11 ` Simon Horman
2007-11-14 22:19 ` Luck, Tony
2007-11-15 17:28 ` Simon Horman
6 siblings, 0 replies; 8+ messages in thread
From: Simon Horman @ 2007-11-14 22:11 UTC (permalink / raw)
To: linux-ia64
On Wed, Nov 14, 2007 at 03:12:38PM -0600, Robin Holt wrote:
> On Wed, Nov 14, 2007 at 12:49:14PM -0800, Simon Horman wrote:
> > On Thu, Nov 08, 2007 at 06:11:19AM -0600, Dean Nelson wrote:
> > > On Wed, Nov 07, 2007 at 08:26:59AM -0800, Luck, Tony wrote:
> > > > > Currently, XPC's heartbeat timer function runs on whatever CPU modprobe/insmod
> > > > > ran on when XPC was started. To avoid the heartbeat from being delayed for
> > > > > long periods the timer function must run on CPU 0.
> > > >
> > > > Does Altix allow hot remove of cpu0? If so, then you have a problem.
> > >
> > > At this time Altix does not support hot remove of cpu0, but it is something
> > > currently being worked on. At the time that feature is ready then this
> > > code would indeed need to be modified. In the meantime, we have an existing
> > > customer in need of a fix.
> >
> > Kdump will run the second (crash) kernel on whatever CPU the crash
> > occurs on, so its quite possible for cpu 0 not to exist in the
> > second kernel. Would this be a problem for this code?
>
> Wouldn't that cpu appear to the new OS instance as cpu0? If so, then
> it should not be an issue.
No, I don't believe that it does.
I can try and test this theory if it helps.
Perhaps my mind is corrupted by x86 thoughts.
--
Horms, California Edition
^ permalink raw reply [flat|nested] 8+ messages in thread* RE: [PATCH] XPC heartbeat timer function must run on CPU 0
2007-11-07 13:53 [PATCH] XPC heartbeat timer function must run on CPU 0 Dean Nelson
` (4 preceding siblings ...)
2007-11-14 22:11 ` Simon Horman
@ 2007-11-14 22:19 ` Luck, Tony
2007-11-15 17:28 ` Simon Horman
6 siblings, 0 replies; 8+ messages in thread
From: Luck, Tony @ 2007-11-14 22:19 UTC (permalink / raw)
To: linux-ia64
>> Wouldn't that cpu appear to the new OS instance as cpu0? If so, then
>> it should not be an issue.
>
> No, I don't believe that it does.
> I can try and test this theory if it helps.
> Perhaps my mind is corrupted by x86 thoughts.
We are talking about logical cpu0 here. Surely the new instance
must call whatever cpu it is running on first "0". E.g. I could
have used kexec to switch to a UP kernel that only supports cpu0.
-Tony
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH] XPC heartbeat timer function must run on CPU 0
2007-11-07 13:53 [PATCH] XPC heartbeat timer function must run on CPU 0 Dean Nelson
` (5 preceding siblings ...)
2007-11-14 22:19 ` Luck, Tony
@ 2007-11-15 17:28 ` Simon Horman
6 siblings, 0 replies; 8+ messages in thread
From: Simon Horman @ 2007-11-15 17:28 UTC (permalink / raw)
To: linux-ia64
On Wed, Nov 14, 2007 at 02:19:15PM -0800, Luck, Tony wrote:
> >> Wouldn't that cpu appear to the new OS instance as cpu0? If so, then
> >> it should not be an issue.
> >
> > No, I don't believe that it does.
> > I can try and test this theory if it helps.
> > Perhaps my mind is corrupted by x86 thoughts.
>
> We are talking about logical cpu0 here. Surely the new instance
> must call whatever cpu it is running on first "0". E.g. I could
> have used kexec to switch to a UP kernel that only supports cpu0.
I took a look into this, and yes you are right.
Regardless of which physical CPU is used to boot on,
it is always logical cpu 0. So the problem that I
was thinking about doesn't exist. Silly me.
I also noticed that even if it was posisble for logical cpu 0 to
not be present, the patch will still work as the hearbeat
code would just end up being run on the prevailing logical cpu.
So no problem x2 :-)
--
Horms, California Edition
^ permalink raw reply [flat|nested] 8+ messages in thread