ulimit

c or linux 2007. 9. 10. 08:16


처리할수 있는 최대 파일수
[root@sky279 14:48:35 ~]# cat /proc/sys/fs/file-max
32768

limit의 결과는 계정마다 다르게 나온다.

[root@sky279 14:50:06 ~]# limit
cputime         unlimited
filesize        unlimited
datasize        unlimited
stacksize       8192 kbytes
coredumpsize    unlimited
memoryuse       unlimited
vmemoryuse      unlimited
descriptors     16000
memorylocked    unlimited
maxproc         16000

 

실제 소스 확인
[root@sky279 14:53:40 /usr/src/linux-2.4/include/linux]# cat limits.h
#ifndef _LINUX_LIMITS_H
#define _LINUX_LIMITS_H

#define NR_OPEN         1024

#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 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 */
#define NAME_MAX         255    /* # chars in a file name */
#define PATH_MAX        4096    /* # chars in a path name including nul */
#define PIPE_BUF        4096    /* # bytes in atomic write to a pipe */
#define XATTR_NAME_MAX   255    /* # chars in an extended attribute name */
#define XATTR_SIZE_MAX 65536    /* size of an extended attribute value (64k) */
#define XATTR_LIST_MAX 65536    /* size of extended attribute namelist (64k) */

#define RTSIG_MAX         32

#endif

 

참조하기.

http://www.osx86.org/study/linux/procfs.txt

'c or linux' 카테고리의 다른 글

awk상에서 시스템 명령어 사용하기  (0) 2008.02.13
쉘 스크립트에서의 함수 파라미터  (0) 2007.09.11
crontab 에러  (0) 2007.09.08
crontab 디렉토리  (0) 2007.09.08
Authentication token is no longer valid  (0) 2007.09.07
Posted by '김용환'

댓글을 달아 주세요