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

Memory access method based on perception classification Download PDF

Info

Publication number
CN115344505B
CN115344505B CN202210915521.4A CN202210915521A CN115344505B CN 115344505 B CN115344505 B CN 115344505B CN 202210915521 A CN202210915521 A CN 202210915521A CN 115344505 B CN115344505 B CN 115344505B
Authority
CN
China
Prior art keywords
storage
data
stored
speed
access
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.)
Active
Application number
CN202210915521.4A
Other languages
Chinese (zh)
Other versions
CN115344505A (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 memory access system based on perception classification, which are applied to the technical field of storage management, wherein the method comprises the following steps: by obtaining attribute information of the data to be stored. And carrying out storage hierarchical matching according to the attribute information to obtain constraint conditions. And obtaining the storage evaluation data of the user, and generating the storage perception factor. And storing the data to be stored based on the constraint condition and the storage perception factor to obtain storage data, and carrying out storage access data statistics to obtain a statistical result. And carrying out access frequency matching analysis based on the stored access statistical result and the stored perception factors to obtain an access frequency matching analysis result. And obtaining an adjustment storage instruction according to the access frequency matching analysis result, and controlling storage adjustment of the storage data based on the adjustment storage instruction. The method solves the technical problem that in the prior art, importance sensing and classified storage cannot be carried out on stored data, so that the operation speed of a system is slowly influenced due to important data reading.

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 digital information age, a large amount of data is generated and stored in daily life, and computer systems record data in a certain format on a storage medium inside a computer. In the prior art, most computer storage devices adopt two types of hard disks with different read-write speeds to store data, the unit capacity cost of a high-speed storage hard disk with high read-write speed is high, so that the unit capacity cost of a low-speed storage hard disk with low read-write speed is low in order to control the capacity of the high-speed storage hard disk with low cost, and therefore the capacity of the low-speed storage hard disk is high. However, in the actual use process of the user, the data storage often adopts a default storage path, and after the data storage is completed, the storage position of the data is fixed under the condition that the user does not adjust, 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 running speed of the system is reduced.
Therefore, in the prior art, importance sensing and classified storage cannot be performed on the stored data, so that unimportant stored data occupies a high-speed storage space, other important data cannot be stored in the high-speed storage space, and further, the technical problem that the system operation speed is affected slowly due to important data reading is caused.
Disclosure of Invention
The application provides a memory access method and a memory access 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 classification storage cannot be carried out, unimportant stored data occupy a high-speed storage space, other important data cannot be stored into the high-speed storage space, and further important data reading slowly affects the running speed of a system.
In view of the above problems, the present application provides a memory access method and system based on perceptual classification.
In a first aspect of the present application, there is provided a memory access method based on perceptual classification, the method comprising: basic information of data to be stored is collected, and attribute information is obtained 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 a user for the data to be stored, and generating storage perception factors 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 storage 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 stored access statistical result and the stored perception factors to obtain an access frequency matching analysis result; and obtaining an adjustment storage instruction according to the access frequency matching analysis result, and controlling storage adjustment of the storage data based on the adjustment storage instruction.
In a second aspect of the present application, there is provided 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 obtaining storage evaluation data of a user for the data to be stored and generating storage perception factors 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 storage data; the storage access statistical result acquisition module is used for carrying out statistics on the storage access data of 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 stored access statistical result and the stored perception factors to obtain an access frequency matching analysis result; and the storage adjustment module is used for obtaining an adjustment storage instruction according to the access frequency matching analysis result and controlling the storage adjustment of the storage data based on the adjustment 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 carrying out storage hierarchical matching according to the attribute information to obtain storage constraint conditions, and constraining storage positions of the data to be stored. And then obtaining storage evaluation data of the data to be stored by a user, generating storage perception factors, and carrying out perception acquisition on the importance degree of the data to be stored. And storing the data to be stored based on the constraint condition and the storage perception factor to obtain storage data, and carrying out storage access data statistics according to the storage data to obtain an access frequency statistics result of the storage data. And carrying out access frequency matching analysis based on the stored access statistical result and the stored perception factors to obtain an access frequency matching analysis result. And obtaining an adjustment storage instruction according to the access frequency matching analysis result, and controlling storage adjustment of the storage data based on the adjustment storage instruction. The method and the device realize the perception of the importance of the stored data, optimize and adjust the stored data in the high-speed storage space, and further ensure the technical effect that the reading speed of the important data improves the running speed of the system. The method solves the technical problems that in the prior art, importance sensing and classified storage can not be carried out on stored data in data storage, so that the important data is stored in a low-speed storage space, and the running speed of a system is affected slowly in data reading.
The foregoing description is only an overview of the technical solutions of the present application, and may be implemented according to the content of the specification in order to make the technical means of the present application more clearly understood, and in order to make the above-mentioned and other objects, features and advantages of the present application more clearly understood, the following detailed description of the present application will be given.
Drawings
Fig. 1 is a schematic flow chart of a memory access method based on perceptual classification provided in the present application;
FIG. 2 is a schematic flow chart of obtaining a first storage constraint condition in a memory access method based on perceptual classification provided in the present application;
FIG. 3 is a schematic flow chart of obtaining a transfer instruction in a memory access method based on perceptual classification provided in the present application;
fig. 4 is a schematic diagram of a memory access system structure based on perceptual classification.
Reference numerals illustrate: 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 a memory access 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 classification storage cannot be carried out, unimportant stored data occupy a high-speed storage space, other important data cannot be stored into the high-speed storage space, and further important data reading slowly affects the running speed of a system.
The technical solutions 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 contents that can be realized by the present application, and not the whole contents of the present application.
Example 1
As shown in fig. 1, the present application provides a memory access method based on perceptual classification, where the method includes:
step 100: basic information of data to be stored is collected, and attribute information is obtained according to the basic information;
in particular, with the development of the digital information age, 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 a computer is generally stored in a memory of the computer, wherein the memory commonly used in the computer comprises a hard disk, a floppy disk, an optical disk, a USB flash disk and the like, and the hard disk device is more commonly used in the computer storage. The hard disk device is divided into a mechanical hard disk and a solid state hard disk, and the mechanical hard disk has lower read-write speed although the cost per unit capacity is lower. The solid state disk has higher cost per unit capacity, but has faster read-write speed. The method provided in this embodiment is directed to a case where storage hard disks having large differences in read/write speeds coexist. The basic information of the data to be stored is acquired, wherein the basic information of the data to be stored comprises various information related to the data, such as the size, the type, the storage time node and the like of the data. Attribute information including the size, type, and storage time node information of the data is then obtained from the base information.
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 a user for the data to be stored, and generating storage perception factors 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 storage data;
specifically, the size of the data to be stored is obtained according to the obtained attribute information of the data, hierarchical matching is carried out on the data to be stored according to the size of the data to be stored, and a first storage constraint condition is obtained. The first storage constraint condition is used for constraining a specific storage position of data to be stored. And then acquiring storage evaluation data of the user for the data to be stored, wherein the storage evaluation data can be acquired through the preset use frequency and the important identification of the data to be stored by the user, and the preset use frequency and the important identification can be set by the user. And generating a storage perception factor according to the storage evaluation data, wherein the storage perception factor is used for reflecting the importance degree of the data parameters to be stored. And finally, storing the data to be stored based on the acquired first storage constraint condition and the storage perception factor, and acquiring storage data.
As shown in fig. 2, the method step 200 provided in the embodiment of the present application further includes:
step 210: obtaining 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 preset 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, data size information of the stored data is acquired according to the acquired attribute information, and whether the data size information meets the preset data size constraint threshold is then judged by setting a size threshold of the stored data. 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. By setting the constraint threshold of the preset data size, the stored data are distinguished, the storage space of high-speed storage is occupied for the storage file with smaller data volume is reduced for the subsequent realization, and the problem that the storage space of high-speed storage is wasted due to the fact that the storage data with smaller data volume cannot exert the speed advantage of high-speed storage is avoided.
The method step 200 provided in the embodiment of the present application further includes:
step 260: when the data size information meets the preset data size constraint threshold, a first high-speed storage bias coefficient is obtained 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 analysis according to the real-time system memory occupation information to obtain a second high-speed storage bias 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 meets the predetermined data size constraint threshold, the data size of the data to be stored is large, and the speed advantage of the high-speed storage can be fully exerted. And obtaining a first high-speed storage bias coefficient according to the ratio of the data size information to the preset data size constraint threshold. The first high-speed storage bias coefficient is used for reflecting the size proportion relation between the data size of the stored data and the preset data size, and the bias coefficient is higher when the data size is larger. And then acquiring real-time system memory occupation information, namely acquiring the residual storage space information of the high-speed storage hard disk of the real-time system. And carrying out high-speed storage bias analysis according to the real-time system memory occupation information, analyzing the proportion of the residual high-speed storage space occupied by the stored data, and obtaining a second high-speed storage bias coefficient, wherein the second high-speed storage bias coefficient is the proportional relation between the data size of the stored data and the residual storage space of the high-speed storage hard disk, and when the data size of the stored data occupies the residual storage space of the high-speed storage hard disk, the obtained second high-speed storage bias coefficient is smaller. And finally, obtaining the first storage constraint condition through the first high-speed storage bias coefficient and the second high-speed storage bias coefficient. And guiding the system to restrict the storage position of the storage data through the first high-speed storage bias coefficient and the second high-speed storage bias coefficient, and generating a first storage constraint condition. When the obtained sum value of the first high-speed storage bias coefficient and the second high-speed storage bias coefficient is higher, the system constrains the storage position of the storage data through the size of the value, and the higher the value is, the stronger the constraint of the storage data in the high-speed storage is, otherwise, the weaker the constraint of the storage data in the high-speed storage is.
As shown in fig. 3, the method step 300 provided in the embodiment of the present application further includes:
step 310: obtaining predetermined access frequency data according to the stored evaluation data;
step 320: judging whether the predetermined access frequency data meets a predetermined frequency threshold value or not;
step 330: when the predetermined access frequency data meets the predetermined frequency threshold, judging whether the second high-speed storage bias coefficient meets a predetermined system memory occupation threshold or not;
step 340: generating a dump instruction when the second high-speed storage bias coefficient meets the predetermined system memory occupation threshold;
step 350: and temporarily storing the storage data to a high-speed storage space according to the transfer instruction.
Specifically, predetermined access frequency data is obtained from the stored evaluation data, wherein the predetermined access frequency data is the use 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 the preset access frequency, and the specific value can be set according to the actual use condition. When the predetermined access frequency data meets the predetermined frequency threshold, i.e. the predetermined access frequency is greater than the predetermined frequency threshold, it is indicated that the access frequency expected by the user of the stored data is higher than the set threshold. And then, judging whether the second high-speed storage bias coefficient meets a preset system memory occupation threshold or not, wherein the preset system memory occupation threshold is an occupation proportion threshold of the high-speed storage residual space occupied by the storage data. The preset system memory occupation threshold can be set according to actual conditions, and the problem that the system runs slowly due to the fact that the occupied space of stored data is large is avoided. And when the second high-speed storage bias coefficient meets the preset system memory occupation threshold, namely when the second high-speed storage bias coefficient is smaller than or equal to the preset system memory occupation threshold, the proportion of the residual space occupied by the stored data is smaller, and a dump instruction is generated. Wherein the dump instruction is for temporarily storing the stored data into the high-speed storage space. The method comprises the steps of obtaining the expected use frequency and the occupied space proportion of stored data, and setting corresponding threshold conditions to finish the perception of the data, so that the stored data is transferred and stored according to the perception result.
The method step 300 provided in the embodiment of the present application further includes:
step 360: constructing a space-time evaluation system memory occupation interval;
step 370: after the temporary storage of the data to be stored is completed in a high-speed storage space, acquiring system memory occupied data according to the transfer instruction, and judging whether a data acquisition result meets the idle time evaluation system memory occupied interval or not;
step 380: and when the detection data acquisition result meets the idle time evaluation system memory occupation interval, the data to be stored temporarily stored in the high-speed storage space are transferred to the low-speed storage space.
Specifically, a space-time evaluation system memory occupation interval is constructed, wherein the space-time evaluation system memory occupation interval is a space occupation interval of a high-speed storage space in a system operation space state, and because the space occupation of the high-speed storage space is not easy to be too high in the operation process of the system, the operation speed of the system is reduced when the space occupation ratio of the high-speed storage space is too high, the space-time evaluation system memory occupation interval needs to be set to avoid the space occupation of the system when the space is insufficient when the system is in operation and the data is stored in the space in the high-speed storage space. The system is in an idle running state and is not operated for a long time, no program running exists for a long time and the system running program is less. And after the temporary storage of the data to be stored is completed in the high-speed storage space, acquiring the system memory occupied data according to the transfer instruction, acquiring the high-speed storage occupied space in the current state of the system, judging whether the data acquisition result meets the idle time evaluation system memory occupied interval or not, namely judging whether the current data acquisition result exceeds the idle time evaluation system memory occupied interval or not. 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 occupies higher, and the data to be stored temporarily stored in the high-speed storage space is transferred to the low-speed storage space. The method and the device realize the timely storage position adjustment of the stored data according to the system running condition, and avoid the reduction of the system running speed caused by the long-time occupation of the high-speed storage space by the stored data.
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 stored access statistical result and the stored perception factors to obtain an access frequency matching analysis result;
step 700: and obtaining an adjustment storage instruction according to the access frequency matching analysis result, and controlling storage adjustment of the storage data based on the adjustment storage instruction.
Specifically, the stored access data of the stored data is counted, that is, the average access frequency in the storage time is counted, for example, the average access frequency in the storage time is counted, if a certain data storage duration is 10 days, the access data of the data is accessed for 10 times per day, the stored access statistic result is obtained, then the access frequency matching analysis is carried out based on the stored access statistic result and the stored sensing factor, that is, whether the stored access statistic result reaches the preset access frequency data in the stored sensing factor or not is judged, and the access frequency matching analysis result is obtained, wherein the access frequency matching analysis result is used for reflecting whether the stored access statistic result reaches the preset access frequency data in the stored sensing factor or not. And obtaining an adjustment storage instruction according to the access frequency matching analysis result, wherein the adjustment storage instruction comprises an adjustment state or an unadjusted state. When the preset access frequency data in the storage perception factors are not reached, the adjustment storage instruction generated by the system is in an adjustment state, otherwise, the adjustment storage 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 adjustment state, and the storage data is not adjusted in the unadjusted state to finish perception of the storage data. And finally, controlling storage adjustment of the storage data based on the adjustment storage instruction. The system realizes the perception of the stored data, completes the adjustment of the stored data, and further ensures the operation efficiency of the system.
The method step 700 provided in the embodiment of the present application further includes:
step 710: constructing an access frequency extremum of the high-speed storage space;
step 720: based on the access frequency extremum, comparing and evaluating the data stored in the high-speed storage space, and judging whether cold data which does not meet the access frequency extremum exists or not;
step 730: and when cold data which does not meet the access frequency extreme value exists, storing the cold data in a low-speed storage space in an adjustment way.
Specifically, an access frequency extremum of the high-speed storage space is constructed, wherein the access frequency extremum 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, based on the access frequency extremum, comparing and evaluating the data stored in the high-speed storage space, and judging that the access frequency of the data stored in the high-speed storage space does not meet the cold data of the access frequency extremum, namely, the data of which the access frequency of the data stored in the high-speed storage space is lower than the access frequency extremum. When cold data which does not meet the access frequency extreme value exists, the cold data is adjusted and stored in a low-speed storage space, and the data with low use frequency is adjusted in time.
The method step 700 provided in the embodiment of the present application further includes:
step 740: judging whether the file to be stored has important identification information or not;
step 750: and when the important identification information exists in the file to be stored, performing double-backup storage on the file to be stored.
Specifically, whether the file to be stored has important identification information or not is judged, namely whether a user carries out important identification on the file to be stored or not is judged, when the important identification information exists, the data to be stored is indicated to be important data, and then the file to be stored is subjected to double-backup storage, namely, the data to be stored is simultaneously stored in a low-speed storage space and a high-speed storage space. The security of the important identification data is further ensured, and the data loss is avoided.
In summary, the method provided by the embodiment of the application obtains the attribute information of the data to be stored. And carrying out storage hierarchical matching according to the attribute information to obtain storage constraint conditions, and constraining storage positions of the data to be stored. And then obtaining storage evaluation data of the data to be stored by a user, generating storage perception factors, and carrying out perception acquisition on the importance degree of the data to be stored. And storing the data to be stored based on the constraint condition and the storage perception factor to obtain storage data, and carrying out storage access data statistics according to the storage data to obtain an access frequency statistics result of the storage data. And carrying out access frequency matching analysis based on the stored access statistical result and the stored perception factors to obtain an access frequency matching analysis result. And obtaining an adjustment storage instruction according to the access frequency matching analysis result, and controlling storage adjustment of the storage data based on the adjustment storage instruction. The method and the device realize the perception of the importance of the stored data, optimize and adjust the stored data in the high-speed storage space, and further ensure the technical effect that the reading speed of the important data improves the running speed of the system. The method solves the technical problems that in the prior art, importance sensing and classified storage can not be carried out on stored data in data storage, so that the important data is stored in a low-speed storage space, and the running speed of a system is affected slowly in data reading.
Example two
Based on the same inventive concept as the memory access method based on the perceptual classification in the foregoing embodiment, as shown in fig. 4, the present application provides a memory access system based on the perceptual classification, the system comprising:
a basic information acquisition module 11, configured to acquire basic information of data to be stored, and obtain 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, so as to obtain a first storage constraint condition;
the storage perception factor generation module 13 is used for obtaining storage evaluation data of a user for the data to be stored and generating storage perception factors according to the storage evaluation data;
a data storage module 14, configured to store the data to be stored based on the first storage constraint condition and the storage perception factor, to obtain storage data;
the storage access statistical result obtaining module 15 is configured to perform statistics on the storage access data of 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 stored access statistics result and the stored perception factors, to obtain an access frequency matching analysis result;
and the storage adjustment module 17 is used for obtaining an adjustment storage instruction according to the access frequency matching analysis result and controlling the storage adjustment of the storage data based on the adjustment storage instruction.
Further, the first storage constraint acquisition module 12 is further configured to:
obtaining 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;
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 acquisition module 12 is further configured to:
when the data size information meets the preset data size constraint threshold, a first high-speed storage bias coefficient is obtained 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 analysis according to the real-time system memory occupation information to obtain a second high-speed storage bias 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 generation module 13 is further configured to:
obtaining predetermined access frequency data according to the stored evaluation data;
judging whether the predetermined access frequency data meets a predetermined frequency threshold value or not;
when the predetermined access frequency data meets the predetermined frequency threshold, judging whether the second high-speed storage bias coefficient meets a predetermined system memory occupation threshold or not;
generating a dump instruction when the second high-speed storage bias coefficient meets the predetermined system memory occupation threshold;
and temporarily storing the data to be stored into a high-speed storage space according to the transfer instruction.
Further, the storage perception factor generation module 13 is further configured to:
constructing a space-time evaluation system memory occupation interval;
after the temporary storage of the data to be stored is completed in a high-speed storage space, acquiring system memory occupied data according to the transfer instruction, and judging whether a data acquisition result meets the idle time evaluation system memory occupied interval or not;
and when the detection data acquisition result meets the idle time evaluation system memory occupation interval, the data to be stored temporarily stored in the high-speed storage space are restored to the low-speed storage space.
Further, the storage adjustment module 17 is further configured to:
constructing an access frequency extremum of the high-speed storage space;
based on the access frequency extremum, comparing and evaluating the data stored in the high-speed storage space, and judging whether cold data which does not meet the access frequency extremum exists or not;
and when cold data which does not meet the access frequency extreme value exists, storing the cold data in a low-speed storage space in an adjustment way.
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 important identification information exists in the file to be stored, 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 the execution principle and the execution basis thereof can be obtained through the content described in the first embodiment, which is not repeated herein. Although the present application has been described in connection with specific 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 modifications and variations to the present application without departing from the scope of the present application, and the content thus obtained also falls within the scope of the present application.

Claims (6)

1. A memory access method based on perceptual classification, the method comprising:
basic information of data to be stored is collected, and attribute information is obtained 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 a user for the data to be stored, and generating storage perception factors 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 storage 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 stored access statistical result and the stored perception factors to obtain an access frequency matching analysis result;
obtaining an adjustment storage instruction according to the access frequency matching analysis result, and controlling storage adjustment of the storage data based on the adjustment storage instruction;
wherein the method further comprises:
obtaining 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;
when the data size information does not meet the preset data size constraint threshold, matching a low-speed storage constraint condition;
obtaining the first storage constraint condition according to the low-speed storage constraint condition;
when the data size information meets the preset data size constraint threshold, a first high-speed storage bias coefficient is obtained 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 analysis according to the real-time system memory occupation information to obtain a second high-speed storage bias 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.
2. The method of claim 1, wherein the method further comprises:
obtaining predetermined access frequency data according to the stored evaluation data;
judging whether the predetermined access frequency data meets a predetermined frequency threshold value or not;
when the predetermined access frequency data meets the predetermined frequency threshold, judging whether the second high-speed storage bias coefficient meets a predetermined system memory occupation threshold or not;
generating a dump instruction when the second high-speed storage bias coefficient meets the predetermined system memory occupation threshold;
and temporarily storing the data to be stored into a high-speed storage space according to the transfer instruction.
3. The method of claim 2, wherein the method further comprises:
constructing a space-time evaluation system memory occupation interval;
after the temporary storage of the data to be stored is completed in a high-speed storage space, acquiring system memory occupied data according to the transfer instruction, and judging whether a data acquisition result meets the idle time evaluation system memory occupied interval or not;
and when the detection data acquisition result meets the idle time evaluation system memory occupation interval, the data to be stored temporarily stored in the high-speed storage space are restored to the low-speed storage space.
4. The method of claim 1, wherein the method further comprises:
constructing an access frequency extremum of the high-speed storage space;
based on the access frequency extremum, comparing and evaluating the data stored in the high-speed storage space, and judging whether cold data which does not meet the access frequency extremum exists or not;
and when cold data which does not meet the access frequency extreme value exists, storing the cold data in a low-speed storage space in an adjustment way.
5. The method of claim 1, wherein the method further comprises:
judging whether the data to be stored has important identification information or not;
and when the important identification information exists in the data to be stored, performing double-backup storage on the data to be stored.
6. 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 obtaining storage evaluation data of a user for the data to be stored and generating storage perception factors 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 storage data;
the storage access statistical result acquisition module is used for carrying out statistics on the storage access data of 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 stored access statistical result and the stored perception factors to obtain an access frequency matching analysis result;
the storage adjustment module is used for obtaining an adjustment storage instruction according to the access frequency matching analysis result and controlling storage adjustment of the storage data based on the adjustment storage instruction;
the first storage constraint acquisition module is further configured to:
obtaining 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;
when the data size information does not meet the preset data size constraint threshold, matching a low-speed storage constraint condition;
obtaining the first storage constraint condition according to the low-speed storage constraint condition;
when the data size information meets the preset data size constraint threshold, a first high-speed storage bias coefficient is obtained 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 analysis according to the real-time system memory occupation information to obtain a second high-speed storage bias 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.
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 CN115344505A (en) 2022-11-15
CN115344505B true 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)

Families Citing this family (3)

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

Citations (2)

* 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
CN106502576A (en) * 2015-09-06 2017-03-15 中兴通讯股份有限公司 Migration strategy method of adjustment, capacity change suggesting method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3062229A4 (en) * 2013-12-31 2017-01-25 Huawei Technologies Co., Ltd. Data migration method, device and processor
US20170075589A1 (en) * 2015-09-14 2017-03-16 Qualcomm Innovation Center, Inc. Memory and bus frequency scaling by detecting memory-latency-bound workloads
CN111984188B (en) * 2020-06-30 2021-09-17 重庆大学 Management method and device of hybrid memory data and storage medium
CN112084017B (en) * 2020-07-30 2024-04-19 北京聚云科技有限公司 Memory management method and device, electronic equipment and storage medium
CN112463074B (en) * 2020-12-14 2023-01-10 苏州浪潮智能科技有限公司 Data classification storage method, system, terminal and storage medium
CN113805812B (en) * 2021-09-22 2024-03-05 深圳宏芯宇电子股份有限公司 Cache management method, device, equipment and storage medium
CN114816749B (en) * 2022-04-22 2023-02-10 江苏华存电子科技有限公司 Intelligent management method and system for memory

Patent Citations (2)

* 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
CN106502576A (en) * 2015-09-06 2017-03-15 中兴通讯股份有限公司 Migration strategy method of adjustment, capacity change suggesting method and device

Also Published As

Publication number Publication date
CN115344505A (en) 2022-11-15

Similar Documents

Publication Publication Date Title
CN115344505B (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
US9582199B2 (en) Method and an apparatus for analyzing data to facilitate data allocation in a storage device
EP2166456A1 (en) Method and apparatus for performing wear leveling in memory
CN111078123B (en) Method and device for evaluating wear degree of flash memory block
CN107748722A (en) The self-adapting data method for refreshing of data continuation in a kind of guarantee solid state hard disc
CN116661706B (en) Cache cleaning analysis method and system for solid state disk
CN112130759A (en) Parameter configuration method, system and related device of storage system
CN113641305B (en) Garbage collection method and device for solid state disk, electronic equipment and storage medium
CN113900591A (en) Method and device for prolonging service life of memory, electronic equipment and storage medium
CN104461754B (en) A kind of method and apparatus for monitoring eMMC
CN110262758B (en) Data storage management method, system and related equipment
Li et al. A survey of SSD lifecycle prediction
CN112214493A (en) Historical record storage method and device, electronic equipment and storage medium
CN113468379A (en) Data source processing method and device and intelligent analysis platform
CN113076062A (en) Method and equipment for prolonging service life of QLCSSD
CN1506805A (en) Dynamic journal recording method
EP4231131A1 (en) Data storage method and device
CN101441507A (en) Energy-saving method and apparatus for hard disk equipment
CN114327288B (en) Method and device for predicting use time of SSD (solid State disk) residual user, computer equipment and storage medium
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
TW201423567A (en) Data writing method and system
CN115993938B (en) Disk formatting method, apparatus, device and computer readable 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