JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... k , unsigned long maxnode , void * addr , unsigned long flags ); -lnuma でリンクする。 説明 get_mempolicy () は、呼び出し元スレッドもしくは指定されたメモリーアドレスの NUMA ポリシーを flags の設定に従って取得する。 NUMA (非対称メ ... かを定めるものである。 If flags is specified as 0, then information about the calling thread's default policy (as set by set_mempolicy (2)) is returned, in the buffers pointed to by mode and nodemask . The value returned in these arguments may be used to re ... store the thread's policy to its state at the time of the call to get_mempolicy () using set_mempolicy (2). When flags is 0, addr must be specified as NULL. flags に MPOL_F_MEMS_ALLOWED (Linux 2.6.24 以 ... ... , const unsigned long * nodemask , unsigned long maxnode ); -lnuma でリンクする。 説明 set_mempolicy () は、呼び出し元スレッドの NUMA ポリシーを policy に設定する。 NUMA ポリシーはポリシーモードと 0 個以上のノードから構成さ ... 異なり、距離も異なっている。 メモリーポリシーは、どのノードからメモリーをそのスレッドに 割り当てるかを定めるものである。 set_mempolicy () は、スレッドのデフォルトポリシーを定める。スレッドのポリシーは、 mbind (2) で設定される特定のポリシーにより制御されるメ ... ーは execve (2) の前後で保持され、 fork (2) や clone (2) を使って作成された子スレッドに継承される。 返り値 成功すると、 set_mempolicy () は 0 を返す。エラーの場合、-1 を返し、 errno にエラーを示す値を設定する。 エラー EFAULT nodemask と maxnode で指定された ... ... に対して MPOL_DEFAULT が適用された場合、スレッドのメモリポリシーを使用することを意味する。 スレッドのメモリポリシーは、 set_mempolicy (2) で変更されているかもしれない。 スレッドのメモリポリシーのモードも MPOL_DEFAULT の場合、システム全体のデフォルトポリシー ... d's current cpuset context. By contrast, MPOL_DEFAULT reverts to the memory policy of the thread (which may be set via set_mempolicy (2)); that policy may be something other than "local allocation". flags に MPOL_MF_STRICT が 指定され、 mode が MPOL_DEFAU ... ラグが指定されてマップされたメモリーマップファイルの領域では サポートされていない。 MPOL_DEFAULT モードは、 mbind () と set_mempolicy (2) で異なる効果を持つことができる。 set_mempolicy (2) で MPOL_DEFAULT が指定された場合、そのスレッドのメモリポリシーはシス ... ... 7) を参照。 呼び出し元プロセスの CPU 集合で許可されているノード集合を取得するには、 MPOL_F_MEMS_ALLOWED フラグを付けて get_mempolicy (2) を使うこと。 この情報は、手動/自動に限らず CPU 集合の再構成によりいつでも 変更されることがある点に注意してほしい。 mig ... たアドレスに対して設定されたメモリーポリシー ( mbind (2) 参照) や 指定されたプロセスに対して設定されたメモリーポリシー ( set_mempolicy (2) 参照) に違反する状況になる可能性がある。 すなわち、メモリーポリシーによる制約は migrate_pages () による移動先 ノードの ... イル < numaif.h > は glibc には含まれておらず、 libnuma-devel か同様のパッケージをインストールする必要がある。 関連項目 get_mempolicy (2), mbind (2), set_mempolicy (2), numa (3), numa_maps (5), cpuset (7), numa (7), migratepages (8), numastat (8) Linux カー ... ... ては numa (7) を参照。 現在の CPU 集合で許可されているノードの集合を取得するには、フラグ MPOL_F_MEMS_ALLOWED を指定して get_mempolicy (2) を使用すればよい。 取得した情報は、CPU 集合の手動または自動での再構成により いつ何時変化してしまうか分からない。 この関 ... たアドレスに対して設定されたメモリーポリシー ( mbind (2) 参照) や指定されたプロセスに対して設定されたメモリーポリシー ( set_mempolicy (2) 参照) に違反してしまう可能性がある。 つまり、メモリーポリシーは move_pages () で使われる移動先ノードを制限しないという ... イル < numaif.h > は glibc には含まれておらず、 libnuma-devel か同様のパッケージをインストールする必要がある。 関連項目 get_mempolicy (2), mbind (2), set_mempolicy (2), numa (3), numa_maps (5), cpuset (7), numa (7), migratepages (8), numastat (8) この文書に ... ... くアクセスすることができる。 NUMA システムコール Linux カーネルには、次に示す NUMA 関連のシステムコールが実装されている: get_mempolicy (2), mbind (2), migrate_pages (2), move_pages (2), set_mempolicy (2). ただし、アプリケーションは通常は libnuma が提供するイ ... リビューションによっては、開発用のライブラリとヘッダーファイルは 別パッケージ numactl-devel で提供されている。 関連項目 get_mempolicy (2), mbind (2), move_pages (2), set_mempolicy (2), numa (3), cpuset (7), numactl (8) この文書について この man ページは Li ... ... の移動時 に問題になると考えられ、この引数は今では無視されるようになっている。 関連項目 mbind (2), sched_setaffinity (2), set_mempolicy (2), sched_getcpu (3), cpuset (7), vdso (7) この文書について この man ページは Linux man-pages プロジェクトのリリース 5.10 ... ... nc (2) 1.0 ftruncate (2) 1.0 ftruncate64 (2) 2.4 futex (2) 2.6 futimesat (2) 2.6.16 get_kernel_syms (2) 1.0 2.6 で削除 get_mempolicy (2) 2.6.6 get_robust_list (2) 2.6.17 get_thread_area (2) 2.6 get_tls (2) 4.15 ARM OABI only, has __ARM_NR prefix getcpu (2 ... endmmsg (2) 3.0 sendmsg (2) 2.0 socketcall (2) の「注意」の節を参照 sendto (2) 2.0 socketcall (2) の「注意」の節を参照 set_mempolicy (2) 2.6.6 set_robust_list (2) 2.6.17 set_thread_area (2) 2.6 set_tid_address (2) 2.6 set_tls (2) 2.6.11 ARM OABI/EABI only ... ... being exhausted, the allowed memory represents the set of mems assigned to that cpuset (see cpuset (7)). If it is due to a mempolicy's node(s) being exhausted, the allowed memory represents the set of mempolicy nodes. If it is due to a memory limit (or sw ... _adj value of +500, for example, is roughly equivalent to allowing the remainder of tasks sharing the same system, cpuset, mempolicy, or memory controller resources to use at least 50% more memory. A value of -500, on the other hand, would be roughly equi ... ... being exhausted, the allowed memory represents the set of mems assigned to that cpuset (see cpuset (7)). If it is due to a mempolicy's node(s) being exhausted, the allowed memory represents the set of mempolicy nodes. If it is due to a memory limit (or sw ... _adj value of +500, for example, is roughly equivalent to allowing the remainder of tasks sharing the same system, cpuset, mempolicy, or memory controller resources to use at least 50% more memory. A value of -500, on the other hand, would be roughly equi ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。