Thread (8 messages) read the whole thread 8 messages, 4 authors, 2019-06-13

Re: [PATCH v2] cpuset: restore sanity to cpuset_cpus_allowed_fallback()

From: Michal Koutný <mkoutny@suse.com>
Date: 2019-05-21 14:34:18
Also in: lkml

On Tue, Apr 09, 2019 at 04:40:03PM -0400, Joel Savitz [off-list ref] wrote:
	$ grep Cpus /proc/$$/status
	Cpus_allowed:	ff
	Cpus_allowed_list:	0-7
(a)
 
	$ taskset -p 4 $$
	pid 19202's current affinity mask: f
	pid 19202's new affinity mask: 4

	$ grep Cpus /proc/self/status
	Cpus_allowed:	04
	Cpus_allowed_list:	2

	# echo off > /sys/devices/system/cpu/cpu2/online
	$ grep Cpus /proc/$$/status
	Cpus_allowed:	0b
	Cpus_allowed_list:	0-1,3
I'm confused where this value comes from, I must be missing something.

Joel, is the task in question put into a cpuset with 0xf CPUs only (at
point (a))? Or are the CPUs 4-7 offlined as well?

Thanks,
Michal
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help