lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 14 Aug 2019 16:40:41 +0800
From:   Ming Lei <>
To:     Thomas Gleixner <>
Cc:, Ming Lei <>,
        Jens Axboe <>, Christoph Hellwig <>,
        Keith Busch <>,,
        Jon Derrick <>
Subject: [PATCH V4 0/3] genriq/affinity: Make vectors allocation fair


The 1st  patch enhances one warning check.

The 2nd patch makes __irq_build_affinity_masks() more reliable, such as,
all nodes can be covered in the spread.

The 3rd patch spread vectors on node according to the ratio of this node's
CPU number to number of all remaining CPUs, then vectors assignment can
become more fair. Meantime, the warning report from Jon Derrick can be

Please review & comment!

	- provide proof why number of allocated vectors for each node is <= CPU
	  count of this node

	- re-order the patchset
	- add helper of irq_spread_vectors_on_node()
	- handle vector spread correctly in case that numvecs is > ncpus
	- return -ENOMEM to API's caller

	- add patch3
	- start to allocate vectors from node with minimized CPU number,
	  then every node is guaranteed to be allocated at least one vector.
	- avoid cross node spread

Ming Lei (3):
  genirq/affinity: Enhance warning check
  genirq/affinity: Improve __irq_build_affinity_masks()
  genirq/affinity: Spread vectors on node according to nr_cpu ratio

 kernel/irq/affinity.c | 243 ++++++++++++++++++++++++++++++++++++------
 1 file changed, 209 insertions(+), 34 deletions(-)

Cc: Jens Axboe <>
Cc: Christoph Hellwig <>
Cc: Keith Busch <>
Cc: Jon Derrick <>

Powered by blists - more mailing lists