Skip to content

Taskset: check first whether affinity is settable

Carsten Emde util-linux 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest1 patch 2 repliesIn review
  2. v11 patch 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1Taskset: check first whether affinity is settableschedutils/taskset.c+53 -02 replies

Reviews trailers per patch

The patch has no Reviewed-by or Acked-by.

PatchCarsten Emde
1/1T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/1] Taskset: check first whether affinity is settable

Sorry, need v2, forgot that task commands may have spaces nowadays.

Current version successfully tested with various commands:

# taskset -p 3fff 3
pid 3's current affinity mask: ffff
warning: affinity cannot be set due to PF_NO_SETAFFINITY flag set
taskset: failed to set pid 3's affinity: Invalid argument

# Command "PCIe PME"

# taskset -p 3fff 191
pid 191's current affinity mask: 8
pid 191's new affinity mask: 3fff