• Problems of virtual memory implementation: Memory fragmentation
  • Linux: This Book Includes 4 Manuscripts. The Underground Bible to the unix operating System with Tools On Security and Kali Hacking to Understand Computer Programming, Data Science and Command Line




    Download 6,34 Mb.
    Pdf ko'rish
    bet62/203
    Sana10.01.2024
    Hajmi6,34 Mb.
    #134102
    1   ...   58   59   60   61   62   63   64   65   ...   203
    Bog'liq
    Linux This Book Includes 4 Manuscripts The Underground Bible

    The Concept Of Virtual Memory
    Virtual memory - a technology that introduces I level additional
    conversions between memory addresses used by the process and physical
    memory addresses used by the desktop app. Such transformations should
    ensure that the memory is protected and that the process is not bound to
    physical memory addresses.
    With virtual memory, the physical memory of the process address space can
    be fragmented, since the bulk of the memory occupied by the process
    remains free most of the time. There is a so-called ninety to ten rule or a
    localization rule that states that 90% of memory accesses in the process
    account for 10% of its address space. You can move the addresses so that
    only the sections of the process address space that are actually in use at that
    time correspond to the main memory.
    In this case, unused partitions of the address space can be mapped to slower
    memory, such as hard disk space, and at this time other processes can use
    the main memory, which previously displayed the addresses of these
    partitions. When a partition is needed, its data is loaded from disk to main
    memory, perhaps instead of partitions that became unnecessary at a
    particular moment (and which, in turn, will now be stored on disk). Data
    can be read from disk at a village thus a key memory LDPE time addressing
    them.
    In this way, you can significantly increase the size of the process address
    space and ensure that processes larger than the main memory are executed.


    Problems of virtual memory
    implementation: Memory fragmentation
    The main problem that occurs when using virtual memory is the efficiency
    of its implementation. Because address conversions need to be done every
    time memory is accessed, careless implementation of these conversions can
    have the worst effect on the performance of the entire system. If most
    memory accesses make the system actually have to access the disk (which
    is tens of thousands of times slower than the main memory), it will be
    virtually impossible to operate such a system. The issue of improving the
    performance of virtual memory implementation will be discussed.
    Another problem is the memory fragmentation that occurs when free
    memory cannot be used. There are internal and external memory
    fragmentations. The external is reduced to the fact that due to the allocation
    and subsequent freeing of memory, it creates free blocks of small size
    - holes . Because of this situation may arise in which it is impossible to
    provide a continuous memory block size N, because there is no contiguous
    free block of size S ≥ N, although in general, the amount of free memory
    space more than N. So in the above case, there is not enough space to
    execute the P5 process due to external fragmentation.
    Internal fragmentation is the result that, on request, memory blocks larger
    than actually used are allocated, resulting in unused areas inside the
    dedicated blocks that can no longer be allocated to something else. 

    Download 6,34 Mb.
    1   ...   58   59   60   61   62   63   64   65   ...   203




    Download 6,34 Mb.
    Pdf ko'rish

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Linux: This Book Includes 4 Manuscripts. The Underground Bible to the unix operating System with Tools On Security and Kali Hacking to Understand Computer Programming, Data Science and Command Line

    Download 6,34 Mb.
    Pdf ko'rish