JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... t_macros (7) */ #include < pthread.h > int pthread_setaffinity_np(pthread_t thread , size_t cpusetsize , const cpu_set_t * cpuset ); int pthread_getaffinity_np(pthread_t thread , size_t cpusetsize , cpu_set_t * cpuset ); ... -pthread でコンパイルしてリンクする。 説明 pthread_setaffinity_np () 関数は、スレッド thread の CPU affinity マスクに cpuset が指す CPU 集合を設定する。呼び出しが成功し、 そのスレッドが現在 cpuset で指定された CPU 上でが実行されていない 場合は、ス ... レッドは指定された CPU のいずれかに移動される。 pthread_getaffinity_np () 関数は、スレッド thread の CPU affinity マスクを、 cpuset が指すバッファーに入れて返す。 CPU affinity マスクの詳細については、 sched_setaffinity (2) を参照してほしい。 CPU 集合の操 ... ... t_macros (7) */ #include < pthread.h > int pthread_setaffinity_np(pthread_t thread , size_t cpusetsize , const cpu_set_t * cpuset ); int pthread_getaffinity_np(pthread_t thread , size_t cpusetsize , cpu_set_t * cpuset ); ... -pthread でコンパイルしてリンクする。 説明 pthread_setaffinity_np () 関数は、スレッド thread の CPU affinity マスクに cpuset が指す CPU 集合を設定する。呼び出しが成功し、 そのスレッドが現在 cpuset で指定された CPU 上でが実行されていない 場合は、ス ... レッドは指定された CPU のいずれかに移動される。 pthread_getaffinity_np () 関数は、スレッド thread の CPU affinity マスクを、 cpuset が指すバッファーに入れて返す。 CPU affinity マスクの詳細については、 sched_setaffinity (2) を参照してほしい。 CPU 集合の操 ... ... CE /* See feature_test_macros (7) */ #include < pthread.h > int pthread_attr_setaffinity_np(pthread_attr_t * attr , size_t cpusetsize , const cpu_set_t * cpuset ); int pthread_attr_getaffinity_np(const pthread_attr_t * attr , size_t cpusetsize , cpu_se ... t_t * cpuset ); -pthread でコンパイルしてリンクする。 説明 pthread_attr_setaffinity_np () 関数は、 attr が参照するスレッド属性オブジェク ... トの CPU affinity マスク属性を cpuset で指定された値に設定する。 この属性により、スレッド属性オブジェクト attr を使って 作成されたスレッドの CPU affinity マスク ... ... CE /* See feature_test_macros (7) */ #include < pthread.h > int pthread_attr_setaffinity_np(pthread_attr_t * attr , size_t cpusetsize , const cpu_set_t * cpuset ); int pthread_attr_getaffinity_np(const pthread_attr_t * attr , size_t cpusetsize , cpu_se ... t_t * cpuset ); -pthread でコンパイルしてリンクする。 説明 pthread_attr_setaffinity_np () 関数は、 attr が参照するスレッド属性オブジェク ... トの CPU affinity マスク属性を cpuset で指定された値に設定する。 この属性により、スレッド属性オブジェクト attr を使って 作成されたスレッドの CPU affinity マスク ... ... 照 */ #include < sched.h > int sched_setaffinity(pid_t pid , size_t cpusetsize , const cpu_set_t * mask ); int sched_getaffinity(pid_t pid , size_t cpusetsize , cpu_set_t * mask ); 説明 スレッドの ... が pid のスレッドの CPU affinity マスクを mask で指定された値に設定する。 pid が 0 の場合、呼び出し元スレッドが使われる。 cpusetsize 引き数には mask が指すデータの長さ (バイト単位) である。 通常は、この引き数には sizeof(cpu_set_t) を指定すればよい。 p ... れる。 sched_getaffinity () は、 スレッド ID が pid のスレッドの affinity マスクを mask が指す cpu_set_t 構造体に書き込む。 cpusetsize 引き数には mask の (バイト単位の) 大きさを指定する。 返り値 成功した場合、 sched_setaffinity () と sched_getaffinity ( ... ... 照 */ #include < sched.h > int sched_setaffinity(pid_t pid , size_t cpusetsize , const cpu_set_t * mask ); int sched_getaffinity(pid_t pid , size_t cpusetsize , cpu_set_t * mask ); 説明 スレッドの ... が pid のスレッドの CPU affinity マスクを mask で指定された値に設定する。 pid が 0 の場合、呼び出し元スレッドが使われる。 cpusetsize 引き数には mask が指すデータの長さ (バイト単位) である。 通常は、この引き数には sizeof(cpu_set_t) を指定すればよい。 p ... れる。 sched_getaffinity () は、 スレッド ID が pid のスレッドの affinity マスクを mask が指す cpu_set_t 構造体に書き込む。 cpusetsize 引き数には mask の (バイト単位の) 大きさを指定する。 返り値 成功した場合、 sched_setaffinity () と sched_getaffinity ( ... ... ES (Linux 2.6.26 以降) 空でない nodemask は、物理ノード ID である。 Linux では、そのプロセスが異なる CPU 集合コンテキスト (cpuset context) に移動した場合でも、そのプロセスの現在の CPU 集合コンテキストで 許可されているノード集合が変化した場合でも、 node ... m the "local node" whenever memory for this node is available. If the "local node" is not allowed by the process's current cpuset context, the kernel will try to allocate memory from other nodes. The kernel will allocate memory from the "local node" wh ... enever it becomes allowed by the process's current cpuset context. スレッドのメモリーポリシーは execve (2) の前後で保持され、 fork (2) や clone (2) を使って作成された子スレッドに継 ... ... ES (Linux-2.6.26 以降) 空でない nodemask は、物理ノード ID である。 Linux では、そのスレッドが異なる CPU 集合コンテキスト (cpuset context) に移動した場合でも、そのスレッドの現在の CPU 集合コンテキストで 許可されているノード集合が変化した場合でも、 node ... om the "local node" whenever memory for this node is available. If the "local node" is not allowed by the thread's current cpuset context, the kernel will try to allocate memory from other nodes. The kernel will allocate memory from the "local node" wh ... enever it becomes allowed by the thread's current cpuset context. By contrast, MPOL_DEFAULT reverts to the memory policy of the thread (which may be set via set_mempolicy (2)); th ... ... oup の各階層についてエントリーが 1 つあり、 各エントリーは以下の形式のコロン区切りのフィールドで構成される。 5:cpuacct,cpu,cpuset:/daemons コロン区切りの各フィールドは、左から右の順で、以下の意味を持つ。 1. 階層 ID 番号 2. その階層に関連付けたサブシステ ... used to rename threads other than the caller. /proc/[pid]/coredump_filter (Linux 2.6.23 以降) core (5) 参照。 /proc/[pid]/cpuset (Linux 2.6.12 以降) cpuset (7) 参照。 /proc/[pid]/cwd プロセスのカレントワーキングディレクトリへのシンボリックリンク。 例え ... ry depends on the context in which the OOM-killer was called. If it is due to the memory assigned to the allocating task's cpuset being exhausted, the allowed memory represents the set of mems assigned to that cpuset (see cpuset (7)). If it is due to a ... ... oup の各階層についてエントリーが 1 つあり、 各エントリーは以下の形式のコロン区切りのフィールドで構成される。 5:cpuacct,cpu,cpuset:/daemons コロン区切りの各フィールドは、左から右の順で、以下の意味を持つ。 1. 階層 ID 番号 2. その階層に関連付けたサブシステ ... used to rename threads other than the caller. /proc/[pid]/coredump_filter (Linux 2.6.23 以降) core (5) 参照。 /proc/[pid]/cpuset (Linux 2.6.12 以降) cpuset (7) 参照。 /proc/[pid]/cwd プロセスのカレントワーキングディレクトリへのシンボリックリンク。 例え ... ry depends on the context in which the OOM-killer was called. If it is due to the memory assigned to the allocating task's cpuset being exhausted, the allowed memory represents the set of mems assigned to that cpuset (see cpuset (7)). If it is due to a ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。