자율주행/김선영님의 리눅스 강의

리눅스 day9

Tony Lim 2020. 12. 18. 21:47
728x90

memory

page == 메모리를 규격화된 크기로 잘럿 사용한다. 인덱싱이 편하도록

segment == 프롤세스가 실제로 사용하는 메모리다.

memory lock ==  one way to ensure that a process stays in main memory and is exempt from paging. 시간이 중요한  어플리케이션에게 유용하다.

dirty page == modified page 가 디스크에 wirte back 되기전 상태이다.

mmap == ram 의 페이지와 disk의 페이지를 매핑시켜서 빠르게 처리하는 기법이다. is used for mapping between a process address space and either files or devices. When a file is mapped to a process address space, the file can be accessed like an array in the program.Swap 영역이 점점 많이 차지되면 메모리가 부족한 것이다.ulimitulimit [OPTIONS] [limit] == 멀티 유저 운영체제임으로 사용자들의 자원을 제한하여야 한다.soft limit <= hard limitulimit -u 256 == 프로세스는 256이상 fork 하지 못한다.

bash_profile 을 통하 ㄴ자원제한은 사용자 profile을 편집할 수 있으므로 강제성은 없다.

PAM을 통한 자원제한

sysctl == configure kernel parameters at runtime. kernel parameters는 /proc/sys 에 파일 형태로 존재

 

728x90

'자율주행 > 김선영님의 리눅스 강의' 카테고리의 다른 글

리눅스 day8  (0) 2020.12.17
리눅스 day7  (0) 2020.12.16
리눅스 day7(REGEX)  (0) 2020.12.16
리눅스 day6(bash)  (0) 2020.12.14
리눅스 day5 (file sytem)  (0) 2020.12.11