| 1 |
# French translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003. |
| 5 |
# Stéphan Rafin <[email protected]>, 2002. |
| 6 |
# Thierry Vignaud <[email protected]>, 1999, 2002. |
| 7 |
# François Micaux, 2002. |
| 8 |
# Alain Portal <[email protected]>, 2003-2008. |
| 9 |
# Jean-Philippe Guérard <[email protected]>, 2005-2006. |
| 10 |
# Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007. |
| 11 |
# Julien Cristau <[email protected]>, 2006-2007. |
| 12 |
# Thomas Huriaux <[email protected]>, 2006-2008. |
| 13 |
# Nicolas François <[email protected]>, 2006-2008. |
| 14 |
# Florentin Duneau <[email protected]>, 2006-2010. |
| 15 |
# Simon Paillard <[email protected]>, 2006. |
| 16 |
# Denis Barbier <[email protected]>, 2006, 2010. |
| 17 |
# David Prévot <[email protected]>, 2010, 2012, 2013. |
| 18 |
# Cédric Boutillier <[email protected]>, 2011, 2012. |
| 19 |
# Frédéric Hantrais <[email protected]>, 2013, 2014. |
| 20 |
# Jean-Philippe MENGUAL <[email protected]>, 2021-2023. |
| 21 |
msgid "" |
| 22 |
msgstr "" |
| 23 |
"Project-Id-Version: manpages-l10n 4.21.0\n" |
| 24 |
"POT-Creation-Date: 2026-06-05 06:42+0200\n" |
| 25 |
"PO-Revision-Date: 2024-02-27 11:24+0100\n" |
| 26 |
"Last-Translator: Jean-Philippe MENGUAL <[email protected]>\n" |
| 27 |
"Language-Team: French <[email protected]>\n" |
| 28 |
"Language: fr\n" |
| 29 |
"MIME-Version: 1.0\n" |
| 30 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 31 |
"Content-Transfer-Encoding: 8bit\n" |
| 32 |
"Plural-Forms: nplurals=2; plural=n > 1;\n" |
| 33 |
"X-Generator: Lokalize 22.12.3\n" |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 37 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 38 |
#, no-wrap |
| 39 |
msgid "sched_setaffinity" |
| 40 |
msgstr "sched_setaffinity" |
| 41 |
|
| 42 |
#. type: TH |
| 43 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 44 |
#: opensuse-tumbleweed |
| 45 |
#, no-wrap |
| 46 |
msgid "2026-02-08" |
| 47 |
msgstr "8 février 2026" |
| 48 |
|
| 49 |
#. type: TH |
| 50 |
#: archlinux debian-unstable |
| 51 |
#, no-wrap |
| 52 |
msgid "Linux man-pages 6.18" |
| 53 |
msgstr "Pages du manuel de Linux 6.18" |
| 54 |
|
| 55 |
#. type: SH |
| 56 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 57 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 58 |
#, no-wrap |
| 59 |
msgid "NAME" |
| 60 |
msgstr "NOM" |
| 61 |
|
| 62 |
#. type: Plain text |
| 63 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 64 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 65 |
msgid "" |
| 66 |
"sched_setaffinity, sched_getaffinity - set and get a thread's CPU affinity " |
| 67 |
"mask" |
| 68 |
msgstr "" |
| 69 |
"sched_setaffinity, sched_getaffinity - Définir et récupérer le masque " |
| 70 |
"d'affinité CPU d'un thread" |
| 71 |
|
| 72 |
#. type: SH |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "LIBRARY" |
| 77 |
msgstr "BIBLIOTHÈQUE" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 81 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 82 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 83 |
msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)" |
| 84 |
|
| 85 |
#. type: SH |
| 86 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 87 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 88 |
#, no-wrap |
| 89 |
msgid "SYNOPSIS" |
| 90 |
msgstr "SYNOPSIS" |
| 91 |
|
| 92 |
#. type: Plain text |
| 93 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 94 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 95 |
#, no-wrap |
| 96 |
msgid "" |
| 97 |
"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" |
| 98 |
"B<#include E<lt>sched.hE<gt>>\n" |
| 99 |
msgstr "" |
| 100 |
"B<#define _GNU_SOURCE> /* Consultez feature_test_macros(7) */\n" |
| 101 |
"B<#include E<lt>sched.hE<gt>>\n" |
| 102 |
|
| 103 |
#. type: Plain text |
| 104 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 105 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 106 |
#, no-wrap |
| 107 |
msgid "" |
| 108 |
"B<int sched_setaffinity(pid_t >I<pid>B<, size_t >I<cpusetsize>B<,>\n" |
| 109 |
"B< const cpu_set_t *>I<mask>B<);>\n" |
| 110 |
"B<int sched_getaffinity(pid_t >I<pid>B<, size_t >I<cpusetsize>B<,>\n" |
| 111 |
"B< cpu_set_t *>I<mask>B<);>\n" |
| 112 |
msgstr "" |
| 113 |
"B<int sched_setaffinity(pid_t >I<pid>B<, size_t >I<cpusetsize>B<,>\n" |
| 114 |
"B< const cpu_set_t *>I<mask>B<);>\n" |
| 115 |
"B<int sched_getaffinity(pid_t >I<pid>B<, size_t >I<cpusetsize>B<,>\n" |
| 116 |
"B< cpu_set_t *>I<mask>B<);>\n" |
| 117 |
|
| 118 |
#. type: SH |
| 119 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 120 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 121 |
#, no-wrap |
| 122 |
msgid "DESCRIPTION" |
| 123 |
msgstr "DESCRIPTION" |
| 124 |
|
| 125 |
#. type: Plain text |
| 126 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 127 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 128 |
msgid "" |
| 129 |
"A thread's CPU affinity mask determines the set of CPUs on which it is " |
| 130 |
"eligible to run. On a multiprocessor system, setting the CPU affinity mask " |
| 131 |
"can be used to obtain performance benefits. For example, by dedicating one " |
| 132 |
"CPU to a particular thread (i.e., setting the affinity mask of that thread " |
| 133 |
"to specify a single CPU, and setting the affinity mask of all other threads " |
| 134 |
"to exclude that CPU), it is possible to ensure maximum execution speed for " |
| 135 |
"that thread. Restricting a thread to run on a single CPU also avoids the " |
| 136 |
"performance cost caused by the cache invalidation that occurs when a thread " |
| 137 |
"ceases to execute on one CPU and then recommences execution on a different " |
| 138 |
"CPU." |
| 139 |
msgstr "" |
| 140 |
"Le masque d'affinité CPU d'un thread détermine l'ensemble des processeurs " |
| 141 |
"sur lesquels il est susceptible de s'exécuter. Sur un système " |
| 142 |
"multiprocesseur, définir le masque d'affinité CPU permet d'obtenir une " |
| 143 |
"meilleure performance. Par exemple, en dédiant un CPU à un thread " |
| 144 |
"particulier (c'est-à-dire définir le masque d'affinité de ce thread pour " |
| 145 |
"indiquer un seul CPU, et définir le masque d'affinité de tous les autres " |
| 146 |
"threads pour exclure ce CPU), il est possible d'assurer une vitesse " |
| 147 |
"d'exécution maximale pour ce thread. Restreindre un processus pour qu'il ne " |
| 148 |
"s'exécute que sur un seul CPU réduit le coût lié à l'invalidation du cache " |
| 149 |
"qui se produit lorsqu'un thread cesse de s'exécuter sur un CPU puis est " |
| 150 |
"relancé sur un autre CPU." |
| 151 |
|
| 152 |
#. type: Plain text |
| 153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 154 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 155 |
msgid "" |
| 156 |
"A CPU affinity mask is represented by the I<cpu_set_t> structure, a \"CPU " |
| 157 |
"set\", pointed to by I<mask>. A set of macros for manipulating CPU sets is " |
| 158 |
"described in B<CPU_SET>(3)." |
| 159 |
msgstr "" |
| 160 |
"Un masque d'affinité CPU est représenté par la structure I<cpu_set_t>, un " |
| 161 |
"ensemble de CPU (« CPU set »), pointé par I<mask>. Des macros pour manipuler " |
| 162 |
"des ensembles de CPU sont décrites dans B<CPU_SET>(3)." |
| 163 |
|
| 164 |
#. type: Plain text |
| 165 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 166 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 167 |
msgid "" |
| 168 |
"B<sched_setaffinity>() sets the CPU affinity mask of the thread whose ID is " |
| 169 |
"I<pid> to the value specified by I<mask>. If I<pid> is zero, then the " |
| 170 |
"calling thread is used. The argument I<cpusetsize> is the length (in bytes) " |
| 171 |
"of the data pointed to by I<mask>. Normally this argument would be " |
| 172 |
"specified as I<sizeof(cpu_set_t)>." |
| 173 |
msgstr "" |
| 174 |
"B<sched_setaffinity>() définit le masque d'affinité CPU du thread dont " |
| 175 |
"l'identifiant est I<pid> à la valeur donnée par I<mask>. Si I<pid> est 0, le " |
| 176 |
"thread appelant est utilisé. L'argument I<cpusetsize> est la taille (en " |
| 177 |
"octets) de la structure pointée par I<mask>. Normalement, cet argument doit " |
| 178 |
"être spécifié comme I<sizeof(cpu_set_t)>." |
| 179 |
|
| 180 |
#. type: Plain text |
| 181 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 182 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 183 |
msgid "" |
| 184 |
"If the thread specified by I<pid> is not currently running on one of the " |
| 185 |
"CPUs specified in I<mask>, then that thread is migrated to one of the CPUs " |
| 186 |
"specified in I<mask>." |
| 187 |
msgstr "" |
| 188 |
"Si le thread indiqué par I<pid> n'est pas actuellement en cours d'exécution " |
| 189 |
"sur l'un des CPU spécifiés dans I<mask>, alors ce thread est migré vers l'un " |
| 190 |
"des CPU spécifiés dans I<mask>." |
| 191 |
|
| 192 |
#. type: Plain text |
| 193 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 194 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 195 |
msgid "" |
| 196 |
"B<sched_getaffinity>() writes the affinity mask of the thread whose ID is " |
| 197 |
"I<pid> into the I<cpu_set_t> structure pointed to by I<mask>. The " |
| 198 |
"I<cpusetsize> argument specifies the size (in bytes) of I<mask>. If I<pid> " |
| 199 |
"is zero, then the mask of the calling thread is returned." |
| 200 |
msgstr "" |
| 201 |
"La fonction B<sched_getaffinity>() écrit dans la structure I<cpu_set_t> " |
| 202 |
"pointée par I<mask> le masque de préférences du thread I<pid>. L'argument " |
| 203 |
"I<cpusetsize> indique la taille (en octets) de I<mask>. Si I<pid> vaut zéro, " |
| 204 |
"le masque du thread en cours est renvoyé." |
| 205 |
|
| 206 |
#. type: SH |
| 207 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 208 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 209 |
#, no-wrap |
| 210 |
msgid "RETURN VALUE" |
| 211 |
msgstr "VALEUR RENVOYÉE" |
| 212 |
|
| 213 |
#. type: Plain text |
| 214 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 215 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 216 |
msgid "" |
| 217 |
"On success, B<sched_setaffinity>() and B<sched_getaffinity>() return 0 " |
| 218 |
"(but see \"C library/kernel differences\" below, which notes that the " |
| 219 |
"underlying B<sched_getaffinity>() differs in its return value). On " |
| 220 |
"failure, -1 is returned, and I<errno> is set to indicate the error." |
| 221 |
msgstr "" |
| 222 |
"B<sched_setaffinity>() et B<sched_getaffinity>() renvoient B<0> s'ils " |
| 223 |
"réussissent (mais voir « Différences entre la bibliothèque C et le noyau » " |
| 224 |
"ci-dessous, qui explique que le B<sched_getaffinity>() sous-jacent diffère " |
| 225 |
"dans son code de retour). En cas d'échec, B<-1> est renvoyé et I<errno> est " |
| 226 |
"positionné pour indiquer l'erreur." |
| 227 |
|
| 228 |
#. type: SH |
| 229 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 230 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 231 |
#, no-wrap |
| 232 |
msgid "ERRORS" |
| 233 |
msgstr "ERREURS" |
| 234 |
|
| 235 |
#. type: TP |
| 236 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 237 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 238 |
#, no-wrap |
| 239 |
msgid "B<EFAULT>" |
| 240 |
msgstr "B<EFAULT>" |
| 241 |
|
| 242 |
#. type: Plain text |
| 243 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 244 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 245 |
msgid "A supplied memory address was invalid." |
| 246 |
msgstr "Une adresse mémoire fournie n'est pas correcte." |
| 247 |
|
| 248 |
#. type: TP |
| 249 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 250 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 251 |
#, no-wrap |
| 252 |
msgid "B<EINVAL>" |
| 253 |
msgstr "B<EINVAL>" |
| 254 |
|
| 255 |
#. type: Plain text |
| 256 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 257 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 258 |
msgid "" |
| 259 |
"The affinity bit mask I<mask> contains no processors that are currently " |
| 260 |
"physically on the system and permitted to the thread according to any " |
| 261 |
"restrictions that may be imposed by I<cpuset> cgroups or the \"cpuset\" " |
| 262 |
"mechanism described in B<cpuset>(7)." |
| 263 |
msgstr "" |
| 264 |
"Le masque de bits d'affinité I<mask> ne contient pas de processeurs qui " |
| 265 |
"soient actuellement physiquement sur le système et autorisés pour le thread " |
| 266 |
"d'après les restrictions qui peuvent être imposées par les cgroups I<cpuset> " |
| 267 |
"ou le mécanisme « cpuset » décrit dans B<cpuset>(7)." |
| 268 |
|
| 269 |
#. type: Plain text |
| 270 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 271 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 272 |
msgid "" |
| 273 |
"(B<sched_getaffinity>() and, before Linux 2.6.9, B<sched_setaffinity>()) " |
| 274 |
"I<cpusetsize> is smaller than the size of the affinity mask used by the " |
| 275 |
"kernel." |
| 276 |
msgstr "" |
| 277 |
"(B<sched_getaffinity>() et, avant Linux 2.6.9, B<sched_setaffinity>()) " |
| 278 |
"I<cpusetsize> est plus petit que la taille du masque d'affinité utilisé par " |
| 279 |
"le noyau." |
| 280 |
|
| 281 |
#. type: TP |
| 282 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 283 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 284 |
#, no-wrap |
| 285 |
msgid "B<EPERM>" |
| 286 |
msgstr "B<EPERM>" |
| 287 |
|
| 288 |
#. type: Plain text |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
msgid "" |
| 292 |
"(B<sched_setaffinity>()) The calling thread does not have appropriate " |
| 293 |
"privileges. The caller needs an effective user ID equal to the real user ID " |
| 294 |
"or effective user ID of the thread identified by I<pid>, or it must possess " |
| 295 |
"the B<CAP_SYS_NICE> capability in the user namespace of the thread I<pid>." |
| 296 |
msgstr "" |
| 297 |
"(B<sched_setaffinity>()) Le thread appelant n'a pas les privilèges " |
| 298 |
"appropriés. L'appelant doit avoir un UID effectif égal à l'UID effectif ou " |
| 299 |
"réel du thread identifié par I<pid>, ou avoir la capacité B<CAP_SYS_NICE> " |
| 300 |
"dans l'espace de noms de l'utilisateur du thread désigné par I<pid>." |
| 301 |
|
| 302 |
#. type: TP |
| 303 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 304 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 305 |
#, no-wrap |
| 306 |
msgid "B<ESRCH>" |
| 307 |
msgstr "B<ESRCH>" |
| 308 |
|
| 309 |
#. type: Plain text |
| 310 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 311 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 312 |
msgid "The thread whose ID is I<pid> could not be found." |
| 313 |
msgstr "Le thread numéro I<pid> n'existe pas." |
| 314 |
|
| 315 |
#. type: SH |
| 316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 317 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 318 |
#, no-wrap |
| 319 |
msgid "STANDARDS" |
| 320 |
msgstr "NORMES" |
| 321 |
|
| 322 |
#. type: Plain text |
| 323 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 324 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 325 |
msgid "Linux." |
| 326 |
msgstr "Linux." |
| 327 |
|
| 328 |
#. type: SH |
| 329 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 330 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 331 |
#, no-wrap |
| 332 |
msgid "HISTORY" |
| 333 |
msgstr "HISTORIQUE" |
| 334 |
|
| 335 |
#. type: Plain text |
| 336 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 337 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 338 |
msgid "Linux 2.5.8, glibc 2.3." |
| 339 |
msgstr "Linux 2.5.8, glibc 2.3." |
| 340 |
|
| 341 |
#. type: Plain text |
| 342 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 343 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 344 |
msgid "" |
| 345 |
"Initially, the glibc interfaces included a I<cpusetsize> argument, typed as " |
| 346 |
"I<unsigned int>. In glibc 2.3.3, the I<cpusetsize> argument was removed, " |
| 347 |
"but was then restored in glibc 2.3.4, with type I<size_t>." |
| 348 |
msgstr "" |
| 349 |
"Au départ, les interfaces de la glibc avaient un paramètre I<cpusetsize> de " |
| 350 |
"type I<unsigned int>. Dans glibc 2.3.3, ce paramètre a été supprimé, mais il " |
| 351 |
"a été réintroduit dans glibc 2.3.4, avec pour type I<size_t>." |
| 352 |
|
| 353 |
#. type: SH |
| 354 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 355 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 356 |
#, no-wrap |
| 357 |
msgid "NOTES" |
| 358 |
msgstr "NOTES" |
| 359 |
|
| 360 |
#. type: Plain text |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
msgid "" |
| 364 |
"After a call to B<sched_setaffinity>(), the set of CPUs on which the thread " |
| 365 |
"will actually run is the intersection of the set specified in the I<mask> " |
| 366 |
"argument and the set of CPUs actually present on the system. The system may " |
| 367 |
"further restrict the set of CPUs on which the thread runs if the \"cpuset\" " |
| 368 |
"mechanism described in B<cpuset>(7) is being used. These restrictions on " |
| 369 |
"the actual set of CPUs on which the thread will run are silently imposed by " |
| 370 |
"the kernel." |
| 371 |
msgstr "" |
| 372 |
"Après un appel à B<sched_setaffinity>(), l'ensemble des CPU sur lesquels le " |
| 373 |
"thread s'exécutera est l'intersection de l'ensemble spécifié dans le " |
| 374 |
"paramètre I<mask> et l'ensemble des CPU actuellement présents sur le " |
| 375 |
"système. Le système peut restreindre encore plus l'ensemble des CPU sur " |
| 376 |
"lesquels le thread peut tourner si le mécanisme « cpuset », décrit dans " |
| 377 |
"B<cpuset>(7), est utilisé. Ces restrictions sur le véritable ensemble de CPU " |
| 378 |
"sur lesquels le thread peut tourner sont imposées sans avertissement par le " |
| 379 |
"noyau." |
| 380 |
|
| 381 |
#. type: Plain text |
| 382 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 383 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 384 |
msgid "" |
| 385 |
"There are various ways of determining the number of CPUs available on the " |
| 386 |
"system, including: inspecting the contents of I</proc/cpuinfo>; using " |
| 387 |
"B<sysconf>(3) to obtain the values of the B<_SC_NPROCESSORS_CONF> and " |
| 388 |
"B<_SC_NPROCESSORS_ONLN> parameters; and inspecting the list of CPU " |
| 389 |
"directories under I</sys/devices/system/cpu/>." |
| 390 |
msgstr "" |
| 391 |
"Il existe plusieurs manières de déterminer le nombre de processeurs " |
| 392 |
"disponibles sur le système, notamment l'inspection du contenu de I</proc/" |
| 393 |
"cpuinfo>, l'utilisation de B<sysconf>(3) pour avoir les valeurs des " |
| 394 |
"paramètres B<_SC_NPROCESSORS_CONF> et B<_SC_NPROCESSORS_ONLN>, et " |
| 395 |
"l'inspection de la liste des répertoires de processeur dans I</sys/devices/" |
| 396 |
"system/cpu/>." |
| 397 |
|
| 398 |
#. type: Plain text |
| 399 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 400 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 401 |
msgid "B<sched>(7) has a description of the Linux scheduling scheme." |
| 402 |
msgstr "B<sched>(7) décrit les politiques d'ordonnancement sous Linux." |
| 403 |
|
| 404 |
#. type: Plain text |
| 405 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 406 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 407 |
msgid "" |
| 408 |
"The affinity mask is a per-thread attribute that can be adjusted " |
| 409 |
"independently for each of the threads in a thread group. The value returned " |
| 410 |
"from a call to B<gettid>(2) can be passed in the argument I<pid>. " |
| 411 |
"Specifying I<pid> as 0 will set the attribute for the calling thread, and " |
| 412 |
"passing the value returned from a call to B<getpid>(2) will set the " |
| 413 |
"attribute for the main thread of the thread group. (If you are using the " |
| 414 |
"POSIX threads API, then use B<pthread_setaffinity_np>(3) instead of " |
| 415 |
"B<sched_setaffinity>().)" |
| 416 |
msgstr "" |
| 417 |
"Le masque d'affinité est un attribut de thread, qui peut être modifié " |
| 418 |
"indépendamment pour chacun des threads d'un groupe de threads. La valeur " |
| 419 |
"renvoyée par B<gettid>(2) peut être passée dans l'argument I<pid>. Spécifier " |
| 420 |
"un I<pid> de B<0> définira l'attribut pour le thread appelant, et une valeur " |
| 421 |
"égale à celle renvoyée par B<getpid>(2) définira l'attribut pour le thread " |
| 422 |
"principal du groupe de threads. (Si vous utilisez l'API POSIX des threads, " |
| 423 |
"alors utilisez B<pthread_setaffinity_np>(3) au lieu de " |
| 424 |
"B<sched_setaffinity>().)" |
| 425 |
|
| 426 |
#. type: Plain text |
| 427 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 428 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 429 |
msgid "" |
| 430 |
"The I<isolcpus> boot option can be used to isolate one or more CPUs at boot " |
| 431 |
"time, so that no processes are scheduled onto those CPUs. Following the use " |
| 432 |
"of this boot option, the only way to schedule processes onto the isolated " |
| 433 |
"CPUs is via B<sched_setaffinity>() or the B<cpuset>(7) mechanism. For " |
| 434 |
"further information, see the kernel source file I<Documentation/admin-guide/" |
| 435 |
"kernel-parameters.txt>. As noted in that file, I<isolcpus> is the preferred " |
| 436 |
"mechanism of isolating CPUs (versus the alternative of manually setting the " |
| 437 |
"CPU affinity of all processes on the system)." |
| 438 |
msgstr "" |
| 439 |
"L'option d'amorçage I<isolcpus> peut être utilisée pour isoler un ou " |
| 440 |
"plusieurs processeurs au moment du démarrage, afin qu'aucun processus " |
| 441 |
"n'utilise ces processeurs. Suite à l'utilisation de cette option, la seule " |
| 442 |
"manière d'affecter des processus à un processeur isolé est d'utiliser " |
| 443 |
"B<sched_setaffinity>() ou le mécanisme B<cpuset>(7). Pour plus " |
| 444 |
"d'informations, voir le fichier I<Documentation/admin-guide/kernel-" |
| 445 |
"parameters.txt> des sources du noyau. Comme indiqué dans ce fichier, " |
| 446 |
"I<isolcpus> est le mécanisme privilégié d'isolation des processeurs (plutôt " |
| 447 |
"que de définir à la main l'affinité processeur de tous les processus du " |
| 448 |
"système)." |
| 449 |
|
| 450 |
#. type: Plain text |
| 451 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 452 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 453 |
msgid "" |
| 454 |
"A child created via B<fork>(2) inherits its parent's CPU affinity mask. " |
| 455 |
"The affinity mask is preserved across an B<execve>(2)." |
| 456 |
msgstr "" |
| 457 |
"Un processus enfant créé par B<fork>(2) hérite du masque d'affinité CPU de " |
| 458 |
"son parent. Le masque d'affinité est conservé au travers d'un B<execve>(2)." |
| 459 |
|
| 460 |
#. type: SS |
| 461 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 462 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 463 |
#, no-wrap |
| 464 |
msgid "C library/kernel differences" |
| 465 |
msgstr "Différences entre bibliothèque C et noyau" |
| 466 |
|
| 467 |
#. type: Plain text |
| 468 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 469 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 470 |
msgid "" |
| 471 |
"This manual page describes the glibc interface for the CPU affinity calls. " |
| 472 |
"The actual system call interface is slightly different, with the I<mask> " |
| 473 |
"being typed as I<unsigned long\\ *>, reflecting the fact that the underlying " |
| 474 |
"implementation of CPU sets is a simple bit mask." |
| 475 |
msgstr "" |
| 476 |
"Cette page de manuel décrit l'interface de la glibc pour les appels liés à " |
| 477 |
"l'affinité CPU. L'interface des appels système est légèrement différente, " |
| 478 |
"I<mask> ayant le type I<unsigned long\\ *>, montrant le fait que " |
| 479 |
"l'implémentation des ensembles de CPU est en réalité un simple masque de " |
| 480 |
"bits." |
| 481 |
|
| 482 |
#. type: Plain text |
| 483 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 484 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 485 |
msgid "" |
| 486 |
"On success, the raw B<sched_getaffinity>() system call returns the number " |
| 487 |
"of bytes placed copied into the I<mask> buffer; this will be the minimum of " |
| 488 |
"I<cpusetsize> and the size (in bytes) of the I<cpumask_t> data type that is " |
| 489 |
"used internally by the kernel to represent the CPU set bit mask." |
| 490 |
msgstr "" |
| 491 |
"En cas de succès, l'appel système B<sched_getaffinity>() brut renvoie le " |
| 492 |
"nombre d'octets copiés dans le tampon I<mask> ; il s'agira de la taille " |
| 493 |
"minimale de I<cpusetsize> et de la taille (en octets) du type de données " |
| 494 |
"I<cpumask_t> utilisée en interne par le noyau pour représenter le masque de " |
| 495 |
"bits du jeu de processeurs." |
| 496 |
|
| 497 |
#. type: SS |
| 498 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 499 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 500 |
#, no-wrap |
| 501 |
msgid "Handling systems with large CPU affinity masks" |
| 502 |
msgstr "Gestion des systèmes ayant de grands masques d'affinité de processeur" |
| 503 |
|
| 504 |
#. FIXME . See https://sourceware.org/bugzilla/show_bug.cgi?id=15630 |
| 505 |
#. and https://sourceware.org/ml/libc-alpha/2013-07/msg00288.html |
| 506 |
#. type: Plain text |
| 507 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 508 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 509 |
msgid "" |
| 510 |
"The underlying system calls (which represent CPU masks as bit masks of type " |
| 511 |
"I<unsigned long\\ *>) impose no restriction on the size of the CPU mask. " |
| 512 |
"However, the I<cpu_set_t> data type used by glibc has a fixed size of 128 " |
| 513 |
"bytes, meaning that the maximum CPU number that can be represented is 1023. " |
| 514 |
"If the kernel CPU affinity mask is larger than 1024, then calls of the form:" |
| 515 |
msgstr "" |
| 516 |
"Les appels système sous-jacents (qui représentent les masques de processeur " |
| 517 |
"par des masques de bits de type I<unsigned long\\ *>) n'imposent aucune " |
| 518 |
"restriction quant à la taille du masque de processeur. Toutefois, le type de " |
| 519 |
"données I<cpu_set_t> utilisé par la glibc a une taille fixe de 128 octets, " |
| 520 |
"si bien que le nombre maximal de processeurs qui peuvent être représentés " |
| 521 |
"est de 1023. Si le masque d'affinité de processeur du noyau est plus grand " |
| 522 |
"que 1024, les appels sous la forme :" |
| 523 |
|
| 524 |
#. type: Plain text |
| 525 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 526 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 527 |
#, no-wrap |
| 528 |
msgid "sched_getaffinity(pid, sizeof(cpu_set_t), &mask);\n" |
| 529 |
msgstr "sched_getaffinity(pid, sizeof(cpu_set_t), &mask);\n" |
| 530 |
|
| 531 |
#. type: Plain text |
| 532 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 533 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 534 |
msgid "" |
| 535 |
"fail with the error B<EINVAL>, the error produced by the underlying system " |
| 536 |
"call for the case where the I<mask> size specified in I<cpusetsize> is " |
| 537 |
"smaller than the size of the affinity mask used by the kernel. (Depending " |
| 538 |
"on the system CPU topology, the kernel affinity mask can be substantially " |
| 539 |
"larger than the number of active CPUs in the system.)" |
| 540 |
msgstr "" |
| 541 |
"échouent avec l'erreur B<EINVAL>, celle produite par l'appel système sous-" |
| 542 |
"jacent si la taille I<mask> indiquée dans I<cpusetsize> est inférieure à " |
| 543 |
"celle du masque d'affinité utilisée par le noyau (selon la topologie des " |
| 544 |
"processeurs du système, le masque d'affinité du noyau peut être beaucoup " |
| 545 |
"plus grand que le nombre de processeurs actifs sur le système)." |
| 546 |
|
| 547 |
#. type: Plain text |
| 548 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 549 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 550 |
msgid "" |
| 551 |
"When working on systems with large kernel CPU affinity masks, one must " |
| 552 |
"dynamically allocate the I<mask> argument (see B<CPU_ALLOC>(3)). Currently, " |
| 553 |
"the only way to do this is by probing for the size of the required mask " |
| 554 |
"using B<sched_getaffinity>() calls with increasing mask sizes (until the " |
| 555 |
"call does not fail with the error B<EINVAL>)." |
| 556 |
msgstr "" |
| 557 |
"Si vous travaillez sur des systèmes ayant de grands masques d'affinité de " |
| 558 |
"processeur, vous pouvez allouer de manière dynamique l'argument I<mask> " |
| 559 |
"(voir B<CPU_ALLOC>(3)). Actuellement, la seule manière de faire cela est de " |
| 560 |
"sonder la taille de masque nécessaire en utilisant les appels " |
| 561 |
"B<sched_getaffinity>() avec des tailles de masque croissantes (jusqu'à ce " |
| 562 |
"que l'appel n'échoue pas avec l'erreur B<EINVAL>)." |
| 563 |
|
| 564 |
#. type: Plain text |
| 565 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 566 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 567 |
msgid "" |
| 568 |
"Be aware that B<CPU_ALLOC>(3) may allocate a slightly larger CPU set than " |
| 569 |
"requested (because CPU sets are implemented as bit masks allocated in units " |
| 570 |
"of I<sizeof(long)>). Consequently, B<sched_getaffinity>() can set bits " |
| 571 |
"beyond the requested allocation size, because the kernel sees a few " |
| 572 |
"additional bits. Therefore, the caller should iterate over the bits in the " |
| 573 |
"returned set, counting those which are set, and stop upon reaching the value " |
| 574 |
"returned by B<CPU_COUNT>(3) (rather than iterating over the number of bits " |
| 575 |
"requested to be allocated)." |
| 576 |
msgstr "" |
| 577 |
"Gardez en tête qu'il se peut que B<CPU_ALLOC>(3) alloue un peu plus de " |
| 578 |
"processeurs que vous ne l'avez demandé (car les ensembles de processeurs " |
| 579 |
"sont implémentés sous forme de masques de bits alloués par unités de " |
| 580 |
"I<sizeof(long)>). Par conséquent, B<sched_getaffinity>() peut positionner " |
| 581 |
"des bits au-delà de la taille d'allocation demandée car le noyau voit " |
| 582 |
"quelques bits supplémentaires. Donc, l'appelant doit revenir sur les bits de " |
| 583 |
"l'ensemble renvoyé en comptant ceux qui sont positionnés et s'arrêter " |
| 584 |
"lorsqu'il atteint la valeur renvoyée par B<CPU_COUNT>(3) (et non pas revenir " |
| 585 |
"sur les bits de l'ensemble dont une allocation a été demandée)." |
| 586 |
|
| 587 |
#. type: SH |
| 588 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 589 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 590 |
#, no-wrap |
| 591 |
msgid "EXAMPLES" |
| 592 |
msgstr "EXEMPLES" |
| 593 |
|
| 594 |
#. type: Plain text |
| 595 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 596 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 597 |
msgid "" |
| 598 |
"The program below creates a child process. The parent and child then each " |
| 599 |
"assign themselves to a specified CPU and execute identical loops that " |
| 600 |
"consume some CPU time. Before terminating, the parent waits for the child " |
| 601 |
"to complete. The program takes three command-line arguments: the CPU number " |
| 602 |
"for the parent, the CPU number for the child, and the number of loop " |
| 603 |
"iterations that both processes should perform." |
| 604 |
msgstr "" |
| 605 |
"Le programme ci-dessous crée un processus enfant. Puis le parent et l'enfant " |
| 606 |
"s'affectent mutuellement un processeur indiqué et exécutent des boucles " |
| 607 |
"identiques qui consomment du temps de processeur. Avant de se terminer, le " |
| 608 |
"parent attend que l'enfant s'achève. Le programme prend trois paramètres en " |
| 609 |
"ligne de commande : le numéro de processeur du parent, celui de l'enfant et " |
| 610 |
"le nombre de boucles que doivent effectuer les deux processus." |
| 611 |
|
| 612 |
#. type: Plain text |
| 613 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 614 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 615 |
msgid "" |
| 616 |
"As the sample runs below demonstrate, the amount of real and CPU time " |
| 617 |
"consumed when running the program will depend on intra-core caching effects " |
| 618 |
"and whether the processes are using the same CPU." |
| 619 |
msgstr "" |
| 620 |
"Comme le montre le modèle ci-dessous, la quantité de temps processeur et de " |
| 621 |
"temps réel consommé lors de l'exécution d'un programme dépendra des effets " |
| 622 |
"de mise en cache à l'intérieur du processeur et de l'utilisation ou non du " |
| 623 |
"même processeur par les processus." |
| 624 |
|
| 625 |
#. type: Plain text |
| 626 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 627 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 628 |
msgid "" |
| 629 |
"We first employ B<lscpu>(1) to determine that this (x86) system has two " |
| 630 |
"cores, each with two CPUs:" |
| 631 |
msgstr "" |
| 632 |
"On utilise d'abord B<lscpu>(1) pour déterminer que ce système (x86) comporte " |
| 633 |
"deux cœurs, chacun ayant deux processeurs :" |
| 634 |
|
| 635 |
#. type: Plain text |
| 636 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 637 |
#: opensuse-tumbleweed |
| 638 |
#, fuzzy, no-wrap |
| 639 |
#| msgid "" |
| 640 |
#| "$ B<lscpu | egrep -i \\[aq]core.*:|socket\\[aq]>\n" |
| 641 |
#| "Thread(s) per core: 2\n" |
| 642 |
#| "Core(s) per socket: 2\n" |
| 643 |
#| "Socket(s): 1\n" |
| 644 |
msgid "" |
| 645 |
"$B< lscpu | egrep -i \\[aq]core.*:|socket\\[aq]>;\n" |
| 646 |
"Thread(s) per core: 2\n" |
| 647 |
"Core(s) per socket: 2\n" |
| 648 |
"Socket(s): 1\n" |
| 649 |
msgstr "" |
| 650 |
"$ B<lscpu | egrep -i \\[aq]core.*:|socket\\[aq]>\n" |
| 651 |
"Thread(s) par cœur : 2\n" |
| 652 |
"Cœur(s) par socket : 2\n" |
| 653 |
"Socket(s) : 1\n" |
| 654 |
|
| 655 |
#. type: Plain text |
| 656 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 657 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 658 |
msgid "" |
| 659 |
"We then time the operation of the example program for three cases: both " |
| 660 |
"processes running on the same CPU; both processes running on different CPUs " |
| 661 |
"on the same core; and both processes running on different CPUs on different " |
| 662 |
"cores." |
| 663 |
msgstr "" |
| 664 |
"On chronomètre alors l'opération du programme exemple dans trois cas : les " |
| 665 |
"deux processus en fonction sur le même processeur, sur des processeurs " |
| 666 |
"différents du même cœur et sur des processeurs différents sur des cœurs " |
| 667 |
"différents." |
| 668 |
|
| 669 |
#. type: Plain text |
| 670 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 671 |
#: opensuse-tumbleweed |
| 672 |
#, fuzzy, no-wrap |
| 673 |
#| msgid "" |
| 674 |
#| "$ B<time -p ./a.out 0 0 100000000>\n" |
| 675 |
#| "real 14.75\n" |
| 676 |
#| "user 3.02\n" |
| 677 |
#| "sys 11.73\n" |
| 678 |
#| "$ B<time -p ./a.out 0 1 100000000>\n" |
| 679 |
#| "real 11.52\n" |
| 680 |
#| "user 3.98\n" |
| 681 |
#| "sys 19.06\n" |
| 682 |
#| "$ B<time -p ./a.out 0 3 100000000>\n" |
| 683 |
#| "real 7.89\n" |
| 684 |
#| "user 3.29\n" |
| 685 |
#| "sys 12.07\n" |
| 686 |
msgid "" |
| 687 |
"$B< time -p ./a.out 0 0 100000000>;\n" |
| 688 |
"real 14.75\n" |
| 689 |
"user 3.02\n" |
| 690 |
"sys 11.73\n" |
| 691 |
"$B< time -p ./a.out 0 1 100000000>;\n" |
| 692 |
"real 11.52\n" |
| 693 |
"user 3.98\n" |
| 694 |
"sys 19.06\n" |
| 695 |
"$B< time -p ./a.out 0 3 100000000>;\n" |
| 696 |
"real 7.89\n" |
| 697 |
"user 3.29\n" |
| 698 |
"sys 12.07\n" |
| 699 |
msgstr "" |
| 700 |
"$ B<time -p ./a.out 0 0 100000000>\n" |
| 701 |
"réel 14.75\n" |
| 702 |
"utilisateur 3.02\n" |
| 703 |
"sys 11.73\n" |
| 704 |
"$ B<time -p ./a.out 0 1 100000000>\n" |
| 705 |
"réel 11.52\n" |
| 706 |
"utilisateur 3.98\n" |
| 707 |
"sys 19.06\n" |
| 708 |
"$ B<time -p ./a.out 0 3 100000000>\n" |
| 709 |
"réel 7.89\n" |
| 710 |
"utilisateur 3.29\n" |
| 711 |
"sys 12.07\n" |
| 712 |
|
| 713 |
#. type: SS |
| 714 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 715 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 716 |
#, no-wrap |
| 717 |
msgid "Program source" |
| 718 |
msgstr "Source du programme" |
| 719 |
|
| 720 |
#. type: Plain text |
| 721 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 722 |
#: opensuse-tumbleweed |
| 723 |
#, fuzzy, no-wrap |
| 724 |
#| msgid "" |
| 725 |
#| "#define _GNU_SOURCE\n" |
| 726 |
#| "#include E<lt>err.hE<gt>\n" |
| 727 |
#| "#include E<lt>sched.hE<gt>\n" |
| 728 |
#| "#include E<lt>stdio.hE<gt>\n" |
| 729 |
#| "#include E<lt>stdlib.hE<gt>\n" |
| 730 |
#| "#include E<lt>sys/wait.hE<gt>\n" |
| 731 |
#| "#include E<lt>unistd.hE<gt>\n" |
| 732 |
#| "\\&\n" |
| 733 |
#| "int\n" |
| 734 |
#| "main(int argc, char *argv[])\n" |
| 735 |
#| "{\n" |
| 736 |
#| " int parentCPU, childCPU;\n" |
| 737 |
#| " cpu_set_t set;\n" |
| 738 |
#| " unsigned int nloops;\n" |
| 739 |
#| "\\&\n" |
| 740 |
#| " if (argc != 4) {\n" |
| 741 |
#| " fprintf(stderr, \"Usage: %s parent-cpu child-cpu num-loops\\[rs]n\",\n" |
| 742 |
#| " argv[0]);\n" |
| 743 |
#| " exit(EXIT_FAILURE);\n" |
| 744 |
#| " }\n" |
| 745 |
#| "\\&\n" |
| 746 |
#| " parentCPU = atoi(argv[1]);\n" |
| 747 |
#| " childCPU = atoi(argv[2]);\n" |
| 748 |
#| " nloops = atoi(argv[3]);\n" |
| 749 |
#| "\\&\n" |
| 750 |
#| " CPU_ZERO(&set);\n" |
| 751 |
#| "\\&\n" |
| 752 |
#| " switch (fork()) {\n" |
| 753 |
#| " case -1: /* Error */\n" |
| 754 |
#| " err(EXIT_FAILURE, \"fork\");\n" |
| 755 |
#| "\\&\n" |
| 756 |
#| " case 0: /* Child */\n" |
| 757 |
#| " CPU_SET(childCPU, &set);\n" |
| 758 |
#| "\\&\n" |
| 759 |
#| " if (sched_setaffinity(getpid(), sizeof(set), &set) == -1)\n" |
| 760 |
#| " err(EXIT_FAILURE, \"sched_setaffinity\");\n" |
| 761 |
#| "\\&\n" |
| 762 |
#| " for (unsigned int j = 0; j E<lt> nloops; j++)\n" |
| 763 |
#| " getppid();\n" |
| 764 |
#| "\\&\n" |
| 765 |
#| " exit(EXIT_SUCCESS);\n" |
| 766 |
#| "\\&\n" |
| 767 |
#| " default: /* Parent */\n" |
| 768 |
#| " CPU_SET(parentCPU, &set);\n" |
| 769 |
#| "\\&\n" |
| 770 |
#| " if (sched_setaffinity(getpid(), sizeof(set), &set) == -1)\n" |
| 771 |
#| " err(EXIT_FAILURE, \"sched_setaffinity\");\n" |
| 772 |
#| "\\&\n" |
| 773 |
#| " for (unsigned int j = 0; j E<lt> nloops; j++)\n" |
| 774 |
#| " getppid();\n" |
| 775 |
#| "\\&\n" |
| 776 |
#| " wait(NULL); /* Wait for child to terminate */\n" |
| 777 |
#| " exit(EXIT_SUCCESS);\n" |
| 778 |
#| " }\n" |
| 779 |
#| "}\n" |
| 780 |
msgid "" |
| 781 |
"#define _GNU_SOURCE\n" |
| 782 |
"#include E<lt>err.hE<gt>\n" |
| 783 |
"#include E<lt>sched.hE<gt>\n" |
| 784 |
"#include E<lt>stdio.hE<gt>\n" |
| 785 |
"#include E<lt>stdlib.hE<gt>\n" |
| 786 |
"#include E<lt>sys/wait.hE<gt>\n" |
| 787 |
"#include E<lt>unistd.hE<gt>\n" |
| 788 |
"\\&\n" |
| 789 |
"int\n" |
| 790 |
"main(int argc, char *argv[])\n" |
| 791 |
"{\n" |
| 792 |
" int parentCPU, childCPU;\n" |
| 793 |
" cpu_set_t set;\n" |
| 794 |
" unsigned int nloops;\n" |
| 795 |
"\\&\n" |
| 796 |
" if (argc != 4) {\n" |
| 797 |
" fprintf(stderr, \"Usage: %s parent-cpu child-cpu num-loops\\[rs]n\",\n" |
| 798 |
" argv[0]);\n" |
| 799 |
" exit(EXIT_FAILURE);\n" |
| 800 |
" }\n" |
| 801 |
"\\&\n" |
| 802 |
" parentCPU = atoi(argv[1]);\n" |
| 803 |
" childCPU = atoi(argv[2]);\n" |
| 804 |
" nloops = atoi(argv[3]);\n" |
| 805 |
"\\&\n" |
| 806 |
" CPU_ZERO(&set);\n" |
| 807 |
"\\&\n" |
| 808 |
" switch (fork()) {\n" |
| 809 |
" case -1: /* Error */\n" |
| 810 |
" err(EXIT_FAILURE, \"fork\");\n" |
| 811 |
"\\&\n" |
| 812 |
" case 0: /* Child */\n" |
| 813 |
" CPU_SET(childCPU, &set);\n" |
| 814 |
"\\&\n" |
| 815 |
" if (sched_setaffinity(0, sizeof(set), &set) == -1)\n" |
| 816 |
" err(EXIT_FAILURE, \"sched_setaffinity\");\n" |
| 817 |
"\\&\n" |
| 818 |
" for (unsigned int j = 0; j E<lt> nloops; j++)\n" |
| 819 |
" getppid();\n" |
| 820 |
"\\&\n" |
| 821 |
" exit(EXIT_SUCCESS);\n" |
| 822 |
"\\&\n" |
| 823 |
" default: /* Parent */\n" |
| 824 |
" CPU_SET(parentCPU, &set);\n" |
| 825 |
"\\&\n" |
| 826 |
" if (sched_setaffinity(0, sizeof(set), &set) == -1)\n" |
| 827 |
" err(EXIT_FAILURE, \"sched_setaffinity\");\n" |
| 828 |
"\\&\n" |
| 829 |
" for (unsigned int j = 0; j E<lt> nloops; j++)\n" |
| 830 |
" getppid();\n" |
| 831 |
"\\&\n" |
| 832 |
" wait(NULL); /* Wait for child to terminate */\n" |
| 833 |
" exit(EXIT_SUCCESS);\n" |
| 834 |
" }\n" |
| 835 |
"}\n" |
| 836 |
msgstr "" |
| 837 |
"#define _GNU_SOURCE\n" |
| 838 |
"#include E<lt>err.hE<gt>\n" |
| 839 |
"#include E<lt>sched.hE<gt>\n" |
| 840 |
"#include E<lt>stdio.hE<gt>\n" |
| 841 |
"#include E<lt>stdlib.hE<gt>\n" |
| 842 |
"#include E<lt>sys/wait.hE<gt>\n" |
| 843 |
"#include E<lt>unistd.hE<gt>\n" |
| 844 |
"\\&\n" |
| 845 |
"int\n" |
| 846 |
"main(int argc, char *argv[])\n" |
| 847 |
"{\n" |
| 848 |
" int parentCPU, childCPU;\n" |
| 849 |
" cpu_set_t set;\n" |
| 850 |
" unsigned int nloops;\n" |
| 851 |
"\\&\n" |
| 852 |
" if (argc != 4) {\n" |
| 853 |
" fprintf(stderr, \"Utillisation\\ : %s CPU_parent CPU_enfant nb_boucles\\[rs]n\",\n" |
| 854 |
" argv[0]);\n" |
| 855 |
" exit(EXIT_FAILURE);\n" |
| 856 |
" }\n" |
| 857 |
"\\&\n" |
| 858 |
" parentCPU = atoi(argv[1]);\n" |
| 859 |
" childCPU = atoi(argv[2]);\n" |
| 860 |
" nloops = atoi(argv[3]);\n" |
| 861 |
"\\&\n" |
| 862 |
" CPU_ZERO(&set);\n" |
| 863 |
"\\&\n" |
| 864 |
" switch (fork()) {\n" |
| 865 |
" case -1: /* Erreur */\n" |
| 866 |
" err(EXIT_FAILURE, \"fork\");\n" |
| 867 |
"\\&\n" |
| 868 |
" case 0: /* Enfant */\n" |
| 869 |
" CPU_SET(childCPU, &set);\n" |
| 870 |
"\\&\n" |
| 871 |
" if (sched_setaffinity(getpid(), sizeof(set), &set) == -1)\n" |
| 872 |
" err(EXIT_FAILURE, \"sched_setaffinity\");\n" |
| 873 |
"\\&\n" |
| 874 |
" for (unsigned int j = 0; j E<lt> nloops; j++)\n" |
| 875 |
" getppid();\n" |
| 876 |
"\\&\n" |
| 877 |
" exit(EXIT_SUCCESS);\n" |
| 878 |
"\\&\n" |
| 879 |
" default: /* Parent */\n" |
| 880 |
" CPU_SET(parentCPU, &set);\n" |
| 881 |
"\\&\n" |
| 882 |
" if (sched_setaffinity(getpid(), sizeof(set), &set) == -1)\n" |
| 883 |
" err(EXIT_FAILURE, \"sched_setaffinity\");\n" |
| 884 |
"\\&\n" |
| 885 |
" for (unsigned int j = 0; j E<lt> nloops; j++)\n" |
| 886 |
" getppid();\n" |
| 887 |
"\\&\n" |
| 888 |
" wait(NULL); /* Attendre que l'enfant se termine */\n" |
| 889 |
" exit(EXIT_SUCCESS);\n" |
| 890 |
" }\n" |
| 891 |
"}\n" |
| 892 |
|
| 893 |
#. SRC END |
| 894 |
#. type: SH |
| 895 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 896 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 897 |
#, no-wrap |
| 898 |
msgid "SEE ALSO" |
| 899 |
msgstr "VOIR AUSSI" |
| 900 |
|
| 901 |
#. type: Plain text |
| 902 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 903 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 904 |
msgid "" |
| 905 |
"B<lscpu>(1), B<nproc>(1), B<taskset>(1), B<clone>(2), B<getcpu>(2), " |
| 906 |
"B<getpriority>(2), B<gettid>(2), B<nice>(2), B<sched_get_priority_max>(2), " |
| 907 |
"B<sched_get_priority_min>(2), B<sched_getscheduler>(2), " |
| 908 |
"B<sched_setscheduler>(2), B<setpriority>(2), B<CPU_SET>(3), " |
| 909 |
"B<get_nprocs>(3), B<pthread_setaffinity_np>(3), B<sched_getcpu>(3), " |
| 910 |
"B<capabilities>(7), B<cpuset>(7), B<sched>(7), B<numactl>(8)" |
| 911 |
msgstr "" |
| 912 |
"B<lscpu>(1), B<nproc>(1), B<taskset>(1), B<clone>(2), B<getcpu>(2), " |
| 913 |
"B<getpriority>(2), B<gettid>(2), B<nice>(2), B<sched_get_priority_max>(2), " |
| 914 |
"B<sched_get_priority_min>(2), B<sched_getscheduler>(2), " |
| 915 |
"B<sched_setscheduler>(2), B<setpriority>(2), B<CPU_SET>(3), " |
| 916 |
"B<get_nprocs>(3), B<pthread_setaffinity_np>(3), B<sched_getcpu>(3), " |
| 917 |
"B<capabilities>(7), B<cpuset>(7), B<sched>(7), B<numactl>(8)" |
| 918 |
|
| 919 |
#. type: TH |
| 920 |
#: debian-trixie |
| 921 |
#, no-wrap |
| 922 |
msgid "2024-06-15" |
| 923 |
msgstr "15 juin 2024" |
| 924 |
|
| 925 |
#. type: TH |
| 926 |
#: debian-trixie |
| 927 |
#, no-wrap |
| 928 |
msgid "Linux man-pages 6.9.1" |
| 929 |
msgstr "Pages du manuel de Linux 6.9.1" |
| 930 |
|
| 931 |
#. type: Plain text |
| 932 |
#: debian-trixie |
| 933 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 934 |
msgstr "Bibliothèque C standard (I<libc>, I<-lc>)" |
| 935 |
|
| 936 |
#. type: Plain text |
| 937 |
#: debian-trixie fedora-44 fedora-rawhide |
| 938 |
#, no-wrap |
| 939 |
msgid "" |
| 940 |
"$ B<lscpu | egrep -i \\[aq]core.*:|socket\\[aq]>\n" |
| 941 |
"Thread(s) per core: 2\n" |
| 942 |
"Core(s) per socket: 2\n" |
| 943 |
"Socket(s): 1\n" |
| 944 |
msgstr "" |
| 945 |
"$ B<lscpu | egrep -i \\[aq]core.*:|socket\\[aq]>\n" |
| 946 |
"Thread(s) par cœur : 2\n" |
| 947 |
"Cœur(s) par socket : 2\n" |
| 948 |
"Socket(s) : 1\n" |
| 949 |
|
| 950 |
#. type: Plain text |
| 951 |
#: debian-trixie fedora-44 fedora-rawhide |
| 952 |
#, no-wrap |
| 953 |
msgid "" |
| 954 |
"$ B<time -p ./a.out 0 0 100000000>\n" |
| 955 |
"real 14.75\n" |
| 956 |
"user 3.02\n" |
| 957 |
"sys 11.73\n" |
| 958 |
"$ B<time -p ./a.out 0 1 100000000>\n" |
| 959 |
"real 11.52\n" |
| 960 |
"user 3.98\n" |
| 961 |
"sys 19.06\n" |
| 962 |
"$ B<time -p ./a.out 0 3 100000000>\n" |
| 963 |
"real 7.89\n" |
| 964 |
"user 3.29\n" |
| 965 |
"sys 12.07\n" |
| 966 |
msgstr "" |
| 967 |
"$ B<time -p ./a.out 0 0 100000000>\n" |
| 968 |
"réel 14.75\n" |
| 969 |
"utilisateur 3.02\n" |
| 970 |
"sys 11.73\n" |
| 971 |
"$ B<time -p ./a.out 0 1 100000000>\n" |
| 972 |
"réel 11.52\n" |
| 973 |
"utilisateur 3.98\n" |
| 974 |
"sys 19.06\n" |
| 975 |
"$ B<time -p ./a.out 0 3 100000000>\n" |
| 976 |
"réel 7.89\n" |
| 977 |
"utilisateur 3.29\n" |
| 978 |
"sys 12.07\n" |
| 979 |
|
| 980 |
#. type: Plain text |
| 981 |
#: debian-trixie fedora-44 fedora-rawhide |
| 982 |
#, no-wrap |
| 983 |
msgid "" |
| 984 |
"#define _GNU_SOURCE\n" |
| 985 |
"#include E<lt>err.hE<gt>\n" |
| 986 |
"#include E<lt>sched.hE<gt>\n" |
| 987 |
"#include E<lt>stdio.hE<gt>\n" |
| 988 |
"#include E<lt>stdlib.hE<gt>\n" |
| 989 |
"#include E<lt>sys/wait.hE<gt>\n" |
| 990 |
"#include E<lt>unistd.hE<gt>\n" |
| 991 |
"\\&\n" |
| 992 |
"int\n" |
| 993 |
"main(int argc, char *argv[])\n" |
| 994 |
"{\n" |
| 995 |
" int parentCPU, childCPU;\n" |
| 996 |
" cpu_set_t set;\n" |
| 997 |
" unsigned int nloops;\n" |
| 998 |
"\\&\n" |
| 999 |
" if (argc != 4) {\n" |
| 1000 |
" fprintf(stderr, \"Usage: %s parent-cpu child-cpu num-loops\\[rs]n\",\n" |
| 1001 |
" argv[0]);\n" |
| 1002 |
" exit(EXIT_FAILURE);\n" |
| 1003 |
" }\n" |
| 1004 |
"\\&\n" |
| 1005 |
" parentCPU = atoi(argv[1]);\n" |
| 1006 |
" childCPU = atoi(argv[2]);\n" |
| 1007 |
" nloops = atoi(argv[3]);\n" |
| 1008 |
"\\&\n" |
| 1009 |
" CPU_ZERO(&set);\n" |
| 1010 |
"\\&\n" |
| 1011 |
" switch (fork()) {\n" |
| 1012 |
" case -1: /* Error */\n" |
| 1013 |
" err(EXIT_FAILURE, \"fork\");\n" |
| 1014 |
"\\&\n" |
| 1015 |
" case 0: /* Child */\n" |
| 1016 |
" CPU_SET(childCPU, &set);\n" |
| 1017 |
"\\&\n" |
| 1018 |
" if (sched_setaffinity(getpid(), sizeof(set), &set) == -1)\n" |
| 1019 |
" err(EXIT_FAILURE, \"sched_setaffinity\");\n" |
| 1020 |
"\\&\n" |
| 1021 |
" for (unsigned int j = 0; j E<lt> nloops; j++)\n" |
| 1022 |
" getppid();\n" |
| 1023 |
"\\&\n" |
| 1024 |
" exit(EXIT_SUCCESS);\n" |
| 1025 |
"\\&\n" |
| 1026 |
" default: /* Parent */\n" |
| 1027 |
" CPU_SET(parentCPU, &set);\n" |
| 1028 |
"\\&\n" |
| 1029 |
" if (sched_setaffinity(getpid(), sizeof(set), &set) == -1)\n" |
| 1030 |
" err(EXIT_FAILURE, \"sched_setaffinity\");\n" |
| 1031 |
"\\&\n" |
| 1032 |
" for (unsigned int j = 0; j E<lt> nloops; j++)\n" |
| 1033 |
" getppid();\n" |
| 1034 |
"\\&\n" |
| 1035 |
" wait(NULL); /* Wait for child to terminate */\n" |
| 1036 |
" exit(EXIT_SUCCESS);\n" |
| 1037 |
" }\n" |
| 1038 |
"}\n" |
| 1039 |
msgstr "" |
| 1040 |
"#define _GNU_SOURCE\n" |
| 1041 |
"#include E<lt>err.hE<gt>\n" |
| 1042 |
"#include E<lt>sched.hE<gt>\n" |
| 1043 |
"#include E<lt>stdio.hE<gt>\n" |
| 1044 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1045 |
"#include E<lt>sys/wait.hE<gt>\n" |
| 1046 |
"#include E<lt>unistd.hE<gt>\n" |
| 1047 |
"\\&\n" |
| 1048 |
"int\n" |
| 1049 |
"main(int argc, char *argv[])\n" |
| 1050 |
"{\n" |
| 1051 |
" int parentCPU, childCPU;\n" |
| 1052 |
" cpu_set_t set;\n" |
| 1053 |
" unsigned int nloops;\n" |
| 1054 |
"\\&\n" |
| 1055 |
" if (argc != 4) {\n" |
| 1056 |
" fprintf(stderr, \"Utillisation\\ : %s CPU_parent CPU_enfant nb_boucles\\[rs]n\",\n" |
| 1057 |
" argv[0]);\n" |
| 1058 |
" exit(EXIT_FAILURE);\n" |
| 1059 |
" }\n" |
| 1060 |
"\\&\n" |
| 1061 |
" parentCPU = atoi(argv[1]);\n" |
| 1062 |
" childCPU = atoi(argv[2]);\n" |
| 1063 |
" nloops = atoi(argv[3]);\n" |
| 1064 |
"\\&\n" |
| 1065 |
" CPU_ZERO(&set);\n" |
| 1066 |
"\\&\n" |
| 1067 |
" switch (fork()) {\n" |
| 1068 |
" case -1: /* Erreur */\n" |
| 1069 |
" err(EXIT_FAILURE, \"fork\");\n" |
| 1070 |
"\\&\n" |
| 1071 |
" case 0: /* Enfant */\n" |
| 1072 |
" CPU_SET(childCPU, &set);\n" |
| 1073 |
"\\&\n" |
| 1074 |
" if (sched_setaffinity(getpid(), sizeof(set), &set) == -1)\n" |
| 1075 |
" err(EXIT_FAILURE, \"sched_setaffinity\");\n" |
| 1076 |
"\\&\n" |
| 1077 |
" for (unsigned int j = 0; j E<lt> nloops; j++)\n" |
| 1078 |
" getppid();\n" |
| 1079 |
"\\&\n" |
| 1080 |
" exit(EXIT_SUCCESS);\n" |
| 1081 |
"\\&\n" |
| 1082 |
" default: /* Parent */\n" |
| 1083 |
" CPU_SET(parentCPU, &set);\n" |
| 1084 |
"\\&\n" |
| 1085 |
" if (sched_setaffinity(getpid(), sizeof(set), &set) == -1)\n" |
| 1086 |
" err(EXIT_FAILURE, \"sched_setaffinity\");\n" |
| 1087 |
"\\&\n" |
| 1088 |
" for (unsigned int j = 0; j E<lt> nloops; j++)\n" |
| 1089 |
" getppid();\n" |
| 1090 |
"\\&\n" |
| 1091 |
" wait(NULL); /* Attendre que l'enfant se termine */\n" |
| 1092 |
" exit(EXIT_SUCCESS);\n" |
| 1093 |
" }\n" |
| 1094 |
"}\n" |
| 1095 |
|
| 1096 |
#. type: TH |
| 1097 |
#: fedora-44 fedora-rawhide |
| 1098 |
#, no-wrap |
| 1099 |
msgid "2024-07-23" |
| 1100 |
msgstr "23 juillet 2024" |
| 1101 |
|
| 1102 |
#. type: TH |
| 1103 |
#: fedora-44 fedora-rawhide |
| 1104 |
#, no-wrap |
| 1105 |
msgid "Linux man-pages 6.13" |
| 1106 |
msgstr "Pages du manuel de Linux 6.13" |
| 1107 |
|
| 1108 |
#. type: TH |
| 1109 |
#: mageia-cauldron |
| 1110 |
#, no-wrap |
| 1111 |
msgid "Linux man-pages 6.17" |
| 1112 |
msgstr "Pages du manuel de Linux 6.17" |
| 1113 |
|
| 1114 |
#. type: TH |
| 1115 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1116 |
#, no-wrap |
| 1117 |
msgid "Linux man-pages (unreleased)" |
| 1118 |
msgstr "Pages du manuel de Linux (non publiées)" |