----- Original Message -----
From: "Igor Khasilev" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 27, 2001 2:14 PM
Subject: Re: [OOPS] oops perfomance patches
....
> > ����� ������ �������� oopsctl stat ����� ��������.
> �������� oops ���� �� ����� ������� ����� 2000 ������ (��� ����������� �
> ������ 980, ��������� ������ ���� ������ ������� � �������� � � ��������)
> ������� � �� ����� ������� ���������� �� 'oopsctl stat'.
> > ���������� ������ ���� �� ������� ������������� ����� �������� ������
���
> > ������ ��������? ��� oops ��� �������� ������ ���� �����, �� ����������?
> ��, �� ������ �������� ����� ��������� ��� ������.
oops -c /etc/oops/oops.cfg -v -d
RLIMIT_DATA changed to maximum: 4294967295
warning: Can't change RLIMIT_NOFILE
RLIMIT_NPROC changed to maximum: 4294967295
Loading modules from /usr/lib/oops
Loading module /usr/lib/oops/accel.so
Insert module 'accel'
Accel started
....
�.�. oops ������� ������
RLIMIT_DATA, RLIMIT_NPROC, �
RLIMIT_NOFILE, _RLIMIT_CORE
�� ��������.
����, � oops.c
----------------------
#if defined(RLIMIT_DATA)
if ( !getrlimit(RLIMIT_DATA, &rl) ) {
rl.rlim_cur = rl.rlim_max;
if ( !setrlimit(RLIMIT_DATA, &rl) ) {
printf("RLIMIT_DATA changed to maximum: %u\n",
(unsigned)rl.rlim_max);
} else {
printf("warning: Can't change RLIMIT_DATA\n");
}
}
#endif
#if defined(RLIMIT_NOFILE)
if ( !getrlimit(RLIMIT_NOFILE, &rl) ) {
rl.rlim_cur = rl.rlim_max = OPEN_FILES_MAXIMUM;
if ( !setrlimit(RLIMIT_NOFILE, &rl) ) {
printf("RLIMIT_NOFILE changed to maximum: %u\n",
(unsigned)rl.rlim_max);
} else {
printf("warning: Can't change RLIMIT_NOFILE\n");
}
}
#endif
#if defined(_RLIMIT_CORE)
if ( !getrlimit(RLIMIT_CORE, &rl) ) {
rl.rlim_cur = 0;
if ( !setrlimit(RLIMIT_CORE, &rl) ) {
printf("RLIMIT_CORE changed to minimum: %u\n",
(unsigned)rl.rlim_cur);
} else {
printf("warning: Can't change RLIMIT_CORE\n");
}
}
#endif
#if defined(RLIMIT_NPROC) && defined(LINUX)
if ( !getrlimit(RLIMIT_NPROC, &rl) ) {
rl.rlim_cur = RLIM_INFINITY;
if ( !setrlimit(RLIMIT_NPROC, &rl) ) {
printf("RLIMIT_NPROC changed to maximum: %u\n",
(unsigned)rl.rlim_cur);
} else {
printf("warning: Can't change RLIMIT_NPROC\n");
}
}
#endif
----------------------
������, RLIMIT_NOFILE �� ��������� ��� ���������� oops.
������ glibc
Version: 2.2.4-3.
uname -a
Linux hive 2.4.13 #10 Sat Oct 27 21:07:09 MSD 2001 i686 unknown
� /usr/src/linux-2.4.13/include/asm-i386/resource.h
-----------------
...
/*
* Resource limits
*/
#define RLIMIT_CPU 0 /* CPU time in ms */
#define RLIMIT_FSIZE 1 /* Maximum filesize */
#define RLIMIT_DATA 2 /* max data size */
#define RLIMIT_STACK 3 /* max stack size */
#define RLIMIT_CORE 4 /* max core file size */
#define RLIMIT_RSS 5 /* max resident set size */
#define RLIMIT_NPROC 6 /* max number of processes */
#define RLIMIT_NOFILE 7 /* max number of open files */
#define RLIMIT_MEMLOCK 8 /* max locked-in-memory address
space */
#define RLIMIT_AS 9 /* address space limit */
#define RLIMIT_LOCKS 10 /* maximum file locks held */
#define RLIM_NLIMITS 11
...
----------
��� � ��� ����� ��������� �� ������� RLIMIT_NOFILE?
> � ���������, �� ���� ������ ��������� ���������� ��� � ��� �����
�����������
> � ������� ��� ����� ��������.
> Igor Khasilev |
> PACO Links, igor at paco dot net |
=====================================================================
If you would like to unsubscribe from this list send message to
[EMAIL PROTECTED] with "unsubscribe oops" in message body.
Archive is accessible on http://lists.paco.net/oops-rus/