linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* question about the limited interrupt vector resource on a single cpu
@ 2018-06-06  8:36 Pingfan Liu
  2018-06-06  9:15 ` Thomas Gleixner
  0 siblings, 1 reply; 6+ messages in thread
From: Pingfan Liu @ 2018-06-06  8:36 UTC (permalink / raw)
  To: x86; +Cc: linux-kernel

For x86, there is around 200 vectors left for external device on a
single logic cpu.
Is there any case that we exhaust them in real world, and is it worth to fix?

Thanks,
Pingfan

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

* Re: question about the limited interrupt vector resource on a single cpu
  2018-06-06  8:36 question about the limited interrupt vector resource on a single cpu Pingfan Liu
@ 2018-06-06  9:15 ` Thomas Gleixner
  2018-06-06  9:23   ` Pingfan Liu
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Gleixner @ 2018-06-06  9:15 UTC (permalink / raw)
  To: Pingfan Liu; +Cc: x86, linux-kernel

On Wed, 6 Jun 2018, Pingfan Liu wrote:

> For x86, there is around 200 vectors left for external device on a
> single logic cpu.
>
> Is there any case that we exhaust them in real world, and is it worth to fix?

Exhaustion is unlikely, but how would you fix it? The vector space per CPU
is limited by hardware not software.

Thanks,

	tglx

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

* Re: question about the limited interrupt vector resource on a single cpu
  2018-06-06  9:15 ` Thomas Gleixner
@ 2018-06-06  9:23   ` Pingfan Liu
  2018-06-06  9:34     ` Thomas Gleixner
  0 siblings, 1 reply; 6+ messages in thread
From: Pingfan Liu @ 2018-06-06  9:23 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: x86, linux-kernel

On Wed, Jun 6, 2018 at 5:15 PM, Thomas Gleixner <tglx@linutronix.de> wrote:
> On Wed, 6 Jun 2018, Pingfan Liu wrote:
>
>> For x86, there is around 200 vectors left for external device on a
>> single logic cpu.
>>
>> Is there any case that we exhaust them in real world, and is it worth to fix?
>
> Exhaustion is unlikely, but how would you fix it? The vector space per CPU
> is limited by hardware not software.
>
Playing some trick on iommu, we can use it to identify the irq requester.

Regards,
Pingfan

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

* Re: question about the limited interrupt vector resource on a single cpu
  2018-06-06  9:23   ` Pingfan Liu
@ 2018-06-06  9:34     ` Thomas Gleixner
  2018-06-06 11:44       ` Pingfan Liu
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Gleixner @ 2018-06-06  9:34 UTC (permalink / raw)
  To: Pingfan Liu; +Cc: x86, linux-kernel

On Wed, 6 Jun 2018, Pingfan Liu wrote:

> On Wed, Jun 6, 2018 at 5:15 PM, Thomas Gleixner <tglx@linutronix.de> wrote:
> > On Wed, 6 Jun 2018, Pingfan Liu wrote:
> >
> >> For x86, there is around 200 vectors left for external device on a
> >> single logic cpu.
> >>
> >> Is there any case that we exhaust them in real world, and is it worth to fix?
> >
> > Exhaustion is unlikely, but how would you fix it? The vector space per CPU
> > is limited by hardware not software.
> >
> Playing some trick on iommu, we can use it to identify the irq requester.

But what's the point? If you have more than 200 device interrupts on a
single CPU, then you surely have other problems than that.

What kind of problem are you trying to solve?

Thanks,

	tglx

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

* Re: question about the limited interrupt vector resource on a single cpu
  2018-06-06  9:34     ` Thomas Gleixner
@ 2018-06-06 11:44       ` Pingfan Liu
  2018-06-06 12:08         ` Thomas Gleixner
  0 siblings, 1 reply; 6+ messages in thread
From: Pingfan Liu @ 2018-06-06 11:44 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: x86, linux-kernel

On Wed, Jun 6, 2018 at 5:34 PM, Thomas Gleixner <tglx@linutronix.de> wrote:
> On Wed, 6 Jun 2018, Pingfan Liu wrote:
>
>> On Wed, Jun 6, 2018 at 5:15 PM, Thomas Gleixner <tglx@linutronix.de> wrote:
>> > On Wed, 6 Jun 2018, Pingfan Liu wrote:
>> >
>> >> For x86, there is around 200 vectors left for external device on a
>> >> single logic cpu.
>> >>
>> >> Is there any case that we exhaust them in real world, and is it worth to fix?
>> >
>> > Exhaustion is unlikely, but how would you fix it? The vector space per CPU
>> > is limited by hardware not software.
>> >
>> Playing some trick on iommu, we can use it to identify the irq requester.
>
> But what's the point? If you have more than 200 device interrupts on a
> single CPU, then you surely have other problems than that.
>
> What kind of problem are you trying to solve?
>
In kdump case,  normally we set nr_cpus=1 by default, and in some huge
system, it can exhaust vector space.
By this is easily to resolve by inc nr_cpus. Hence I post this
question to see whether there are other requirements to resolve such
case

Thanks,
Pingfan

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

* Re: question about the limited interrupt vector resource on a single cpu
  2018-06-06 11:44       ` Pingfan Liu
@ 2018-06-06 12:08         ` Thomas Gleixner
  0 siblings, 0 replies; 6+ messages in thread
From: Thomas Gleixner @ 2018-06-06 12:08 UTC (permalink / raw)
  To: Pingfan Liu; +Cc: x86, linux-kernel

On Wed, 6 Jun 2018, Pingfan Liu wrote:
> On Wed, Jun 6, 2018 at 5:34 PM, Thomas Gleixner <tglx@linutronix.de> wrote:
> > On Wed, 6 Jun 2018, Pingfan Liu wrote:
> >
> >> On Wed, Jun 6, 2018 at 5:15 PM, Thomas Gleixner <tglx@linutronix.de> wrote:
> >> > On Wed, 6 Jun 2018, Pingfan Liu wrote:
> >> >
> >> >> For x86, there is around 200 vectors left for external device on a
> >> >> single logic cpu.
> >> >>
> >> >> Is there any case that we exhaust them in real world, and is it worth to fix?
> >> >
> >> > Exhaustion is unlikely, but how would you fix it? The vector space per CPU
> >> > is limited by hardware not software.
> >> >
> >> Playing some trick on iommu, we can use it to identify the irq requester.
> >
> > But what's the point? If you have more than 200 device interrupts on a
> > single CPU, then you surely have other problems than that.
> >
> > What kind of problem are you trying to solve?
> >
> In kdump case,  normally we set nr_cpus=1 by default, and in some huge
> system, it can exhaust vector space.

Well. For kdump it's really not necessary to initialize all devices. So
this is more a configuration problem.

> By this is easily to resolve by inc nr_cpus. Hence I post this
> question to see whether there are other requirements to resolve such
> case

Not really. We've covered a lot of the issues with multi-queue devices and
suspend, where you can run into the same issue, via the managed interrupt
infrastructure.

Thanks,

	tglx

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

end of thread, other threads:[~2018-06-06 12:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-06  8:36 question about the limited interrupt vector resource on a single cpu Pingfan Liu
2018-06-06  9:15 ` Thomas Gleixner
2018-06-06  9:23   ` Pingfan Liu
2018-06-06  9:34     ` Thomas Gleixner
2018-06-06 11:44       ` Pingfan Liu
2018-06-06 12:08         ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).