파일 시스템(File system) - 2. big picture
1. Views on Files
1) User
file name + bytes offset
2) Kernel
ino + logical block#
3) Device Driver
physical Block#
4) Device
drivce#
+ cylinder# + head# + sector#
#차이가 발생하는 이유는?
UNIX OS에서는 file을 bytes seqeunce로 정의했지만, 실제로 저장하는 위치는 block device이므로 block단위 io에 맞게 매핑이 필요함.
#Buffer Cache
최근에 접근한 File의 Data Block내용을 Main Memory에 저장해 두는 공간
디스크로부터 한번 읽어온 파일의 내용에 다시 접근할때, 빠르게 읽어 올 수 있다.
#User space
file io
---
#Kernel space
VFS
individual Files Systems(EXT3, EXT4, JFFS2...)
Buffer Cache
IO scheduler
Driver
---
#Storage Media
'코딩이야기 > 운영체제' 카테고리의 다른 글
파일 시스템(File system) - 4. Disk Space Management (0) | 2016.04.11 |
---|---|
파일 시스템(File system) - 3. File Structure (0) | 2016.04.11 |
파일시스템(File system) - 1. files and directories (0) | 2016.04.11 |
04-4.Processes and Threads - Process creation and Termination (0) | 2016.02.19 |
04-3.Processes and Threads - Context Switching (0) | 2016.02.19 |