mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
cpuset: Add package comment
Describe use cases (node IDs, HT siblings, etc) Call out novelty (Linux CPU list parse/dump) Describe future work (relax immutable, refactor to use 'set')
This commit is contained in:
parent
cbb985a310
commit
5533e49e2c
@ -14,6 +14,15 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// Package cpuset represents a collection of CPUs in a 'set' data structure.
|
||||||
|
//
|
||||||
|
// It can be used to represent core IDs, hyper thread siblings, CPU nodes, or processor IDs.
|
||||||
|
//
|
||||||
|
// The only special thing about this package is that
|
||||||
|
// methods are provided to convert back and forth from Linux 'list' syntax.
|
||||||
|
// See http://man7.org/linux/man-pages/man7/cpuset.7.html#FORMATS for details.
|
||||||
|
//
|
||||||
|
// Future work can migrate this to use a 'set' library, and relax the dubious 'immutable' property.
|
||||||
package cpuset
|
package cpuset
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
Loading…
Reference in New Issue
Block a user