Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Fix CPU hotplug #482

Closed
wants to merge 1 commit into from
Closed

Fix CPU hotplug #482

wants to merge 1 commit into from

Conversation

behlendorf
Copy link
Contributor

Allocate a kmem cache magazine for every possible CPU which might
be added to the system. This ensures that when one of these CPUs
is enabled it can be safely used immediately.

For many systems the number of online CPUs is identical to the
number of present CPUs so this does imply an increased memory
footprint. In fact, dynamically allocating the array of magazine
pointers instead of using the worst case NR_CPUS can end up
decreasing our memory footprint.

Signed-off-by: Brian Behlendorf [email protected]

Allocate a kmem cache magazine for every possible CPU which might
be added to the system.  This ensures that when one of these CPUs
is enabled it can be safely used immediately.

For many systems the number of online CPUs is identical to the
number of present CPUs so this does imply an increased memory
footprint.  In fact, dynamically allocating the array of magazine
pointers instead of using the worst case NR_CPUS can end up
decreasing our memory footprint.

Signed-off-by: Brian Behlendorf <[email protected]>
@nedbass
Copy link
Contributor

nedbass commented Oct 12, 2015

LGTM

behlendorf added a commit that referenced this pull request Oct 14, 2015
Allocate a kmem cache magazine for every possible CPU which might
be added to the system.  This ensures that when one of these CPUs
is enabled it can be safely used immediately.

For many systems the number of online CPUs is identical to the
number of present CPUs so this does imply an increased memory
footprint.  In fact, dynamically allocating the array of magazine
pointers instead of using the worst case NR_CPUS can end up
decreasing our memory footprint.

Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ned Bass <[email protected]>
Closes #482
MorpheusTeam pushed a commit to Xyratex/lustre-stable that referenced this pull request Dec 3, 2015
Bug Fixes

* Fix CPU hotplug openzfs/spl#482
* Disable dynamic taskqs by default to avoid deadlock
  openzfs/spl#484
* Don't import all visible pools in zfs-import init script
  openzfs/zfs#3777
* Fix use-after-free in vdev_disk_physio_completion
  openzfs/zfs#3920
* Fix avl_is_empty(&dn->dn_dbufs) assertion openzfs/zfs#3865

Signed-off-by: Nathaniel Clark <[email protected]>
Change-Id: I36347630be2506bee4ff0a05f1b236ba2ba7a0ae
Reviewed-on: http://review.whamcloud.com/16877
Reviewed-by: Alex Zhuravlev <[email protected]>
Reviewed-by: Andreas Dilger <[email protected]>
Tested-by: Jenkins
Tested-by: Maloo <[email protected]>
@behlendorf behlendorf added this to the 0.6.5 milestone Mar 23, 2016
@behlendorf behlendorf deleted the hotplug branch July 28, 2017 22:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants