Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   cpuset    ( 7 )

ограничить процессы подмножествами процессоров и узлов памяти (confine processes to processor and memory node subsets)

Ошибки (Error)

The Linux kernel implementation of cpusets sets errno to specify the reason for a failed system call affecting cpusets.

The possible errno settings and their meaning when set on a failed cpuset call are as listed below.

E2BIG Attempted a write(2) on a special cpuset file with a length larger than some kernel-determined upper limit on the length of such writes.

EACCES Attempted to write(2) the process ID (PID) of a process to a cpuset tasks file when one lacks permission to move that process.

EACCES Attempted to add, using write(2), a CPU or memory node to a cpuset, when that CPU or memory node was not already in its parent.

EACCES Attempted to set, using write(2), cpuset.cpu_exclusive or cpuset.mem_exclusive on a cpuset whose parent lacks the same setting.

EACCES Attempted to write(2) a cpuset.memory_pressure file.

EACCES Attempted to create a file in a cpuset directory.

EBUSY Attempted to remove, using rmdir(2), a cpuset with attached processes.

EBUSY Attempted to remove, using rmdir(2), a cpuset with child cpusets.

EBUSY Attempted to remove a CPU or memory node from a cpuset that is also in a child of that cpuset.

EEXIST Attempted to create, using mkdir(2), a cpuset that already exists.

EEXIST Attempted to rename(2) a cpuset to a name that already exists.

EFAULT Attempted to read(2) or write(2) a cpuset file using a buffer that is outside the writing processes accessible address space.

EINVAL Attempted to change a cpuset, using write(2), in a way that would violate a cpu_exclusive or mem_exclusive attribute of that cpuset or any of its siblings.

EINVAL Attempted to write(2) an empty cpuset.cpus or cpuset.mems list to a cpuset which has attached processes or child cpusets.

EINVAL Attempted to write(2) a cpuset.cpus or cpuset.mems list which included a range with the second number smaller than the first number.

EINVAL Attempted to write(2) a cpuset.cpus or cpuset.mems list which included an invalid character in the string.

EINVAL Attempted to write(2) a list to a cpuset.cpus file that did not include any online CPUs.

EINVAL Attempted to write(2) a list to a cpuset.mems file that did not include any online memory nodes.

EINVAL Attempted to write(2) a list to a cpuset.mems file that included a node that held no memory.

EIO Attempted to write(2) a string to a cpuset tasks file that does not begin with an ASCII decimal integer.

EIO Attempted to rename(2) a cpuset into a different directory.

ENAMETOOLONG Attempted to read(2) a /proc/<pid>/cpuset file for a cpuset path that is longer than the kernel page size.

ENAMETOOLONG Attempted to create, using mkdir(2), a cpuset whose base directory name is longer than 255 characters.

ENAMETOOLONG Attempted to create, using mkdir(2), a cpuset whose full pathname, including the mount point (typically "/dev/cpuset/") prefix, is longer than 4095 characters.

ENODEV The cpuset was removed by another process at the same time as a write(2) was attempted on one of the pseudo-files in the cpuset directory.

ENOENT Attempted to create, using mkdir(2), a cpuset in a parent cpuset that doesn't exist.

ENOENT Attempted to access(2) or open(2) a nonexistent file in a cpuset directory.

ENOMEM Insufficient memory is available within the kernel; can occur on a variety of system calls affecting cpusets, but only if the system is extremely short of memory.

ENOSPC Attempted to write(2) the process ID (PID) of a process to a cpuset tasks file when the cpuset had an empty cpuset.cpus or empty cpuset.mems setting.

ENOSPC Attempted to write(2) an empty cpuset.cpus or cpuset.mems setting to a cpuset that has tasks attached.

ENOTDIR Attempted to rename(2) a nonexistent cpuset.

EPERM Attempted to remove a file from a cpuset directory.

ERANGE Specified a cpuset.cpus or cpuset.mems list to the kernel which included a number too large for the kernel to set in its bit masks.

ESRCH Attempted to write(2) the process ID (PID) of a nonexistent process to a cpuset tasks file.