Memory Management Unit > 제품 구매 문의



제품 구매 문의

제품 구매 문의
분류 제품 문의
작성일 25-11-30 00:47  (152.♡.160.24)
제목 Memory Management Unit
내용

book-stone-memory-in-commemoration.jpgIn modern programs, packages usually have addresses that entry the theoretical maximum memory of the pc architecture, 32 or sixty four bits. The MMU maps the addresses from every program into separate areas in physical memory, which is generally much smaller than the theoretical most. This is feasible as a result of applications not often use massive amounts of memory at any one time. Most fashionable working programs (OS) work in concert with an MMU to supply digital memory (VM) assist. The MMU tracks memory use in fixed-measurement blocks often known as pages. If a program refers to a location in a page that is not in physical memory, the MMU sends an interrupt to the working system. The OS selects a lesser-used block in memory, writes it to backing storage reminiscent of a hard drive if it has been modified because it was learn in, reads the web page from backing storage into that block, and sets up the MMU to map the block to the originally requested page so the program can use it.



This is named demand paging. Some easier real-time operating systems do not help virtual memory and do not need an MMU, however still want a hardware memory safety unit. MMUs usually provide memory safety to block makes an attempt by a program to access memory it has not previously requested, which prevents a misbehaving program from using up all memory or malicious code from reading knowledge from another program. Zilog Z8000 household of processors. Later microprocessors (such because the Motorola 68030 and the Zilog Z280) positioned the MMU along with the CPU on the identical integrated circuit, as did the Intel 80286 and later x86 microprocessors. Some early techniques, especially 8-bit methods, used very simple MMUs to perform bank switching. Early techniques used base and bounds addressing that additional developed into segmentation, or used a set set of blocks as a substitute of loading them on demand. The distinction between these two approaches is the dimensions of the contiguous block of memory; paged methods break up foremost memory right into a sequence of equal sized blocks, whereas segmented systems typically allow for variable sizes.



In segmented translation, a memory tackle contains a phase number and an offset inside the phase. Segments are variable-size, and should have permissions, resembling learn, Memory Wave Experience write, and execute, related to them. A segment is loaded right into a contiguous area of physical memory. Typically, the phase quantity is used as an index into a phase desk; every entry in the section desk holds the tackle of the realm of bodily memory, the size of the segment, and other data akin to permission flags. This model has the advantage of simplicity; the memory blocks are continuous and thus only the two values, base and restrict, must be saved for mapping functions. The drawback of this method is that it leads to an effect generally known as external fragmentation. This occurs when Memory Wave Experience allocations are released but are non-contiguous. On this case, sufficient memory could also be obtainable to handle a request, but this is unfold out and cannot be allotted to a single segment.



On systems where packages begin and cease over time, this may finally result in memory being extremely fragmented and no massive blocks remaining; in this case, segments would should be moved in memory, and their phase desk entries modified to replicate the brand new bodily address, to make a contiguous house giant sufficient for a phase available. Some fashions of the PDP-eleven 16-bit minicomputer have a segmented memory management unit with a set of web page handle registers (PARs) and web page description registers (PDRs); this maps an 16-bit digital tackle to an 18-bit bodily handle. The PDP-11/70 expands that to produce a 22-bit bodily tackle. Zilog Z8010, however many different examples exist. The Intel 8086, Intel 8088, Intel 80186, and Intel 80188 provide crude memory segmentation and no memory safety. The 16-bit segment registers allow for 65,536 segments; every segment begins at a fixed offset equal to 16 times the section number; the phase beginning deal with granularity is sixteen bytes.

첨부파일