Bash-Linux.com : Le SHELL pour les nuls

  Actuellement 50 lignes de commande et 1472 man disponibles
login as: root
root@213.186.33.18's password:
Last login: Mon May 28 21:39:56 2012 from 38.107.179.230
[root@bash-linux ~] # echo "Bienvenue sur Bash-Linux.com"_
 Manuel des commandes UNIX (man) Version anglaise

Indiquez la fonction :

Man Get_mempolicy en anglais

GET_MEMPOLICY(2) Linux Programmer's Manual GET_MEMPOLICY(2)
 
NAME


get_mempolicy - Retrieve NUMA memory policy for a process
 
SYNOPSIS


#include int get_mempolicy(int *mode, unsigned long *nodemask, unsigned long maxnode, unsigned long addr, unsigned long flags); Link with -lnuma
 
DESCRIPTION


get_mempolicy() retrieves the NUMA policy of the calling process or of a memory address, depending on the setting of flags. A NUMA machine has different memory controllers with different dis- tances to specific CPUs. The memory policy defines from which node memory is allocated for the process. If flags is specified as 0, then information about the calling pro- cess's default policy (as set by set_mempolicy(2)) is returned. If flags specifies MPOL_F_ADDR, then information is returned about the policy governing the memory address given in addr. This policy may be different from the process's default policy if mbind(2) or one of the helper functions described in numa(3) has been used to establish a pol- icy for the memory range containing addr. If the mode argument is not NULL, then get_mempolicy() will store the policy mode of the requested NUMA policy in the location pointed to by this argument. If nodemask is not NULL, then the nodemask associated with the policy will be stored in the location pointed to by this argu- ment. maxnode specifies the number of node IDs that can be stored into nodemask--that is, the maximum node ID plus one. The value specified by maxnode is always rounded to a multiple of sizeof(unsigned long). If flags specifies both MPOL_F_NODE and MPOL_F_ADDR, get_mempolicy() will return the node ID of the node on which the address addr is allo- cated into the location pointed to by mode. If no page has yet been allocated for the specified address, get_mempolicy() will allocate a page as if the process had performed a read [load] access to that address, and return the ID of the node where that page was allocated. If flags specifies MPOL_F_NODE, but not MPOL_F_ADDR, and the process's current policy is MPOL_INTERLEAVE, then get_mempolicy() will return in the location pointed to by a non-NULL mode argument, the node ID of the next node that will be used for interleaving of internal kernel pages allocated on behalf of the process. These allocations include pages for memory mapped files in process memory ranges mapped using the mmap(2) call with the MAP_PRIVATE flag for read accesses, and in memory ranges mapped with the MAP_SHARED flag for all accesses. Other flag values are reserved. For an overview of the possible policies see set_mempolicy(2).
 
RETURN VALUE


On success, get_mempolicy() returns 0; on error, -1 is returned and errno is set to indicate the error.
 
ERRORS


EFAULT Part of all of the memory range specified by nodemask and maxn- ode points outside your accessible address space. EINVAL The value specified by maxnode is less than the number of node IDs supported by the system. Or flags specified values other than MPOL_F_NODE or MPOL_F_ADDR; or flags specified MPOL_F_ADDR and addr is NULL, or flags did not specify MPOL_F_ADDR and addr is not NULL. Or, flags specified MPOL_F_NODE but not MPOL_F_ADDR and the current process policy is not MPOL_INTER- LEAVE. (And there are other EINVAL cases.)
 
CONFORMING TO


This system call is Linux-specific.
 
NOTES


If the mode of the process policy or the policy governing allocations at the specified address is MPOL_PREFERRED and this policy was installed with an empty nodemask--specifying local allocation, get_mem- policy() will return the mask of on-line node IDs in the location pointed to by a non-NULL nodemask argument. This mask does not take into consideration any administratively imposed restrictions on the process's context. Versions and Library Support See mbind(2).
 
SEE ALSO


getcpu(2), mbind(2), mmap(2), set_mempolicy(2), numa(3), numactl(8)
 
COLOPHON


This page is part of release 3.05 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2007-08-27 GET_MEMPOLICY(2)


 Dernières recherches
Man  en anglais Man get_mempolicy en anglaisMan  en français Man get_mempolicy en français
Man  en anglais Man get_current_dir_name en anglaisMan  en français Man get_current_dir_name en français
Man  en anglais Man get en anglaisMan  en français Man get en français
Man  en anglais Man genrsa en anglaisMan  en français Man genrsa en français
Man  en anglais Man loadkeys en anglaisMan  en français Man loadkeys en français
Man  en anglais Man generic en anglaisMan  en français Man generic en français
Man  en anglais Man gendsa en anglaisMan  en français Man gendsa en français
Man  en anglais Man fwscanf en anglaisMan  en français Man fwscanf en français
Man  en anglais Man fwrite en anglaisMan  en français Man fwrite en français
Man  en anglais Man fwprintf en anglaisMan  en français Man fwprintf en français
Man  en anglais Man groupdel en anglaisMan  en français Man groupdel en français
Man  en anglais Man fwide en anglaisMan  en français Man fwide en français
Man  en anglais Man futimesat en anglaisMan  en français Man futimesat en français
Man  en anglais Man futimes en anglaisMan  en français Man futimes en français
Man  en anglais Man futimens en anglaisMan  en français Man futimens en français

 Recherche

Dans ce moteur de recherche, vous pouvez taper directement votre besoin, en une phrase normale, humaine.
Exemple : vous cherchez comment remplacer un mot par un autre dans tous les fichiers d'un certain dossier. Vous pouvez écrire "Comment remplacer un mot par un autre dans tous les fichiers d'un dossier". Le moteur vous ramenera les résultats en fonction de leur pertinence.
Vous pouvez bien sûr ne chercher qu'un seul mot-clé, par exemple "find".
 Toutes les lignes de code
Par popularité
Par fonction
Recherche avancée
 Les logiciels SHELL/SSH
Putty
Astuces Bash
Faire du SHELL avec PHP!
 La doc officielle
Les man Linux en français
Les man Linux en anglais
 Proposer vos bash
Partagez vos lignes!
 Les requêtes
Déposer une requête
Voir/répondre à une requête
 Quelques sites interessants
Bons sites pour apprendre
 Rechercher