.\" -*- coding: UTF-8 -*- .\" Copyright 2003 Andries E. Brouwer (aeb@cwi.nl) .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH ALLOC_HUGEPAGES 2 "15 Septiembre 2017" Linux "Manual del Programador de Linux" .SH NOMBRE alloc_hugepages, free_hugepages \- asigna o libera páginas de gran tamaño .SH SINOPSIS .nf .\" asmlinkage unsigned long sys_alloc_hugepages(int key, unsigned long addr, .\" unsigned long len, int prot, int flag); \fBvoid *alloc_hugepages(int \fP\fIkey\fP\fB, void *\fP\fIaddr\fP\fB, size_t \fP\fIlen\fP\fB,\fP \fB int \fP\fIprot\fP\fB, int \fP\fIflag\fP\fB);\fP .PP .\" asmlinkage int sys_free_hugepages(unsigned long addr); \fBint free_hugepages(void *\fP\fIaddr\fP\fB);\fP .fi .SH DESCRIPCIÓN The system calls \fBalloc_hugepages\fP() and \fBfree_hugepages\fP() were introduced in Linux 2.5.36 and removed again in 2.5.54. They existed only on i386 and ia64 (when built with \fBCONFIG_HUGETLB_PAGE\fP). In Linux 2.4.20, the syscall numbers exist, but the calls fail with the error \fBENOSYS\fP. .PP En la arquitectura i386 el hardware de gestión de la memoria maneja páginas ordinarias (4\ KiB) y páginas grandes (2 o 4\ MiB). De manera similar, la arquitectura ia64 maneja páginas grandes de distintos tamaños. Estas llamadas al sistema sirven para ubicar páginas de gran tamaño en la memoria del proceso o para liberarlas. Las páginas grandes están fijas en memoria, y no son intercambiadas (swapped). .PP El argumento \fIkey\fP es un identificador. Cuando es cero las páginas son privadas, y no son heredadas por los hijos. Cuando es positivo las páginas son compartidas con otras aplicaciones usando el mismo identificador \fIkey\fP, y heredadas por los procesos hijo. .PP The \fIaddr\fP argument of \fBfree_hugepages\fP() tells which page is being freed: it was the return value of a call to \fBalloc_hugepages\fP(). (The memory is first actually freed when all users have released it.) The \fIaddr\fP argument of \fBalloc_hugepages\fP() is a hint, that the kernel may or may not follow. Addresses must be properly aligned. .PP El parámetro \fIlen\fP es la longitud del segmento requerido. Debe ser un múltiplo del tamaño de la página gigante. .PP El parámetro \fIprot\fP especifica la protección de memoria del segmento. Puede ser \fBPROT_READ\fP, \fBPROT_WRITE\fP o bien \fBPROT_EXEC\fP. .PP The \fIflag\fP argument is ignored, unless \fIkey\fP is positive. In that case, if \fIflag\fP is \fBIPC_CREAT\fP, then a new huge page segment is created when none with the given key existed. If this flag is not set, then \fBENOENT\fP is returned when no segment with the given key exists. .SH "VALOR DEVUELTO" En caso de éxito, \fBalloc_hugepages\fP() devuelve la dirección virtual asignada, y \fBfree_hugepages\fP() devuelve cero. En caso de error, se devuelve \-1, y se modifica \fIerrno\fP con el valor apropiado. .SH ERRORES .TP \fBENOSYS\fP La llamada al sistema no está soportada por este núcleo. .SH ARCHIVOS .TP \fI/proc/sys/vm/nr_hugepages\fP Número de páginas hugetlb configuradas. Puede ser leído y escrito. .TP \fI/proc/meminfo\fP Proporciona información del número de páginas hugetlb configuradas y de su tamaño en las tres variables HugePages_Total, HugePages_Free, Hugepagesize. .SH "CONFORME A" En procesadores Intel, estas llamadas son específicas de Linux y no deben emplearse en aplicaciones que pretendan ser portables. .SH NOTAS These system calls are gone; they existed only in Linux 2.5.36 through to 2.5.54. Now the hugetlbfs filesystem can be used instead. Memory backed by huge pages (if the CPU supports them) is obtained by using \fBmmap\fP(2) to map files in this virtual filesystem. .PP .\".PP .\" requires CONFIG_HUGETLB_PAGE (under "Processor type and features") .\" and CONFIG_HUGETLBFS (under "Filesystems"). .\" mount \-t hugetlbfs hugetlbfs /huge .\" SHM_HUGETLB El número máximo de páginas grandes puede especificarse usando el parámetro \fBhugepages=\fP en el arranque. .SH COLOFÓN Esta página es parte de la versión 5.10 del proyecto Linux \fIman\-pages\fP. Puede encontrar una descripción del proyecto, información sobre cómo informar errores y la última versión de esta página en \%https://www.kernel.org/doc/man\-pages/. .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars y Marcos Fouces . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .