Skip to content

운영체제 14회#73

Merged
102092 merged 2 commits intomainfrom
han
Dec 8, 2021
Merged

운영체제 14회#73
102092 merged 2 commits intomainfrom
han

Conversation

@102092
Copy link
Copy Markdown
Contributor

@102092 102092 commented Nov 29, 2021

issue : #70 , #71
due date : 2021/12/04

@102092 102092 requested a review from sigridjineth November 29, 2021 13:00
@102092 102092 self-assigned this Nov 29, 2021
Copy link
Copy Markdown
Contributor

@sigridjineth sigridjineth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

조금 추상적이네요. 가상 메모리도 주제별로 나눠서 다시 스터디해봅시다.
바로 다음 주제부터 deep dive 하면 좋을 것 같은데요, 의견 주세요.

4. 다시 페이지 테이블에 접근하여, 물리 메모리 주소를 찾음.

- 페이지 테이블을 프로세스당 하나...
- 테이블 접근하기 전에, 찾는 TLB(Translation Lookaside Buffer) 라는 공간도 있음.
Copy link
Copy Markdown
Contributor

@sigridjineth sigridjineth Nov 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

구체적인 과정을 정리해보고 싶은데 머리가 아프네요ㅠ
이 주제 하나만으로 스터디해도 좋을 것 같아요.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

일주일 2개를 줄이고, 하나만 Deep dive 하는 방식으로 변경해도 좋을듯 하네요


- 페이지 테이블을 프로세스당 하나...
- 테이블 접근하기 전에, 찾는 TLB(Translation Lookaside Buffer) 라는 공간도 있음.
- 여기서 찾고자하는 논리 주소의 값이 있으면 바로 물리 주소를 반환.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q1: 논리주소의 물리주소 변환 과정을 간단히 적어주시겠어요?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 컴파일 시점에 주소 할당이 일어나는 경우
  • 논리 주소 = 물리주소 이므로 따로 변환이 일어날 것 같진 않네요.
  1. 프로그램이 메모리에 올라갈 때 (로드 시점) 에 주소 할당이 일어나는 경우
  • 이럴경우 CPU는 프로그램이 올라간 메모리 주소의 base register 을 고려해서 물리주소로 변환시킬듯 싶네요.
  1. 실행 시점에 주소가 할당되는 경우
  • 이게 이제 위에서 언급된 사항인듯 싶어요.
  • 우선 논리 주소를 통해 TLB로 찾아보고 있으면 반환하고 없으면 MMU를 통해서 물리 주소로 바뀌도록 진행될듯 싶습니다.

참고

@102092 102092 requested a review from sigridjineth December 7, 2021 11:07
@102092 102092 merged commit f3fbfbe into main Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants