- Community Home
- >
- HPE Community, Korea
- >
- HP-UX
- >
- ulimit 와 limit값의 차이점 및 값변경 방법
HP-UX
1820307
회원
2428
온라인
109622
솔루션
포럼
범주
Company
Local Language
뒤로
포럼
토론 게시판
포럼
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
토론 게시판
토론 게시판
토론 게시판
포럼
토론 게시판
뒤로
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
블로그
정보
커뮤니티 언어
언어
포럼
블로그
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 06-15-2004 10:00 PM
날짜: 06-15-2004 10:00 PM
ulimit 와 limit값의 차이점 및 값변경 방법
음...
자주 오게 됩니다. ^^
먼저, 1. ulimit 값과 limit값이 의미하는 차이점이 궁금합니다.
그리고 설정값이 다를때 어느것을 따르게 되는지도...
2. 각 명령어의 출력이 아래와 같을때 이 값들을 수정하는 방법이 알고 싶습니다.(특히, limit에서 descriptors값을 1024-> 2048로 변경하고 싶습니다. 전에 어떤분이 방법을 알려주셨는데 command line에서 수정이 되질 않았습니다.)
% limit -h
cputime unlimited
filesize unlimited
datasize 1048576 kbytes
stacksize 131072 kbytes
coredumpsize unlimited
descriptors 2048 files
memoryuse unlimited
% limit
cputime unlimited
filesize unlimited
datasize 1048576 kbytes
stacksize 131072 kbytes
coredumpsize 2097151 kbytes
descriptors 1024 files
memoryuse unlimited
답변 부탁드립니다.
이런 값들은 sam에서 변경이 안되더라구요..
자주 오게 됩니다. ^^
먼저, 1. ulimit 값과 limit값이 의미하는 차이점이 궁금합니다.
그리고 설정값이 다를때 어느것을 따르게 되는지도...
2. 각 명령어의 출력이 아래와 같을때 이 값들을 수정하는 방법이 알고 싶습니다.(특히, limit에서 descriptors값을 1024-> 2048로 변경하고 싶습니다. 전에 어떤분이 방법을 알려주셨는데 command line에서 수정이 되질 않았습니다.)
% limit -h
cputime unlimited
filesize unlimited
datasize 1048576 kbytes
stacksize 131072 kbytes
coredumpsize unlimited
descriptors 2048 files
memoryuse unlimited
% limit
cputime unlimited
filesize unlimited
datasize 1048576 kbytes
stacksize 131072 kbytes
coredumpsize 2097151 kbytes
descriptors 1024 files
memoryuse unlimited
답변 부탁드립니다.
이런 값들은 sam에서 변경이 안되더라구요..
4 응답 4
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 06-15-2004 10:00 PM
날짜: 06-15-2004 10:00 PM
ulimit 와 limit값의 차이점 및 값변경 방법
The actual parameters your after are 'maxfiles' and 'maxfiles_lim'. These define 'hard' and 'soft'limits. The shell uses 'ulimit -a' to see the actual limit.
# ulimit -a (-a option을 사용하시기 바랍니다)
결과의 값이 아래와 같다면...
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 1024
nofiles(descriptors)의 값이 1024에서 2048로 바꾸기 위해서는
# ulimit -n 2048
변수의 맨앞charactor가 option입니다.
예) # ulimit -c unlimited 이런식으로요...
이 값을 계속사용하려면 /etc/profile 이나 .profile 에 등록을 합니다.
# ulimit -a (-a option을 사용하시기 바랍니다)
결과의 값이 아래와 같다면...
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 1024
nofiles(descriptors)의 값이 1024에서 2048로 바꾸기 위해서는
# ulimit -n 2048
변수의 맨앞charactor가 option입니다.
예) # ulimit -c unlimited 이런식으로요...
이 값을 계속사용하려면 /etc/profile 이나 .profile 에 등록을 합니다.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 06-15-2004 10:00 PM
날짜: 06-15-2004 10:00 PM
ulimit 와 limit값의 차이점 및 값변경 방법
ulimit 나 limit 나 같은것 같은데요..
ulimit : user 가 사용할수있는 시스템자원의 한계
/etc/rc.d/rc.local
파일을 만들어서
명령어들을 적어 놓으면 적용이 됩니다.
ulimit -n 1024
the no of files descriptors 는 커널값중 maxfiles 를 고치면 변경될수있습니다. => 오라클에서 한 프로세서가 열수잇는 file 갯수로서 값을 변경해주어야 하는 값입니다.
ulimit : user 가 사용할수있는 시스템자원의 한계
/etc/rc.d/rc.local
파일을 만들어서
명령어들을 적어 놓으면 적용이 됩니다.
ulimit -n 1024
the no of files descriptors 는 커널값중 maxfiles 를 고치면 변경될수있습니다. => 오라클에서 한 프로세서가 열수잇는 file 갯수로서 값을 변경해주어야 하는 값입니다.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 06-15-2004 10:00 PM
날짜: 06-15-2004 10:00 PM
ulimit 와 limit값의 차이점 및 값변경 방법
1. ulimit 과 limit는 resurce name만 다를뿐 실제로는 거의 같은것
같습니다.
# limit
cputime unlimited
filesize unlimited
datasize 262144 kbytes
stacksize 8192 kbytes
coredumpsize 2097151 kbytes
descriptors 2048 files
memoryuse unlimited
# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 262144
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048
다만 차이점이라면 limit은 C shell에서만 실행되고 다른 shell에서는
지원이 되지 않는다는 것이 차이점인 것 같습니다.
다른 shell에서는 limit대신에 ulimit을 지원해주고요 C shell은
limit과 ulimit 둘다 지원해주네요
그래서 제 생각에는 C shell에서만 limit이 지원되는걸로 봐서 C shell
에서는 limit이 ulimit 보다 우선하지 않을까 하는 생각이 듭니다.
2. 두번째 질문의 답변은
먼저 결론부터 말씀드리자면 command line에서 수정하는 방법은 다음과 같이 하시면 됩니다.
% limit -h descriptors 2048
% limit -h
여기서 -h 옵션을 지정해주면 hard limit이 되고 current limit보다
우선합니다.-h 옵션을 생략하면 current limit값을 보여줍니다.
같습니다.
# limit
cputime unlimited
filesize unlimited
datasize 262144 kbytes
stacksize 8192 kbytes
coredumpsize 2097151 kbytes
descriptors 2048 files
memoryuse unlimited
# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 262144
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048
다만 차이점이라면 limit은 C shell에서만 실행되고 다른 shell에서는
지원이 되지 않는다는 것이 차이점인 것 같습니다.
다른 shell에서는 limit대신에 ulimit을 지원해주고요 C shell은
limit과 ulimit 둘다 지원해주네요
그래서 제 생각에는 C shell에서만 limit이 지원되는걸로 봐서 C shell
에서는 limit이 ulimit 보다 우선하지 않을까 하는 생각이 듭니다.
2. 두번째 질문의 답변은
먼저 결론부터 말씀드리자면 command line에서 수정하는 방법은 다음과 같이 하시면 됩니다.
% limit -h descriptors 2048
% limit -h
여기서 -h 옵션을 지정해주면 hard limit이 되고 current limit보다
우선합니다.-h 옵션을 생략하면 current limit값을 보여줍니다.
위에 명시된 의견은 Hewlett Packard Enterprise가 아닌 저자의 개인 의견입니다. 이 사이트를 사용하면 이용 약관에 동의하게되며 참여 규칙 .
회사
주요 내용 알아보기
뉴스 및 이벤트
© Copyright 2025 Hewlett Packard Enterprise Development LP