#ulimit -a:
core file size = 0
data seg size = unlimited
file size = unlimited
max locked memory = unlimited
max memory size = unlimited
open files = 1024
pipe size (512 bytes) = 8
stack size = 8192
cpu time = unlimited
max user processes = 256
virtual memory = unlimited
我必須要修改 open files and max user processes 的值
open files我已經找到了
在 /usr/src/linux/include/linux/limit.h
#define OPEN_MAX 1024 /* # open files a process may have */
那行max user processes的值要如何修改阿
網路上有寫是在/usr/src/linux/include/linux/tasks.h裡
#define NR_TASKS 2048
/* On x86 Max 4092, or 4090 w/APM configured. *
#define MAX_TASKS_PER_USER (NR_TASKS/2)
#define MIN_TASKS_LEFT_FOR_ROOT 4
但是2.4.21的kernel卻沒有 tasks.h 這個檔案