Advanced Operating Systems: Lecture 25 - Mr. Farhan Zaidi

19 4 0
Advanced Operating Systems: Lecture 25 - Mr. Farhan Zaidi

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Advanced Operating Systems - Lecture 25: Segmentation. This lecture will cover the following: segmentation; hardware support; segment lookups; combined segmentation and paging; segmentation with paging translation pros & cons; efficient translations and caching; translation lookaside buffer (TLB);...

CS703 ­ Advanced  Operating Systems By Mr Farhan Zaidi     Lecture No.  25 Overview of today’s lecture     Segmentation Combined Segmentation and paging Efficient translations and caching Translation Lookaside Buffer (TLB) Segmentation  Paging      mitigates various memory allocation complexities (e.g., fragmentation) view an address space as a linear array of bytes divide it into pages of equal size (e.g., 4KB) use a page table to map virtual pages to physical page frames  page (logical) => page frame (physical) Segmentation   partition an address space into logical units  stack, code, heap, subroutines, … a virtual address is What’s the point?  More “logical”  absent segmentation, a linker takes a bunch of independent modules that call each other and organizes them  they are really independent; segmentation treats them as such Facilitates sharing and reuse  a segment is a natural unit of sharing – a subroutine or function A natural extension of variable-sized partitions  variable-sized partition = segment/process  segmentation = many segments/process   Hardware support  Segment table   multiple base/limit pairs, one per segment segments named by segment #, used as index into table   a virtual address is offset of virtual address added to base address of segment to yield physical address Segment lookups segment table limit physical memory base segment segment # offset segment virtual address segment

Ngày đăng: 05/07/2022, 12:30

Mục lục

    CS703 - Advanced Operating Systems

    Overview of today’s lecture

    What’s the point?

    Segmentation pros & cons

    Segmentation with paging translation

    Segmentation with paging translation Pros & Cons

    Integrating VM and Cache

    Speeding up Translation with a TLB

    Translation Buffer, Translation Lookaside Buffer

Tài liệu cùng người dùng

  • Đang cập nhật ...