UNIX & LINUX/Solaris

ulimit 명령어 유닉스 SUN 솔라리스

ori+ 2009. 1. 14. 18:11


커널 컴파일 하기

EXAMPLES
  /usr/bin/ulimit
     Example 1:  Limiting the stack size  (스택 사이즈 킬로바이트 단위수정)

     To limit the stack size to 512 kilobytes:

     example% ulimit -s 512
     example% ulimit -a
     time(seconds)         unlimited
     file(blocks)            100
     data(kbytes)            523256
     stack(kbytes)           512
     coredump(blocks)        200
     nofiles(descriptors)    64
     memory(kbytes)          unlimited

  sh/ksh
     Example 2:  Limiting the number of file descriptors( 파일수 제한)

     To limit the number of file descriptors to 12:

     example$ ulimit -n 12
     example$ ulimit -a
     time(seconds)            unlimited
     file(blocks)             41943
     data(kbytes)             523256
     stack(kbytes)            8192
     coredump(blocks)         200
     nofiles(descriptors)     12
     vmemory(kbytes)          unlimited


수정후 시스템을 재부팅 할 것.