CN115344505A - Memory access method based on perception classification - Google Patents

Memory access method based on perception classification Download PDF

Info

Publication number
CN115344505A
CN115344505A CN202210915521.4A CN202210915521A CN115344505A CN 115344505 A CN115344505 A CN 115344505A CN 202210915521 A CN202210915521 A CN 202210915521A CN 115344505 A CN115344505 A CN 115344505A
Authority
CN
China
Prior art keywords
storage
data
stored
access
speed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210915521.4A
Other languages
Chinese (zh)
Other versions
CN115344505B (en
Inventor
李庭育
陈育鸣
王展南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Huacun Electronic Technology Co Ltd
Original Assignee
Jiangsu Huacun Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Huacun Electronic Technology Co Ltd filed Critical Jiangsu Huacun Electronic Technology Co Ltd
Priority to CN202210915521.4A priority Critical patent/CN115344505B/en
Publication of CN115344505A publication Critical patent/CN115344505A/en
Application granted granted Critical
Publication of CN115344505B publication Critical patent/CN115344505B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a memory access method and a system based on perception classification, which are applied to the technical field of storage management, and the method comprises the following steps: by obtaining the attribute information of the data to be stored. And performing storage hierarchical matching according to the attribute information to obtain constraint conditions. And obtaining the storage evaluation data of the user and generating a storage perception factor. And storing the data to be stored based on the constraint conditions and the storage perception factors to obtain storage data, and performing storage access data statistics to obtain a statistical result. And performing access frequency matching analysis based on the storage access statistical result and the storage perception factor to obtain an access frequency matching analysis result. And obtaining an adjusting storage instruction according to the access frequency matching analysis result, and controlling storage adjustment of the storage data based on the adjusting storage instruction. The problem of among the prior art data storage can't carry out the importance perception to the storage data and carry out classification storage, cause important data to read slowly and influence the technical problem of system operating speed is solved.

Description

Memory access method based on perception classification
Technical Field
The invention relates to the technical field of storage management, in particular to a memory access method based on perception classification.
Background
With the development of the age of digital information, a large amount of data is generated and stored in daily life, and a computer system records the data in a certain format on a storage medium inside the computer. In the prior art, most computer storage devices adopt two hard disks with different reading and writing speeds for data storage, the high-speed storage hard disk with high reading and writing speeds has higher unit capacity manufacturing cost so as to control the cost, the high-speed storage hard disk has smaller capacity, and the low-speed storage hard disk with low reading and writing speeds has lower unit capacity manufacturing cost, so the low-speed storage hard disk has larger capacity. However, in the actual use process of the user, the data storage often adopts a default storage path, and the storage location of the data is fixed and unchanged under the condition that the user does not adjust after the data storage is completed, so that a large amount of useless or unimportant data is stored in the high-speed storage hard disk, and the unimportant data occupies the high-speed storage space when the user uses the device, so that other important data cannot be stored in the high-speed storage space, and further the system operation speed is reduced.
Therefore, in the prior art, importance sensing and classified storage of stored data cannot be performed, so that the unimportant stored data occupies a high-speed storage space, other important data cannot be stored in the high-speed storage space, and further, the important data is slowly read to influence the operating speed of the system.
Disclosure of Invention
The application provides a memory access method and system based on perception classification, which are used for solving the technical problems that in the prior art, importance perception cannot be carried out on stored data and classified storage cannot be carried out, unimportant stored data occupy a high-speed storage space, other important data cannot be stored in the high-speed storage space, and further, the important data are slowly read to influence the operation speed of a system.
In view of the foregoing problems, the present application provides a memory access method and system based on perceptual classification.
In a first aspect of the present application, a memory access method based on perceptual classification is provided, where the method includes: acquiring basic information of data to be stored, and acquiring attribute information according to the basic information; performing storage hierarchical matching according to the attribute information to obtain a first storage constraint condition; obtaining storage evaluation data of the user for the data to be stored, and generating a storage perception factor according to the storage evaluation data; storing the data to be stored based on the first storage constraint condition and the storage perception factor to obtain stored data; counting the storage access data of the storage data to obtain a storage access statistical result; performing access frequency matching analysis based on the storage access statistical result and the storage perception factor to obtain an access frequency matching analysis result; and obtaining an adjusting storage instruction according to the access frequency matching analysis result, and controlling the storage adjustment of the storage data based on the adjusting storage instruction.
In a second aspect of the present application, a memory access system based on perceptual classification is provided, the system including: the basic information acquisition module is used for acquiring basic information of data to be stored and acquiring attribute information according to the basic information; the first storage constraint condition acquisition module is used for carrying out storage hierarchical matching according to the attribute information to obtain a first storage constraint condition; the storage perception factor generation module is used for acquiring storage evaluation data of the user on the data to be stored and generating a storage perception factor according to the storage evaluation data; the data storage module is used for storing the data to be stored based on the first storage constraint condition and the storage perception factor to obtain stored data; the storage access statistical result acquisition module is used for carrying out storage access data statistics on the storage data to obtain a storage access statistical result; the access frequency matching analysis result acquisition module is used for carrying out access frequency matching analysis based on the storage access statistical result and the storage perception factor to obtain an access frequency matching analysis result; and the storage adjusting module is used for obtaining an adjusting storage instruction according to the access frequency matching analysis result and controlling the storage adjustment of the storage data based on the adjusting storage instruction.
One or more technical solutions provided in the present application have at least the following technical effects or advantages:
the method provided by the embodiment of the application obtains the attribute information of the data to be stored. And performing storage hierarchical matching according to the attribute information to obtain a storage constraint condition, and constraining the storage position of the data to be stored. And then, obtaining storage evaluation data of the data to be stored of the user, generating a storage perception factor, and perceiving and acquiring the importance degree of the data to be stored. And storing the data to be stored based on the constraint conditions and the storage perception factors to obtain storage data, and performing storage access data statistics according to the storage data to obtain an access frequency statistical result of the storage data. And performing access frequency matching analysis based on the storage access statistical result and the storage perception factor to obtain an access frequency matching analysis result. And obtaining an adjusting storage instruction according to the access frequency matching analysis result, and controlling the storage adjustment of the storage data based on the adjusting storage instruction. The method and the device have the advantages that the importance of the stored data is sensed, the stored data in the high-speed storage space is optimally adjusted, and the technical effects that the reading speed of the important data is further guaranteed and the running speed of the system is improved are further achieved. The technical problem that in the prior art, data storage cannot sense importance of stored data and store the stored data in a classified manner, so that the important data are stored in a low-speed storage space, and the slow data reading affects the running speed of a system is solved.
The above description is only an overview of the technical solutions of the present application, and the present application may be implemented in accordance with the content of the description so as to make the technical means of the present application more clearly understood, and the detailed description of the present application will be given below in order to make the above and other objects, features, and advantages of the present application more clearly understood.
Drawings
Fig. 1 is a schematic flowchart of a memory access method based on perceptual classification according to the present application;
fig. 2 is a schematic flowchart illustrating a process of obtaining a first storage constraint in a memory access method based on perceptual classification according to the present application;
fig. 3 is a schematic flowchart illustrating a process of obtaining a dump instruction in a memory access method based on perceptual classification according to the present application;
fig. 4 is a schematic structural diagram of a memory access system based on perceptual classification according to the present application.
Description of reference numerals: the system comprises a basic information acquisition module 11, a first storage constraint condition acquisition module 12, a storage perception factor generation module 13, a data storage module 14, a storage access statistical result acquisition module 15, an access frequency matching analysis result acquisition module 16 and a storage adjustment module 17.
Detailed Description
The application provides a memory access method and system based on perception classification, which are used for solving the technical problems that in the prior art, importance perception cannot be carried out on stored data and classified storage cannot be carried out, unimportant stored data occupy a high-speed storage space, other important data cannot be stored in the high-speed storage space, and further, the important data are slowly read to influence the operation speed of a system.
The technical solution in the present application will be clearly and completely described below with reference to the accompanying drawings. The described embodiments are only some of the implementations possible in the present application, and not all of the implementations possible in the present application.
Example one
As shown in fig. 1, the present application provides a memory access method based on perceptual classification, where the method includes:
step 100: acquiring basic information of data to be stored, and acquiring attribute information according to the basic information;
specifically, with the development of the era of digital information, a large amount of data is generated and stored in daily life, and the data is recorded in a certain format on a storage medium inside a computer. The data storage of the computer is generally stored in a memory of the computer, wherein the memory commonly used for the computer includes a hard disk, a floppy disk, an optical disk, a U-disk, and the like, and the hard disk device is more commonly used in the computer storage. The hard disk equipment is divided into a mechanical hard disk and a solid state hard disk, and the mechanical hard disk has lower manufacturing cost under unit capacity, but has lower read-write speed. The solid state disk has higher manufacturing cost per unit capacity, but the read-write speed is higher. In this embodiment, the method is provided in a situation where storage hard disks with large difference in read/write speed coexist. The basic information of the data to be stored is acquired, wherein the basic information of the data to be stored comprises various data-related information such as the size, the type and the storage time node of the data. And then obtaining attribute information according to the basic information, wherein the attribute information comprises the size, the type and the storage time node information of the data.
Step 200: performing storage hierarchical matching according to the attribute information to obtain a first storage constraint condition;
step 300: obtaining storage evaluation data of the user for the data to be stored, and generating a storage perception factor according to the storage evaluation data;
step 400: storing the data to be stored based on the first storage constraint condition and the storage perception factor to obtain stored data;
specifically, the size of the data to be stored is obtained according to the attribute information of the obtained data, and the data to be stored is subjected to hierarchical matching according to the size of the data to be stored, so that the first storage constraint condition is obtained. The first storage constraint condition is used for constraining a specific storage position of the data to be stored. And then, acquiring storage evaluation data of the user on the data to be stored, wherein the storage evaluation data can be acquired by the user through the preset use frequency and whether the important mark exists in the data to be stored, and the preset use frequency and the important mark can be set by the user. And generating a storage perception factor according to the storage evaluation data, converting the storage evaluation data into specific parameter data when the storage perception factor is generated, for example, setting the preset use frequency and the important identifier of the data to be stored as the specific parameter data, and further generating the storage perception factor, wherein the storage perception factor is used for reflecting the importance degree of the parameter of the data to be stored. And finally, storing the data to be stored based on the acquired first storage constraint condition and the storage perception factor to acquire the storage data.
As shown in fig. 2, the method steps 200 provided in the embodiment of the present application further include:
step 210: acquiring data size information of the stored data according to the attribute information;
step 220: setting a predetermined data size constraint threshold;
step 230: judging whether the data size information meets the predetermined data size constraint threshold;
step 240: when the data size information does not meet the preset data size constraint threshold, matching a low-speed storage constraint condition;
step 250: and obtaining the first storage constraint condition according to the low-speed storage constraint condition.
Specifically, the data size information of the stored data is acquired according to the acquired attribute information, and whether the data size information meets the predetermined data size constraint threshold is judged by setting the size threshold of the stored data. And when the data size does not meet the preset data size, namely the preset data size constraint threshold is not met, matching a low-speed storage constraint condition for the stored data, and finally obtaining a first storage constraint condition according to the low-speed storage constraint condition. The size threshold of the stored data can be set according to actual needs. The storage data are distinguished by setting a predetermined data size constraint threshold, the storage space of high-speed storage is occupied by the storage file with small data volume for subsequent realization, and the space waste of high-speed storage caused by the fact that the storage data with small data volume cannot exert the speed advantage of high-speed storage is avoided.
The method steps 200 provided by the embodiment of the present application further include:
step 260: when the data size information meets the preset data size constraint threshold, obtaining a first high-speed storage weight bias coefficient according to the ratio of the data size information to the preset data size constraint threshold;
step 270: acquiring real-time system memory occupation information;
step 280: performing high-speed storage bias weight analysis according to the real-time system memory occupation information to obtain a second high-speed storage bias weight coefficient;
step 290: and obtaining the first storage constraint condition according to the first high-speed storage bias coefficient and the second high-speed storage bias coefficient.
Specifically, when the data size information satisfies the predetermined data size constraint threshold, the data size to be stored is large, and the speed advantage can be fully exerted by high-speed storage. And obtaining a first high-speed storage bias weight coefficient according to the ratio of the data size information and a preset data size constraint threshold value. The first high-speed storage bias weight coefficient is used for reflecting the size proportional relation between the data size of the stored data and the preset data size, and the bias weight coefficient is higher when the data size is larger. And then acquiring the memory occupation information of the real-time system, namely acquiring the residual storage space information of the high-speed storage hard disk of the real-time system. And performing high-speed storage bias analysis according to the real-time system memory occupation information, analyzing the proportion of the storage data in the residual high-speed storage space, and acquiring a second high-speed storage bias coefficient, wherein the second high-speed storage bias coefficient is the proportional relation between the data volume of the storage data and the residual storage space of the high-speed storage hard disk, and the second high-speed storage bias coefficient is smaller when the data volume of the storage data occupies larger residual storage space of the high-speed storage hard disk. And finally, obtaining the first storage constraint condition through a first high-speed storage bias weight coefficient and a second high-speed storage bias weight coefficient. And guiding the system to constrain the storage position of the storage data through the first high-speed storage bias weight coefficient and the second high-speed storage bias weight coefficient to generate a first storage constraint condition. When the sum of the obtained first high-speed storage bias weight coefficient and the second high-speed storage bias weight coefficient is higher, the system restrains the storage position of the storage data according to the size of the value, the higher the value is, the stronger the restraint for storing the storage data in the high-speed storage is, and otherwise, the weaker the restraint for storing the storage data in the high-speed storage is.
As shown in fig. 3, the method steps 300 provided in the embodiment of the present application further include:
step 310: obtaining preset access frequency data according to the stored evaluation data;
step 320: judging whether the preset access frequency data meet a preset frequency threshold value or not;
step 330: when the preset access frequency data meet the preset frequency threshold, judging whether the second high-speed storage weight bias coefficient meets a preset system memory occupation threshold or not;
step 340: when the second high-speed storage bias weight coefficient meets the preset system memory occupation threshold, a dump instruction is generated;
step 350: and temporarily storing the storage data to a high-speed storage space according to the unloading instruction.
Specifically, the predetermined access frequency data is obtained according to the stored evaluation data, wherein the predetermined access frequency data is usage frequency data expected by the user. And then judging whether the preset access frequency data meets a preset frequency threshold, wherein the preset frequency threshold is a preset access frequency, and the specific numerical value can be set according to the actual use condition. When the predetermined access frequency data meets the predetermined frequency threshold, that is, the predetermined access frequency is greater than the predetermined frequency threshold, it indicates that the access frequency expected by the user of the stored data is higher than the set threshold. Then, the next step is carried out to judge whether the second high-speed storage bias weight coefficient meets a preset system memory occupation threshold value, wherein the preset system memory occupation threshold value is an occupation proportion threshold value of the storage data occupying the high-speed storage residual space. The preset system memory occupation threshold can be set according to actual conditions, and slow system operation caused by large space occupation proportion of stored data is avoided. And when the second high-speed storage bias weight coefficient meets the preset system memory occupation threshold value, namely when the second high-speed storage bias weight coefficient is smaller than or equal to the preset system memory occupation threshold value, the proportion of the residual space occupied by the storage data is smaller, and a transfer instruction is generated. Wherein the dump instruction is used to temporarily store the storage data to the high-speed storage space. The method comprises the steps of obtaining the expected use frequency and the occupied space proportion of the stored data, setting corresponding threshold conditions to complete sensing of the data, and further achieving transfer storage of the stored data according to sensing results.
The method steps 300 provided by the embodiment of the present application further include:
step 360: constructing an idle time evaluation system memory occupation interval;
step 370: when the data to be stored is temporarily stored in the high-speed storage space, acquiring occupied data of the system memory according to the unloading instruction, and judging whether a data acquisition result meets the idle time to evaluate a system memory occupation interval;
step 380: and when the detection data acquisition result meets the idle time evaluation system memory occupation interval, transferring the data to be stored, which are temporarily stored in the high-speed storage space, to the low-speed storage space.
Specifically, an idle-time evaluation system memory occupation interval is constructed, wherein the idle-time evaluation system memory occupation interval is a high-speed storage space occupation space interval in an idle state of system operation, and since the high-speed storage space occupation is not easy to be too high in the operation process of the system, the operation speed of the system is reduced when the occupation proportion of the high-speed storage space is too high, the idle-time evaluation system memory occupation interval is required to be set to avoid occupation of space when the high-speed storage space is insufficient when the system operates in the idle state. The system is in an idle running state, wherein the system is not operated for a long time, no program runs for a long time, and the system runs less programs. And after the data to be stored is temporarily stored in the high-speed storage space, acquiring occupied data of the system memory according to the unloading instruction, acquiring the occupied space of the high-speed storage in the current state of the system, judging whether the data acquisition result meets the occupied interval of the system memory in idle time, namely judging whether the current data acquisition result exceeds the occupied interval of the system memory in idle time. When the detection data acquisition result meets the idle time evaluation system memory occupation interval, the data acquisition result exceeds the idle time evaluation system memory occupation interval, the high-speed storage space is occupied, and the data to be stored temporarily stored in the high-speed storage space is transferred to the low-speed storage space. The storage position of the storage data is adjusted in time according to the system operation condition, and the reduction of the system operation speed caused by the fact that the storage data occupies a high-speed storage space for a long time is avoided.
Step 500: counting the storage access data of the storage data to obtain a storage access statistical result;
step 600: performing access frequency matching analysis based on the storage access statistical result and the storage perception factor to obtain an access frequency matching analysis result;
step 700: and obtaining an adjusting storage instruction according to the access frequency matching analysis result, and controlling the storage adjustment of the storage data based on the adjusting storage instruction.
Specifically, storage access data statistics of the storage data is performed, that is, average access frequency in storage time is counted, if a certain data storage duration is 10 days for 10 total accesses, the access data of the data is 1 time per day, a storage access statistical result is obtained, then, access frequency matching analysis is performed based on the storage access statistical result and the storage sensing factor, that is, whether the storage access statistical result reaches the predetermined access frequency data in the storage sensing factor is judged, and an access frequency matching analysis result is obtained, wherein the access frequency matching analysis result is used for showing whether the storage access statistical result reaches the predetermined access frequency data in the storage sensing factor. And obtaining an adjusting storage instruction according to the access frequency matching analysis result, wherein the adjusting storage instruction comprises an adjusting state or a non-adjusting state. When the preset access frequency data in the storage perception factor is not reached, the storage adjusting instruction generated by the system is in an adjusting state, otherwise, the storage adjusting instruction is in an unadjusted state, the storage data stored in the high-speed storage space is adjusted to the low-speed storage space in the adjusting state, and the storage data is not adjusted in the unadjusted state to complete the perception of the storage data. And finally, controlling the storage adjustment of the storage data based on the adjustment storage instruction. The system senses the stored data, the stored data is adjusted, and the operating efficiency of the system is further guaranteed.
The method steps 700 provided by the embodiment of the present application further include:
step 710: constructing an access frequency extreme value of a high-speed storage space;
step 720: comparing and evaluating data stored in the high-speed storage space based on the access frequency extreme value, and judging whether cold data which does not meet the access frequency extreme value exist or not;
step 730: and when cold data which does not meet the access frequency extreme value exists, adjusting and storing the cold data into a low-speed storage space.
Specifically, an access frequency extreme value of the high-speed storage space is constructed, wherein the access frequency extreme value of the high-speed storage space is the lowest access frequency of the stored data, and the frequency can be set according to the actual use condition. And then, comparing and evaluating the data stored in the high-speed storage space based on the access frequency extreme value, and judging cold data of which the access frequency does not meet the access frequency extreme value, namely data of which the access frequency is lower than the access frequency extreme value, stored in the high-speed storage space. And when cold data which does not meet the access frequency extreme value exists, adjusting and storing the cold data to a low-speed storage space, so that the data with low use frequency can be adjusted in time.
The method steps 700 provided by the embodiment of the present application further include:
step 740: judging whether the file to be stored has important identification information or not;
step 750: and when the file to be stored has important identification information, performing double backup storage on the file to be stored.
Specifically, whether important identification information exists in the file to be stored is judged, namely whether a user carries out important identification on the file to be stored is judged, when the important identification information exists, the data to be stored is indicated to be important data, double backup storage is carried out on the file to be stored, namely the data to be stored is stored into a low-speed storage space and a high-speed storage space simultaneously. The safety of important identification data is further ensured, and data loss is avoided.
In summary, the method provided by the embodiment of the present application obtains attribute information of data to be stored. And performing storage hierarchical matching according to the attribute information to obtain a storage constraint condition, and constraining the storage position of the data to be stored. And then, obtaining storage evaluation data of the data to be stored of the user, generating storage perception factors, and perceiving and acquiring the importance degree of the data to be stored. And storing the data to be stored based on the constraint conditions and the storage perception factors to obtain storage data, and performing storage access data statistics according to the storage data to obtain an access frequency statistical result of the storage data. And performing access frequency matching analysis based on the storage access statistical result and the storage perception factor to obtain an access frequency matching analysis result. And obtaining an adjusting storage instruction according to the access frequency matching analysis result, and controlling the storage adjustment of the storage data based on the adjusting storage instruction. The method and the device realize the technical effects of sensing the importance of the stored data, optimizing and adjusting the stored data in the high-speed storage space, further ensuring the reading speed of the important data and improving the running speed of the system. The problem of among the prior art data storage can't carry out the importance perception and carry out classification storage to the storage data, cause important data storage in low-speed storage space, lead to data to read slowly and influence the technical problem of system operating speed is solved.
Example two
Based on the same inventive concept as the memory access method based on perceptual classification in the foregoing embodiment, as shown in fig. 4, the present application provides a memory access system based on perceptual classification, where the system includes:
the basic information acquisition module 11 is configured to acquire basic information of data to be stored, and acquire attribute information according to the basic information;
a first storage constraint condition obtaining module 12, configured to perform storage hierarchical matching according to the attribute information to obtain a first storage constraint condition;
the storage perception factor generation module 13 is configured to obtain storage evaluation data of the user for the data to be stored, and generate a storage perception factor according to the storage evaluation data;
the data storage module 14 is configured to store the data to be stored based on the first storage constraint condition and the storage sensing factor to obtain stored data;
a storage access statistical result obtaining module 15, configured to perform storage access data statistics on the storage data to obtain a storage access statistical result;
an access frequency matching analysis result obtaining module 16, configured to perform access frequency matching analysis based on the storage access statistical result and the storage sensing factor to obtain an access frequency matching analysis result;
and the storage adjusting module 17 is configured to obtain an adjustment storage instruction according to the access frequency matching analysis result, and control storage adjustment of the storage data based on the adjustment storage instruction.
Further, the first storage constraint obtaining module 12 is further configured to:
acquiring data size information of the stored data according to the attribute information;
setting a predetermined data size constraint threshold;
judging whether the data size information meets the predetermined data size constraint threshold;
when the data size information does not meet the preset data size constraint threshold, matching a low-speed storage constraint condition;
and obtaining the first storage constraint condition according to the low-speed storage constraint condition.
Further, the first storage constraint obtaining module 12 is further configured to:
when the data size information meets the preset data size constraint threshold, obtaining a first high-speed storage weight bias coefficient according to the ratio of the data size information to the preset data size constraint threshold;
acquiring real-time system memory occupation information;
performing high-speed storage bias weight analysis according to the real-time system memory occupation information to obtain a second high-speed storage bias weight coefficient;
and obtaining the first storage constraint condition according to the first high-speed storage bias coefficient and the second high-speed storage bias coefficient.
Further, the storage perception factor generating module 13 is further configured to:
obtaining preset access frequency data according to the stored evaluation data;
judging whether the preset access frequency data meet a preset frequency threshold value;
when the preset access frequency data meet the preset frequency threshold, judging whether the second high-speed storage weight bias coefficient meets a preset system memory occupation threshold or not;
when the second high-speed storage bias weight coefficient meets the preset system memory occupation threshold value, a unloading instruction is generated;
and temporarily storing the data to be stored to a high-speed storage space according to the unloading instruction.
Further, the storage perception factor generating module 13 is further configured to:
constructing an idle time evaluation system memory occupation interval;
when the data to be stored is temporarily stored in the high-speed storage space, acquiring system memory occupied data according to the unloading instruction, and judging whether a data acquisition result meets the idle time or not to evaluate a system memory occupied interval;
and when the detection data acquisition result meets the idle time evaluation system memory occupation interval, transferring the data to be stored temporarily stored in the high-speed storage space to the low-speed storage space.
Further, the storage adjustment module 17 is further configured to:
constructing an access frequency extreme value of the high-speed storage space;
comparing and evaluating data stored in the high-speed storage space based on the access frequency extreme value, and judging whether cold data which does not meet the access frequency extreme value exist or not;
and when cold data which does not meet the access frequency extreme value exists, adjusting and storing the cold data into a low-speed storage space.
Further, the storage adjustment module 17 is further configured to:
judging whether the file to be stored has important identification information or not;
and when the file to be stored has important identification information, performing double backup storage on the file to be stored.
The second embodiment is used for executing the method as in the first embodiment, and both the execution principle and the execution basis can be obtained through the content recorded in the first embodiment, which is not described herein again. Although the present application has been described in connection with particular features and embodiments thereof, the present application is not limited to the example embodiments described herein. Based on the embodiments of the present application, those skilled in the art may make various changes and modifications to the present application without departing from the scope of the present application, and what is obtained in this way also belongs to the protection scope of the present application.

Claims (8)

1. A method for memory access based on perceptual classification, the method comprising:
acquiring basic information of data to be stored, and acquiring attribute information according to the basic information;
performing storage hierarchical matching according to the attribute information to obtain a first storage constraint condition;
obtaining storage evaluation data of the user for the data to be stored, and generating a storage perception factor according to the storage evaluation data;
storing the data to be stored based on the first storage constraint condition and the storage perception factor to obtain stored data;
counting the storage access data of the storage data to obtain a storage access statistical result;
performing access frequency matching analysis based on the storage access statistical result and the storage perception factor to obtain an access frequency matching analysis result;
and obtaining an adjusting storage instruction according to the access frequency matching analysis result, and controlling the storage adjustment of the storage data based on the adjusting storage instruction.
2. The method of claim 1, wherein the method further comprises:
acquiring data size information of the stored data according to the attribute information;
setting a predetermined data size constraint threshold;
judging whether the data size information meets the preset data size constraint threshold or not;
when the data size information does not meet the predetermined data size constraint threshold, matching a low-speed storage constraint condition;
and obtaining the first storage constraint condition according to the low-speed storage constraint condition.
3. The method of claim 2, wherein the method further comprises:
when the data size information meets the preset data size constraint threshold, obtaining a first high-speed storage weight bias coefficient according to the ratio of the data size information to the preset data size constraint threshold;
acquiring real-time system memory occupation information;
performing high-speed storage bias weight analysis according to the real-time system memory occupation information to obtain a second high-speed storage bias weight coefficient;
and obtaining the first storage constraint condition according to the first high-speed storage bias coefficient and the second high-speed storage bias coefficient.
4. The method of claim 3, wherein the method further comprises:
obtaining preset access frequency data according to the stored evaluation data;
judging whether the preset access frequency data meet a preset frequency threshold value;
when the preset access frequency data meet the preset frequency threshold, judging whether the second high-speed storage weight bias coefficient meets a preset system memory occupation threshold or not;
when the second high-speed storage bias weight coefficient meets the preset system memory occupation threshold value, a unloading instruction is generated;
and temporarily storing the data to be stored to a high-speed storage space according to the unloading instruction.
5. The method of claim 4, wherein the method further comprises:
constructing an idle time evaluation system memory occupation interval;
when the data to be stored is temporarily stored in the high-speed storage space, acquiring occupied data of the system memory according to the unloading instruction, and judging whether a data acquisition result meets the idle time to evaluate a system memory occupation interval;
and when the detection data acquisition result meets the idle time evaluation system memory occupation interval, transferring the data to be stored temporarily stored in the high-speed storage space to the low-speed storage space.
6. The method of claim 1, wherein the method further comprises:
constructing an access frequency extreme value of the high-speed storage space;
comparing and evaluating data stored in the high-speed storage space based on the access frequency extreme value, and judging whether cold data which does not meet the access frequency extreme value exist or not;
and when cold data which does not meet the access frequency extreme value exists, adjusting and storing the cold data into a low-speed storage space.
7. The method of claim 1, wherein the method further comprises:
judging whether the file to be stored has important identification information or not;
and when the file to be stored has important identification information, performing double backup storage on the file to be stored.
8. A memory access system based on perceptual classification, the system comprising:
the basic information acquisition module is used for acquiring basic information of data to be stored and acquiring attribute information according to the basic information;
the first storage constraint condition acquisition module is used for carrying out storage hierarchical matching according to the attribute information to obtain a first storage constraint condition;
the storage perception factor generation module is used for acquiring storage evaluation data of the user on the data to be stored and generating a storage perception factor according to the storage evaluation data;
the data storage module is used for storing the data to be stored based on the first storage constraint condition and the storage perception factor to obtain stored data;
the storage access statistical result acquisition module is used for carrying out storage access data statistics on the storage data to obtain a storage access statistical result;
the access frequency matching analysis result acquisition module is used for carrying out access frequency matching analysis based on the storage access statistical result and the storage perception factor to obtain an access frequency matching analysis result;
and the storage adjusting module is used for obtaining an adjusting storage instruction according to the access frequency matching analysis result and controlling the storage adjustment of the storage data based on the adjusting storage instruction.
CN202210915521.4A 2022-08-01 2022-08-01 Memory access method based on perception classification Active CN115344505B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210915521.4A CN115344505B (en) 2022-08-01 2022-08-01 Memory access method based on perception classification

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210915521.4A CN115344505B (en) 2022-08-01 2022-08-01 Memory access method based on perception classification

Publications (2)

Publication Number Publication Date
CN115344505A true CN115344505A (en) 2022-11-15
CN115344505B CN115344505B (en) 2023-05-09

Family

ID=83949485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210915521.4A Active CN115344505B (en) 2022-08-01 2022-08-01 Memory access method based on perception classification

Country Status (1)

Country Link
CN (1) CN115344505B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115794045A (en) * 2023-02-07 2023-03-14 山东信息职业技术学院 Software development application data processing method based on big data
CN116956363A (en) * 2023-09-20 2023-10-27 微网优联科技(成都)有限公司 Data management method and system based on cloud computer technology
CN117094041A (en) * 2023-10-19 2023-11-21 湖北华中电力科技开发有限责任公司 Automatic storage method and system for digital power grid data

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199784A (en) * 2014-08-20 2014-12-10 浪潮(北京)电子信息产业有限公司 Data migration method and device based on hierarchical storage
CN104956341A (en) * 2013-12-31 2015-09-30 华为技术有限公司 Data migration method, device and processor
CN106502576A (en) * 2015-09-06 2017-03-15 中兴通讯股份有限公司 Migration strategy method of adjustment, capacity change suggesting method and device
US20170075589A1 (en) * 2015-09-14 2017-03-16 Qualcomm Innovation Center, Inc. Memory and bus frequency scaling by detecting memory-latency-bound workloads
CN111984188A (en) * 2020-06-30 2020-11-24 重庆大学 Management method and device of hybrid memory data and storage medium
CN112084017A (en) * 2020-07-30 2020-12-15 北京聚云科技有限公司 Memory management method and device, electronic equipment and storage medium
CN112463074A (en) * 2020-12-14 2021-03-09 苏州浪潮智能科技有限公司 Data classification storage method, system, terminal and storage medium
CN113805812A (en) * 2021-09-22 2021-12-17 深圳宏芯宇电子股份有限公司 Cache management method, device, equipment and storage medium
CN114816749A (en) * 2022-04-22 2022-07-29 江苏华存电子科技有限公司 Intelligent management method and system for memory

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104956341A (en) * 2013-12-31 2015-09-30 华为技术有限公司 Data migration method, device and processor
CN104199784A (en) * 2014-08-20 2014-12-10 浪潮(北京)电子信息产业有限公司 Data migration method and device based on hierarchical storage
CN106502576A (en) * 2015-09-06 2017-03-15 中兴通讯股份有限公司 Migration strategy method of adjustment, capacity change suggesting method and device
US20170075589A1 (en) * 2015-09-14 2017-03-16 Qualcomm Innovation Center, Inc. Memory and bus frequency scaling by detecting memory-latency-bound workloads
CN111984188A (en) * 2020-06-30 2020-11-24 重庆大学 Management method and device of hybrid memory data and storage medium
CN112084017A (en) * 2020-07-30 2020-12-15 北京聚云科技有限公司 Memory management method and device, electronic equipment and storage medium
CN112463074A (en) * 2020-12-14 2021-03-09 苏州浪潮智能科技有限公司 Data classification storage method, system, terminal and storage medium
CN113805812A (en) * 2021-09-22 2021-12-17 深圳宏芯宇电子股份有限公司 Cache management method, device, equipment and storage medium
CN114816749A (en) * 2022-04-22 2022-07-29 江苏华存电子科技有限公司 Intelligent management method and system for memory

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孙国忠;袁清波;陈明宇;樊建平;: "用于二级缓存的一种改进的自适应缓存管理算法" *
李俊杰: "面向海量存储系统的分层存储技术研究" *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115794045A (en) * 2023-02-07 2023-03-14 山东信息职业技术学院 Software development application data processing method based on big data
CN116956363A (en) * 2023-09-20 2023-10-27 微网优联科技(成都)有限公司 Data management method and system based on cloud computer technology
CN116956363B (en) * 2023-09-20 2023-12-05 微网优联科技(成都)有限公司 Data management method and system based on cloud computer technology
CN117094041A (en) * 2023-10-19 2023-11-21 湖北华中电力科技开发有限责任公司 Automatic storage method and system for digital power grid data
CN117094041B (en) * 2023-10-19 2024-01-02 湖北华中电力科技开发有限责任公司 Automatic storage method and system for digital power grid data

Also Published As

Publication number Publication date
CN115344505B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
CN115344505A (en) Memory access method based on perception classification
US8626986B2 (en) Pre-emptive garbage collection of memory blocks
US8706983B2 (en) Garbage collection of memory blocks using volatile memory
CN107748722B (en) Self-adaptive data refreshing method for ensuring data persistence in solid state disk
CN106776095A (en) SSD solid state hard disc data reliability intelligent detecting methods and detection means
CN111400099B (en) Flash memory data rereading method, device, equipment and computer readable storage medium
CN111078123B (en) Method and device for evaluating wear degree of flash memory block
CN103577342A (en) Method for managing data stored in flash memory and related memory device and controller
CN114356248B (en) Data processing method and device
CN111400204A (en) Solid-state disk caching method, system and related equipment
CN112068772B (en) Data storage method, data storage device and storage device
CN112306404B (en) Tile recording disk data layout method, system and related equipment
CN116661706B (en) Cache cleaning analysis method and system for solid state disk
CN112069004B (en) Method and system for testing conversion relation between block reading and page reading in flash memory chip
US20100131808A1 (en) Method For Testing Memory
CN113641305B (en) Garbage collection method and device for solid state disk, electronic equipment and storage medium
CN112463048B (en) Compact processing speed adjusting method and device, electronic equipment and medium
CN101441507A (en) Energy-saving method and apparatus for hard disk equipment
EP4231131A1 (en) Data storage method and device
CN115794446B (en) Message processing method and device, electronic equipment and storage medium
CN117785619B (en) Method and system for monitoring chip storage state
CN113656204B (en) Solid state disk management method and device and computing equipment
CN116405726B (en) Data storage control method, system and readable storage medium based on EMMC abrasion degree
US20220317889A1 (en) Memory Setting Method and Apparatus
CN114327288B (en) Method and device for predicting use time of SSD (solid State disk) residual user, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant