Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1727954

Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing the idlest CPU

From Thomas Gleixner <tglx@linutronix.de>
Newsgroups linux.kernel
Subject Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing the idlest CPU
Date 2017-09-07 09:00 +0200
Message-ID <umYX7-4NP-9@gated-at.bofh.it> (permalink)
References (3 earlier) <umzYL-4rE-11@gated-at.bofh.it> <umBQR-5RB-3@gated-at.bofh.it> <umMCB-53y-1@gated-at.bofh.it> <umY14-47k-7@gated-at.bofh.it> <umYu6-4DP-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, 6 Sep 2017, Dan Williams wrote:
> On Wed, Sep 6, 2017 at 10:59 PM, Thomas Gleixner <tglx@linutronix.de> wrote:
> >> commit 7c9ae7f053e9e896c24fd23595ba369a5fe322e1
> >
> > -ENOSUCHCOMMIT
> 
> Sorry, that's still pending in -next.

Ok.

> >> Author: Carolyn Wyborny <carolyn.wyborny@intel.com>
> >> Date:   Tue Jun 20 15:16:53 2017 -0700
> >>
> >>     i40e: Fix for trace found with S4 state
> >>
> >>     This patch fixes a problem found in systems when entering
> >>     S4 state.  This patch fixes the problem by ensuring that
> >>     the misc vector's IRQ is disabled as well.  Without this
> >>     patch a stack trace can be seen upon entering S4 state.

Btw. This changelog is pretty useless.....

> >> However this seems like something that should be handled generically
> >> in the irq-core especially since commit c5cb83bb337c
> >> "genirq/cpuhotplug: Handle managed IRQs on CPU hotplug" was headed in
> >> that direction. It's otherwise non-obvious when a driver needs to
> >> release and re-acquire interrupts or be reworked to use managed
> >> interrupts.
> >
> > There are two problems here:
> >
> > 1) The driver allocates 300 interrupts and uses exactly 8 randomly chosen
> >    ones.
> >
> > 2) It's not using the managed affinity mechanics, so the interrupts cannot
> >    be sanely handled by the kernel, neither affinity wise nor at hotplug
> >    time.
> 
> Ok, this driver is an obvious candidate, but is there a general
> guideline of when a driver must use affinity management? Should we be
> emitting a message when a driver exceeds a certain threshold of
> unmanaged interrupts to flag this in the future?

I guess everything which uses multi queues and therefor allocates 8+
vectors is something which falls into that category.

Aside of that, drivers should be sane in terms of allocations. Allocating
metric tons of interrupts for nothing is not really a sign of a proper
thought out resource management.

Thanks,

	tglx

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing the idlest CPU Chen Yu <yu.c.chen@intel.com> - 2017-09-01 07:10 +0200
  Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing  the idlest CPU Thomas Gleixner <tglx@linutronix.de> - 2017-09-03 20:20 +0200
    RFD: x86: Sanitize the vector allocator Thomas Gleixner <tglx@linutronix.de> - 2017-09-03 21:20 +0200
    Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing  the idlest CPU Thomas Gleixner <tglx@linutronix.de> - 2017-09-06 01:00 +0200
      Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing the  idlest CPU Yu Chen <yu.c.chen@intel.com> - 2017-09-06 06:40 +0200
        Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing  the idlest CPU Thomas Gleixner <tglx@linutronix.de> - 2017-09-06 10:10 +0200
          Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing  the idlest CPU Thomas Gleixner <tglx@linutronix.de> - 2017-09-07 08:00 +0200
            Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing the  idlest CPU Yu Chen <yu.c.chen@intel.com> - 2017-09-07 10:40 +0200
              Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing  the idlest CPU Thomas Gleixner <tglx@linutronix.de> - 2017-09-07 11:50 +0200
    Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing the  idlest CPU Yu Chen <yu.c.chen@intel.com> - 2017-09-06 06:20 +0200
      Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing         the idlest CPU Christoph Hellwig <hch@lst.de> - 2017-09-06 08:20 +0200
        Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing the  idlest CPU Dan Williams <dan.j.williams@intel.com> - 2017-09-06 19:50 +0200
          Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing the  idlest CPU Yu Chen <yu.c.chen@intel.com> - 2017-09-07 05:00 +0200
          Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing  the idlest CPU Thomas Gleixner <tglx@linutronix.de> - 2017-09-07 08:00 +0200
            Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing the  idlest CPU Dan Williams <dan.j.williams@intel.com> - 2017-09-07 08:30 +0200
              Re: [PATCH 4/4][RFC v2] x86/apic: Spread the vectors by choosing  the idlest CPU Thomas Gleixner <tglx@linutronix.de> - 2017-09-07 09:00 +0200

csiph-web