Techday
웨비나

Easy-to-Learn Linux System Programming - Various Memory Allocation Techniques

2018.04.06 10:30~12:00 정재준 대표 / 전기전자 평생교육원
This webinar provides an overview of memory in Linux system programming.
 
Memory is a fundamental and critical component—it is a resource used by processes. Let us learn about how to allocate, utilize, and deallocate these memory resources. While many users tend to prefer more memory, what matters most is how to utilize memory efficiently.
 
Process Address Space
Like modern operating systems, Linux virtualizes physical memory resources. Processes do not access physical memory directly. Instead, the kernel maps each process to a unique virtual address space. This address space is linear, starting from 0 and increasing to its maximum value.
 
Memory Region Division
The kernel arranges pages into blocks and grants access permissions. These blocks are called memory regions, segments, or mappings. The text segment contains the process's program code, strings, constant variables, and read-only data.
댓글
4 Comments
김*환 (2018-12-13 오전 10:53:44)
소켓 프로그래밍도 가능 한가요?? 운영체제 올릴 수 있으면 쉽게 가능할 것 같은데.. 대안은 Wiznet과 같은 모듈을 사용하는 방법 밖에 없나요??
최*근 (2018-10-17 오전 10:04:16)
2. 지금은 멀티HW쓰레드와 멀티코어가 일반적으로 쓰이는데, 이럴 땐 여러 프로세스를 시분할이 아닌, 멀티코어가 각각 실행시켜 몇 개의 프로세스가 동시에 동작을 할텐데 그럴 땐 저 가상주소에서 프로세스들이 저 유저 영역을 나눠가지나요?
최*근 (2018-10-17 오전 10:00:31)
1. 28분에 main내부변수 size의 주소는 0x76CE_F568이고 mmap을 하여 p2를 통해 할당받은 주소는 0x76F3_5000인데, 변수 size는 Stack영역이라서 P2영역보다 주소값이 더 커야하는데 왜 더 작나요?
최*근 (2018-10-17 오전 9:58:21)
질문이 있는데