[Comm] Максимальное количество открытых файлов

Alexander Vasiliev =?iso-8859-1?q?vav_=CE=C1_tascom=2Eru?=
Ср Окт 5 16:39:42 MSD 2005


On Wed, Oct 05, 2005 at 10:00:13AM +0400, Alexander Vasiliev wrote:
> Если ядро 2.4, то пересобрать kernel.
> Патчи и spec приложены.
> (В spec'e номера патчей 11000-11002.)

Извините, файлы приложены здесь.
--
 Александр Васильев
 ЗАО "Таском"
 vav на tascom.ru
----------- следующая часть -----------
--- include/linux/fs.h.orig	2003-08-21 10:17:25 +0400
+++ include/linux/fs.h	2003-08-21 10:50:35 +0400
@@ -41,7 +41,7 @@
 /* Fixed constants first: */
 #undef NR_OPEN
 #define NR_OPEN (1024*1024)	/* Absolute upper limit on fd num */
-#define INR_OPEN 1024		/* Initial setting for nfile rlimits */
+#define INR_OPEN 8192		/* Initial setting for nfile rlimits */
 
 #define BLOCK_SIZE_BITS 10
 #define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)
----------- следующая часть -----------
--- include/linux/limits.h.orig	2002-11-29 02:53:15 +0300
+++ include/linux/limits.h	2003-08-21 10:50:58 +0400
@@ -1,12 +1,12 @@
 #ifndef _LINUX_LIMITS_H
 #define _LINUX_LIMITS_H
 
-#define NR_OPEN	        1024
+#define NR_OPEN	        8192
 
 #define NGROUPS_MAX       32	/* supplemental group IDs are available */
 #define ARG_MAX       131072	/* # bytes of args + environ for exec() */
 #define CHILD_MAX        999    /* no limit :-) */
-#define OPEN_MAX         256	/* # open files a process may have */
+#define OPEN_MAX        2048	/* # open files a process may have */
 #define LINK_MAX         127	/* # links a file may have */
 #define MAX_CANON        255	/* size of the canonical input queue */
 #define MAX_INPUT        255	/* size of the type-ahead buffer */
----------- следующая часть -----------
--- include/linux/posix_types.h.orig	2000-01-20 21:48:35 +0300
+++ include/linux/posix_types.h	2003-08-21 10:51:39 +0400
@@ -22,7 +22,7 @@
 #define __NFDBITS	(8 * sizeof(unsigned long))
 
 #undef __FD_SETSIZE
-#define __FD_SETSIZE	1024
+#define __FD_SETSIZE	8192
 
 #undef __FDSET_LONGS
 #define __FDSET_LONGS	(__FD_SETSIZE/__NFDBITS)
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : kernel24.spec.bz2
Тип     : application/x-bzip2
Размер  : 20552 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url     : <http://lists.altlinux.org/pipermail/community/attachments/20051005/b25424e2/attachment-0002.bin>


Подробная информация о списке рассылки community