From: Alexander Vasiliev <vav@tascom.ru>
To: ALT Linux Community <community@altlinux.ru>
Subject: Re: [Comm] Максимальное количество открытых файлов
Date: Wed, 5 Oct 2005 16:39:42 +0400
Message-ID: <20051005123942.GB697@dennis.td.tascom.ru> (raw)
In-Reply-To: <20051005060013.GB13692@dennis.td.tascom.ru>
[-- Attachment #1: Type: text/plain, Size: 270 bytes --]
On Wed, Oct 05, 2005 at 10:00:13AM +0400, Alexander Vasiliev wrote:
> Если ядро 2.4, то пересобрать kernel.
> Патчи и spec приложены.
> (В spec'e номера патчей 11000-11002.)
Извините, файлы приложены здесь.
--
Александр Васильев
ЗАО "Таском"
vav@tascom.ru
[-- Attachment #2: fs.patch --]
[-- Type: text/plain, Size: 432 bytes --]
--- 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)
[-- Attachment #3: limits.patch --]
[-- Type: text/plain, Size: 773 bytes --]
--- 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 */
[-- Attachment #4: posix_types.patch --]
[-- Type: text/plain, Size: 335 bytes --]
--- 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)
[-- Attachment #5: kernel24.spec.bz2 --]
[-- Type: application/x-bzip2, Size: 20552 bytes --]
next prev parent reply other threads:[~2005-10-05 12:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-03 7:38 Olvin
2005-10-03 11:15 ` Alexey Borovskoy
2005-10-03 14:55 ` Olvin
2005-10-04 10:51 ` Alexey Borovskoy
2005-10-04 13:48 ` Olvin
2005-10-05 6:00 ` Alexander Vasiliev
2005-10-05 12:39 ` Alexander Vasiliev [this message]
2005-10-05 13:33 ` Olvin
2005-10-05 14:02 ` Alexander Vasiliev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051005123942.GB697@dennis.td.tascom.ru \
--to=vav@tascom.ru \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git