On Mon, 29 Oct 2001, Ruslan Kazansky wrote:
> 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_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
[skip]
> ������, RLIMIT_NOFILE �� ��������� ��� ���������� oops.
���������, oops �������� ��� �����(����� warning-� �� ������), �� �� ����� -
������� �� ����.
>
> ������ 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/
>
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/