Home Common Problem What is the purpose of storage management?

What is the purpose of storage management?

Jul 22, 2022 pm 03:08 PM
computer Storage management

The purpose of storage management is to expand main memory capacity and improve main memory utilization efficiency. Storage management refers to the management technology of main memory. The object of memory management is main memory. It mainly achieves the purpose of efficiently utilizing main memory and expanding main memory capacity through reasonable allocation and management of main memory. The main functions of memory management include allocating and reclaiming main memory space, improving main memory utilization, expanding main memory, and effectively protecting main memory information.

What is the purpose of storage management?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

The purpose of storage management is to expand main memory capacity and improve main memory utilization efficiency.

Storage management is a management technology for main memory. Its main purpose is to achieve efficient utilization of main memory and expand main memory capacity by rationally allocating and managing main memory.

The object of memory management is main memory. Its main functions include allocating and reclaiming main memory space, improving main memory utilization, expanding main memory, and effectively protecting main memory information.

Storage Management Solution

The main purpose of the storage management solution is to solve the problem of multiple users using main memory. Its storage management solution mainly includes Partition storage management, paging storage management, segmented storage management, segmented paging storage management and virtual storage management.

Partition Storage

There are three different ways to manage partition storage: static partition, variable partition, and relocatable partition.

  • Static Partition

Static partition storage management is to divide the allocable main memory space into several consecutive areas in advance. The sizes can be the same or different. In order to explain the allocation and usage of each partition, storage management needs to set up a "main memory allocation table". The main memory allocation table indicates the starting address and length of each partition. The occupied flag bit in the table is used to indicate whether the partition is occupied. When the occupied flag bit is "0", it means that the partition has not been occupied. When allocating main memory, always select those partitions with the flag "0". When a partition is assigned to a job, fill in the name of the job occupying the partition in the occupation flag column. Using static partition storage management, the utilization of main memory space is not high. [2]

  • Variable partitioning

The variable partitioning method is to divide the partitions according to the size of the job. When a job is to be loaded, check whether there is enough space in the main memory based on the amount of main memory required by the job. If there is enough space, divide a partition according to the required amount and allocate it to the job; if not, make the job wait for main memory space. . Since the size of the partition is determined according to the actual needs of the job, and the number of partitions is also random, the waste of main memory space in the fixed partition method can be overcome.

With the loading and evacuation of jobs, the main memory space is divided into many partitions, some partitions are occupied by jobs, and some partitions are free. When a new job requires loading, you must find a large enough free area and load the job into this area. If the free area found is larger than the job requirements, the original free area will be divided into two parts after the job is loaded. , part of it is occupied by jobs; the other part is divided into a smaller free area. When a main row is evacuated, if the area it returns is adjacent to other free areas, it can be combined into a larger free area to facilitate the loading of large jobs.

Variable partition scheduling algorithm

1) First adaptation algorithm. Each time it is allocated, the unallocated table is always searched sequentially until the first free area that meets the length requirement is found. Split the found unallocated area, part of it is allocated to the job, and the other part is still a free area. This allocation algorithm may divide a large space into small areas, resulting in more main memory "fragments".

2) Best adaptation algorithm. Select the smallest partition from the free area that can meet the job requirements. This ensures that a larger area is not divided, making it easier to satisfy large jobs when loading them. When using this allocation algorithm, the free areas can be arranged smoothly in increasing sizes. When searching, always start from the smallest area until an area that meets the requirements is found.

3) Worst adaptation algorithm. Select the largest free area for the job to use, so that the remaining free area will not be too small. This algorithm is beneficial to medium and small jobs. When using this allocation algorithm, the free areas can be smoothly arranged in descending order, and the search always starts from the largest area. In this way, the table must also be rearranged when a partition is reclaimed.

Paging storage

Paging storage management is to divide the logical address space of a process into several equal-sized pieces, called pages or pages, and number each page, starting from 0, such as page 0, page 1, etc. Correspondingly, the memory space is also divided into several storage blocks of the same size as the page, called (physical) blocks or page frames, and they are also numbered, such as 0# block, 1# block, etc. When allocating memory to a process, several pages in the process are loaded in block units into multiple physical blocks that may not be contiguous. Because the last page of the process often does not fit into one piece, unusable fragmentation is formed, which is called "in-page fragmentation".

Segmented storage

In the segmented storage management method, the address space of the job is divided into several segments, and each segment defines a set of logical information. For example, there are main program segment MAIN, subprogram segment X, data segment D, stack segment S, etc. Each segment has its own name. For the sake of simplicity, a segment number can usually be used instead of the segment name. Each segment is addressed starting from 0 and uses a continuous address space. The length of the segment is determined by the length of the corresponding logical information group, so the length of each segment is different. Since the address space of the entire job is divided into multiple segments, it is two-dimensional. That is, its logical address consists of the segment number (segment name) and the address within the segment.

Segment page storage

The basic principle of the segment page system is a combination of the basic segmented storage management method and the basic paging storage management method, that is, the user first The program is divided into several segments, each segment is divided into several pages, and each segment is given a segment name.

Virtual Storage

When the storage space requirement of the program is greater than the actual memory space, it makes the program difficult to run. Virtual storage technology uses actual memory space and a relatively large external storage space to form a virtual storage space that is much larger than the actual memory space. The program runs in this virtual storage space. The basis for realizing virtual storage is the principle of locality of the program, that is, during the running process, the program often reflects the characteristics of running within a certain local scope. In time, the same instruction segments and data are often run (called temporal locality). In space, instructions and data in a certain local storage space are often run (called spatial locality). Some program segments cannot be run at the same time. Or don't get run at all. Virtual storage divides the storage space required by a program into several pages or segments. The pages and segments used by the program are stored in the memory, and they are stored in external memory when they are not used temporarily. When the pages and segments in the external memory are used, they are transferred to the memory, and vice versa, they are sent to the external memory. Pages or segments loaded into memory can be scattered.

For more related knowledge, please visit the FAQ column!

The above is the detailed content of What is the purpose of storage management?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

2024 CSRankings National Computer Science Rankings Released! CMU dominates the list, MIT falls out of the top 5 2024 CSRankings National Computer Science Rankings Released! CMU dominates the list, MIT falls out of the top 5 Mar 25, 2024 pm 06:01 PM

The 2024CSRankings National Computer Science Major Rankings have just been released! This year, in the ranking of the best CS universities in the United States, Carnegie Mellon University (CMU) ranks among the best in the country and in the field of CS, while the University of Illinois at Urbana-Champaign (UIUC) has been ranked second for six consecutive years. Georgia Tech ranked third. Then, Stanford University, University of California at San Diego, University of Michigan, and University of Washington tied for fourth place in the world. It is worth noting that MIT's ranking fell and fell out of the top five. CSRankings is a global university ranking project in the field of computer science initiated by Professor Emery Berger of the School of Computer and Information Sciences at the University of Massachusetts Amherst. The ranking is based on objective

Remote Desktop cannot authenticate the remote computer's identity Remote Desktop cannot authenticate the remote computer's identity Feb 29, 2024 pm 12:30 PM

Windows Remote Desktop Service allows users to access computers remotely, which is very convenient for people who need to work remotely. However, problems can be encountered when users cannot connect to the remote computer or when Remote Desktop cannot authenticate the computer's identity. This may be caused by network connection issues or certificate verification failure. In this case, the user may need to check the network connection, ensure that the remote computer is online, and try to reconnect. Also, ensuring that the remote computer's authentication options are configured correctly is key to resolving the issue. Such problems with Windows Remote Desktop Services can usually be resolved by carefully checking and adjusting settings. Remote Desktop cannot verify the identity of the remote computer due to a time or date difference. Please make sure your calculations

What is e in computer What is e in computer Aug 31, 2023 am 09:36 AM

The "e" of computer is the scientific notation symbol. The letter "e" is used as the exponent separator in scientific notation, which means "multiplied to the power of 10". In scientific notation, a number is usually written as M × 10^E, where M is a number between 1 and 10 and E represents the exponent.

Fix: Microsoft Teams error code 80090016 Your computer's Trusted Platform module has failed Fix: Microsoft Teams error code 80090016 Your computer's Trusted Platform module has failed Apr 19, 2023 pm 09:28 PM

<p>MSTeams is the trusted platform to communicate, chat or call with teammates and colleagues. Error code 80090016 on MSTeams and the message <strong>Your computer's Trusted Platform Module has failed</strong> may cause difficulty logging in. The app will not allow you to log in until the error code is resolved. If you encounter such messages while opening MS Teams or any other Microsoft application, then this article can guide you to resolve the issue. </p><h2&

What does computer cu mean? What does computer cu mean? Aug 15, 2023 am 09:58 AM

The meaning of cu in a computer depends on the context: 1. Control Unit, in the central processor of a computer, CU is the component responsible for coordinating and controlling the entire computing process; 2. Compute Unit, in a graphics processor or other accelerated processor, CU is the basic unit for processing parallel computing tasks.

Unable to open the Group Policy object on this computer Unable to open the Group Policy object on this computer Feb 07, 2024 pm 02:00 PM

Occasionally, the operating system may malfunction when using a computer. The problem I encountered today was that when accessing gpedit.msc, the system prompted that the Group Policy object could not be opened because the correct permissions may be lacking. The Group Policy object on this computer could not be opened. Solution: 1. When accessing gpedit.msc, the system prompts that the Group Policy object on this computer cannot be opened because of lack of permissions. Details: The system cannot locate the path specified. 2. After the user clicks the close button, the following error window pops up. 3. Check the log records immediately and combine the recorded information to find that the problem lies in the C:\Windows\System32\GroupPolicy\Machine\registry.pol file

What should I do if steam cannot connect to the remote computer? What should I do if steam cannot connect to the remote computer? Mar 01, 2023 pm 02:20 PM

Solution to the problem that steam cannot connect to the remote computer: 1. In the game platform, click the "steam" option in the upper left corner; 2. Open the menu and select the "Settings" option; 3. Select the "Remote Play" option; 4. Check Activate the "Remote Play" function and click the "OK" button.

Unable to copy data from remote desktop to local computer Unable to copy data from remote desktop to local computer Feb 19, 2024 pm 04:12 PM

If you have problems copying data from a remote desktop to your local computer, this article can help you resolve it. Remote desktop technology allows multiple users to access virtual desktops on a central server, providing data protection and application management. This helps ensure data security and enables companies to manage their applications more efficiently. Users may face challenges while using Remote Desktop, one of which is the inability to copy data from the Remote Desktop to the local computer. This may be caused by different factors. Therefore, this article will provide guidance on resolving this issue. Why can't I copy from the remote desktop to my local computer? When you copy a file on your computer, it is temporarily stored in a location called the clipboard. If you cannot use this method to copy data from the remote desktop to your local computer