End-network collaborative data expelling strategy for separated memory system

By introducing end-network collaborative data eviction strategy in the data center environment, and optimizing data eviction using adaptive eviction threshold and eviction flow scheduling module, the network congestion problem of data eviction strategy in the data center environment in the prior art is solved, significantly reducing the Application completion time and improve throughput.

CN119046000APending Publication Date: 2024-11-29THE ACAD OF TIANJIN UNIV HEFEI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411140234.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-20
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The existing data eviction strategy has network congestion problems in multi-node and large-scale data center environments, which has affected application performance and cannot effectively collaborate with hosts and network resources to optimize the data eviction process.

Method used

A data eviction strategy of end-network collaborative is designed, including adaptive eviction threshold adjustment module A-ETAM and eviction flow scheduling module EFSM. By predicting potential memory exhaustion and eviction data in advance, the eviction flow of blocking applications is preferred, and the eviction flow is used. Weighted round-robin scheduling algorithm and cumulative distribution function optimize the eviction stream priority, adaptively adjust the eviction threshold to reduce blockage and improve throughput.

Benefits of technology

It effectively reduces the application completion time and blocking frequency, improves data eviction efficiency and throughput, and alleviates the imbalance of network congestion and memory utilization through adaptive adjustment and priority scheduling mechanisms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119046000A_ABST
    Figure CN119046000A_ABST
Patent Text Reader

Abstract

The invention relates to the field of distributed systems, in particular to an end-network collaborative data eviction strategy for a separated memory system, which comprises a self-adaptive eviction threshold adjustment module A-ETAM and an eviction stream scheduling module EFSM, the self-adaptive eviction threshold adjustment module A-ETAM is used for predicting potential memory depletion and executing early data eviction to release available memory in advance and reduce the occurrence frequency of application program blocking, and the eviction stream scheduling module EFSM is used for improving the eviction efficiency of blocked and easily blocked application programs and enhancing the overall throughput of the application programs. According to the invention, the application with a fast application growth rate executes a data eviction A-ETAM module in advance so as to relieve and even eliminate application blocking possibly generated in the future, and then the time of single application blocking is reduced by preferentially scheduling an eviction stream EFSM module generated by the application which is in or possibly about to be in a blocking state in the network, so that the efficiency of the network is improved. The two modes jointly reduce damage caused by application blockage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of distributed systems, and in particular to a data eviction strategy for a separate memory system in collaboration with an end-to-network. Background Art

[0002] Memory disaggregation is becoming increasingly popular in data centers due to its high memory utilization and flexibility. It breaks the physical limitations of memory between different servers by using high-speed network technology, allowing applications to utilize idle memory on remote servers without being limited by local memory capacity. Currently, the mainstream implementation of memory disaggregation is to use the swap mechanism in the operating system kernel. When an application needs to create new data or obtain remote data, the kernel must ensure that local memory is available to allocate pages to store the data. When local memory is insufficient, the kernel will perform data eviction and transfer less frequently used data to the remote server to free up enough memory. After sending the evicted data, the host needs to wait for the data stream to cross the network to reach the remote server. During this process, the application will be blocked until the host receives an ACK receipt from the remote end. This waiting process will significantly prolong the completion time of the application.

[0003] In order to alleviate the performance loss caused by blocking of applications, Infiniswap uses a daemon to periodically evict data to prevent data eviction from occurring directly on access, thereby improving the access throughput of the application. In addition, Fastswap recommends asynchronously offloading the eviction process to a dedicated CPU core. AIFM assigns a higher priority to the eviction thread to ensure that data eviction tasks can be processed more promptly. Kona reduces the overhead of eviction by using novel hardware primitives to minimize the amount of data that needs to be written back. On the other hand, DiLOS attempts to always maintain a certain number of free pages through eager eviction by the cleaner and recycler. When the eviction rate is lower than the memory growth rate, Hermit will adaptively increase the number of evicted CPUs to improve eviction efficiency, that is, exchanging a certain amount of CPU resources for efficiency improvements. In these studies, people only considered the configuration of one computing node connected to a single memory node, but ignored the complexity and scale of application memory disaggregation node deployment in the actual data center environment. Such a scale will put considerable pressure on the network infrastructure, making the network congestion of the evicted data flow a key bottleneck affecting application performance. Therefore, the current data eviction strategy is not enough. In order to effectively evict data, a comprehensive collaborative design must be carried out to integrate the host and the network. Summary of the invention

[0004] The purpose of the present invention is to design a data evictor for end-to-end collaboration, which can adaptively adjust the timing of data eviction according to memory usage and give priority to scheduling the eviction data flow of applications that are in a blocked state, thereby reducing the completion time of the application.

[0005] The object of the present invention can be achieved by the following technical solutions: a data eviction strategy for a separated memory system in end-network collaboration, comprising an adaptive eviction threshold adjustment module A-ETAM and an eviction flow scheduling module EFSM;

[0006] The adaptive eviction threshold adjustment module A-ETAM is used to predict potential memory exhaustion and perform early data eviction to release available memory in advance, reducing the number of application blocking occurrences. The eviction flow scheduling module EFSM is used to improve the eviction efficiency of blocked and easily blocked applications and enhance the overall application throughput.

[0007] Preferably, the adaptive eviction threshold adjustment module A-ETAM comprises:

[0008] Early eviction module: The early eviction module is based on the root cause of application blocking, which is that the memory growth rate exceeds the eviction rate of the CPU. The monitoring perception parameter α is obtained by the formula Vevict / Vapp=α, where Vapp is the memory growth rate and Vevict is the eviction rate. The monitoring perception parameter α is used to predict whether blocking will occur in the future and serve as the eviction threshold T for early eviction. upper ;

[0009] Callback module: Too low an eviction threshold will lead to aggressive data eviction, reducing memory utilization. The cache miss rate CMcurrent is defined as the ratio of non-local data access Nmiss to the total access Naccess in a cycle. As an indirect indicator of memory utilization, the utilization perception parameter β is obtained by the formula CMlast / CMcurrent=β, where CMlast represents the cache miss rate of the previous cycle and CMcurrent represents the cache miss rate of the current cycle.

[0010] Preferably, the memory growth rate Vapp is calculated as follows:

[0011] To calculate the memory growth rate Vapp, it is necessary to obtain the changes in memory usage in a specific time period and the elapsed time. In the Linux kernel, the try_charge() function of the memory management module is used to handle memory allocation and billing related to memory cgroup. The early eviction module records the changes in memory usage and the time taken within N cycles of calling the try_charge() function to calculate the current memory growth rate Vapp.

[0012] Preferably, the eviction rate Vevict is calculated as follows:

[0013] In large-scale scenarios, due to the impact of network congestion, the eviction rate becomes unstable. The early eviction module uses a counter that increments each time data is evicted. Similarly, N try_charge() calls are used as calculation cycles. For page-based systems, the granularity of evicted data is fixed (usually 4KB), which makes it easy to calculate the total amount of evicted data in a cycle. By dividing it by the elapsed time, the eviction rate can be calculated.

[0014] Preferably, the eviction flow scheduling module EFSM includes eviction flow priority allocation and switch scheduling:

[0015] The eviction flow is divided into two types according to the application status: regular eviction flow REF and emergency eviction flow UEF;

[0016] Preferably, the eviction flow priority allocation is specifically as follows: in the eviction flow scheduling module EFSM, the highest priority is allocated to the emergency eviction flow UEF, because the increase in the flow completion time of the UEF directly affects the application performance by extending the duration of application blocking, and ultimately leads to a decrease in application throughput. Considering the regular eviction flow REF, the availability of local memory ensures that before the memory is exhausted, the extended flow completion time of the regular eviction flow REF will only lead to the continued occupation of the remaining memory without affecting the throughput of the application. Therefore, the regular eviction flow REF will be given a lower priority. However, for those applications that are currently generating regular eviction flows REF and running under the condition of less available memory or rapid memory growth, although they are not currently blocked, they may have a tendency to be blocked. Therefore, the urgency of these regular eviction flows REF is higher. On the contrary, for applications with relatively sufficient local memory, especially those that generate regular eviction flows REF due to A-ETSM lowering the threshold, but the local memory is still sufficient, the urgency of their regular eviction flows REF will be lower. Therefore, we have made fine-grained priority differentiation for regular eviction flows REF to provide better support for applications that are easily blocked.

[0017] The switch scheduling is specifically as follows: the weighted round-robin WRR scheduling algorithm is enabled to effectively alleviate the problem of low-priority REF being in a starvation state (i.e., continuously unscheduled), thereby protecting the performance of these applications. As a standard traffic scheduling solution, WRR has been widely used in Mellanox commercial switches (such as DellS4048-ON).

[0018] Preferably, the regular eviction flow REF is generated by an application whose current memory usage exceeds the eviction threshold but is still below the maximum memory capacity, and the emergency eviction flow UEF is generated by an application whose remaining memory is close to the maximum capacity and can no longer accommodate required data.

[0019] Preferably, in the eviction flow priority: an indicator of remaining memory exhaustion time Texhausted is introduced, which is defined as the ratio of remaining available memory Mremaining to memory growth rate Vapp, indicating that according to the current memory consumption rate, the time required for the remaining local memory to be completely exhausted is estimated. The smaller the value of Texhausted, the higher the priority of the regular eviction flow REF.

[0020] The beneficial effects of the present invention are as follows:

[0021] (1) The present invention allows applications with fast application growth rates to execute data eviction A-ETAM modules in advance to alleviate or even eliminate application congestion that may occur in the future. Secondly, the present invention reduces the duration of single application congestion by preferentially scheduling eviction flow EFSM modules generated by applications that are in or may be in a congested state in the network. These two methods jointly reduce the damage caused by application congestion.

[0022] (2) The present invention implements a data eviction strategy Glitter on the host side, which designs an eviction threshold adjustment mechanism based on multi-level perception, so that the system can adaptively control the timing of data eviction to optimize throughput according to the memory growth rate and utilization rate of different applications and different network conditions. In terms of network, the data eviction strategy Glitter proposes a new traffic scheduling strategy based on the memory perception method to alleviate the unfair competition between eviction flows on the switch, thereby reducing the waiting time of blocked applications and accelerating their completion. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The present invention will be further described below in conjunction with the accompanying drawings;

[0024] Figure 1 It is the system architecture diagram of this method.

[0025] Figure 2 It is the overall performance graph of this method under four workloads.

[0026] Figure 3 is a flow chart of the adaptive eviction threshold adjustment module.

[0027] Figure 4 is the cumulative distribution function of the eviction flow scheduling module. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0029] Example:

[0030] See also Figures 1 to 4 As shown, the present invention is a data eviction strategy for a separate memory system in an end-network collaborative manner, including an adaptive eviction threshold adjustment module A-ETAM and an eviction flow scheduling module EFSM;

[0031] The adaptive eviction threshold adjustment module A-ETAM is used to predict potential memory exhaustion and perform early data eviction to release available memory in advance, reducing the number of application blocking. Based on the multi-level perception mechanism, the data eviction strategy Glitter adaptively lowers the eviction threshold to trigger early eviction, and alleviates the decrease in memory utilization caused by premature eviction through a callback mechanism. The eviction flow scheduling module EFSM is used to improve the eviction efficiency of blocked and easily blocked applications and enhance the overall throughput of applications.

[0032] The adaptive eviction threshold adjustment module A-ETAM comprises:

[0033] Early eviction module: The early eviction module is based on the root cause of application blocking, which is that the memory growth rate exceeds the eviction rate of the CPU. The monitoring perception parameter α is obtained by the formula Vevict / Vapp=α, where Vapp is the memory growth rate and Vevict is the eviction rate. The monitoring perception parameter α is used to predict whether blocking will occur in the future and serve as the eviction threshold T for early eviction. upper ;

[0034] Callback module: Too low an eviction threshold will lead to aggressive data eviction, which will reduce memory utilization. In the case of insufficient memory utilization, accessing local data will generate a large number of cache misses ("cache" refers to local memory), and frequent data retrieval from remote memory will bring communication overhead. Therefore, the decision to lower the eviction threshold needs to balance between reducing the number of blocking times (improving performance) and reducing memory utilization (reducing performance), which prompts the data eviction strategy Glitter to consider memory utilization after lowering the threshold and propose a callback mechanism. However, due to frequent memory allocation and release, it is challenging to directly obtain memory utilization. To solve this problem, we define the cache miss rate CMcurrent as the ratio of non-local data accesses Nmiss to the total accesses Naccess in a cycle as an indirect indicator of memory utilization. An increase in the average cache miss rate means a decrease in memory utilization, which indicates that lowering the eviction threshold is not desirable. Glitter monitors the number of memory accesses and the occurrence rate of major page faults of the application through cgroup and calculates the cache miss rate for each cycle.

[0035] The memory growth rate Vapp is calculated as follows: To calculate the memory growth rate Vapp, it is necessary to obtain the changes in memory usage in a specific time period and the elapsed time. In order to minimize CPU overhead, we especially avoid using a timer-like design, because this design needs to run in a separate thread and perform regular time checks to trigger corresponding operations. We note that in the Linux kernel, the try_charge() function of the memory management module is used to handle memory allocation and billing related to memory cgroups. The purpose is to check memory usage before memory allocation and ensure that the allocation request does not exceed the memory limit of the cgroup. This provides us with an opportunity to track memory changes. Therefore, the early eviction module records the changes in memory usage and the time used in the N cycles of calling the try_charge() function to calculate the current memory growth rate Vapp.

[0036] The eviction rate Vevict is calculated as follows. In large-scale scenarios, due to the influence of network congestion, the eviction rate becomes unstable. Network congestion will lead to a reduction in the completion time of the eviction flow, thereby reducing the eviction rate. In order to calculate this value, the early eviction module uses a counter that increments each time data is evicted. Similarly, N try_charge() calls are used as the calculation cycle. For page-based systems, the granularity of evicted data is fixed (usually 4KB), which makes it easy to calculate the total amount of evicted data in a cycle. By dividing it by the elapsed time, the eviction rate can be calculated.

[0037] Among them, the specific steps of the adaptive eviction threshold adjustment module A-ETAM when working are:

[0038] 1. Calculate the monitoring perception parameter α: The eviction threshold is initially set to Tupper. In order to quantify the relationship between memory growth rate and eviction rate, we calculate the monitoring perception parameter α = Vevict / Vapp.

[0039] 2. Lower the eviction threshold: α>1 indicates that once the memory usage reaches the eviction threshold, the eviction rate cannot keep up with the memory growth rate. In order to preemptively alleviate the potential memory pressure, the eviction threshold must be lowered and data eviction must be started in advance to actively release memory. The α value reflects the gap between the application's memory demand and the eviction capacity. Therefore, the higher the α value, the greater the possibility of future memory exhaustion, which will cause the application to block. This requires further lowering the eviction threshold to quickly perform data eviction. Based on the above analysis, we give the following formula for updating the eviction threshold, where Tcurrent represents the current eviction threshold, Tlower represents the adjustable lower bound of the threshold, and T'update represents the updated eviction threshold at this stage. Since the eviction threshold must be higher than Tlower to avoid it being excessively lowered, it needs to be bounded by the max() function.

[0040] T′ update ←max{T current *α,T lower}

[0041] 3. Calculation of utilization-aware parameter β: To quantify the change in cache miss rate in a cycle, we consider the following ratio: β = CMlast / CMcurrent, where CMlast represents the cache miss rate in the previous cycle, and CMcurrent represents the cache miss rate in this cycle. If β≤1, it means that the adjustment of the eviction threshold in the previous cycle did not have a negative impact on the local memory utilization. Therefore, the eviction threshold will remain unchanged without any callback.

[0042] 4. Callback eviction threshold: When β>1, it means that the memory utilization is affected by the reduction of the eviction threshold, so a callback is needed. To prevent excessive callback, we provide the following adjustment formula to limit the additional update of Tupdate to exceed its original value or fall below the minimum threshold, where Tupdate represents the eviction threshold after the final update.

[0043]

[0044] We can conclude that, since the value range of β is (1, +∞), the value of Tupdate will be limited to the range of (T′update, Tcurrent). In the worst case, Tupdate can almost call back to the value before lowering the eviction threshold, which means that this round of loop will refuse to lower the threshold.

[0045] 5. Reset the eviction threshold: When α≤1, it means that the current eviction capacity of the eviction CPU can handle the growth of application memory. Once the memory usage reaches the eviction threshold, it will no longer increase, and there is no need to worry about future blocking problems. Therefore, the eviction threshold can be reset back to the original maximum value Tupper without early eviction. Given the fluctuations in network and application demand, this situation may be temporary. The method of directly resetting the eviction threshold back to Tupper is too radical and will cause the early eviction strategy to fail. Therefore, we introduced a conservative reset method, that is, incrementally reset Tcurrent in each cycle, gradually approaching Tupper within M rounds of cycles, where the setting of M is related to the fluctuation of network latency. The more severe the fluctuation, the more unstable the eviction rate, the more conservative the resetting of the eviction threshold should be, and the larger the value of M. In our implementation, M is set to 3.

[0046] 6. Update records: Finally, as a prelude to the subsequent calculation cycle, Glitter will update multiple parameter values, including timestamp, memory growth rate of the previous cycle, cache miss rate of the previous cycle, etc.

[0047] In large-scale memory disaggregation systems, competition between eviction flows on switches can adversely affect the eviction rate of blocked applications, resulting in a decrease in their throughput. To alleviate this problem, the data eviction strategy Glitter in this scheme proposes a novel and efficient memory-aware eviction flow scheduling module EFSM, which includes eviction flow priority allocation and switch scheduling:

[0048] The eviction flow is divided into two types according to the application status: regular eviction flow REF and emergency eviction flow UEF;

[0049] The eviction flow priority allocation is as follows: In the eviction flow scheduling module EFSM, the highest priority is assigned to the urgent eviction flow UEF, because the increase in the flow completion time of UEF directly affects the application performance by extending the duration of application blocking, which ultimately leads to a decrease in application throughput. Considering the regular eviction flow REF, the availability of local memory ensures that before the memory is exhausted, the extended flow completion time of the regular eviction flow REF will only lead to the continued occupation of the remaining memory without affecting the application throughput. Therefore, the regular eviction flow REF will be given a lower priority. However, for those applications that are currently generating regular eviction flows REF and running under the condition of less available memory or rapid memory growth, although they are not currently blocked, they may have a tendency to be blocked. Therefore, the urgency of these regular eviction flows REF is higher. On the contrary, for applications with relatively sufficient local memory, especially those that generate RE flows due to A-ETSM lowering the threshold, but the local memory is still sufficient, the urgency of their regular eviction flows REF will be lower. Therefore, we have made fine-grained priority differentiation for regular eviction flows REF to provide better support for applications that are easily blocked.

[0050] The switch scheduling is specifically as follows: enabling the weighted round-robin WRR scheduling algorithm to effectively alleviate the problem of low-priority REF being in a starvation state (ie, continuously unscheduled).

[0051] The regular eviction flow REF is generated by an application whose current memory usage exceeds the eviction threshold but is still lower than the maximum memory capacity, and the emergency eviction flow UEF is generated by an application whose remaining memory is close to the maximum capacity and can no longer accommodate required data.

[0052] In the eviction flow priority: the remaining memory exhaustion time Texhausted indicator is introduced. It is defined as the ratio of the remaining available memory Mremaining to the memory growth rate Vapp. It indicates that according to the current memory consumption rate, the time required for the remaining local memory to be completely exhausted is estimated. The smaller the value of Texhausted, the higher the priority of the regular eviction flow REF.

[0053] The specific applications of the EFSM are as follows:

[0054] 1. Priority allocation of emergency eviction flow UEF: Assuming that the switch is equipped with 8 (P0-P7) priority queues, the data eviction strategy Glitter of this technology visits the priorities from P1 to P7 in ascending order of priority importance (usually, P0 is reserved for other control flows), and the emergency eviction flow UEF is specially allocated to P7 to prevent them from competing with the regular eviction flow REF for queue resources and bandwidth resources.

[0055] II. Priority Allocation for Regular Eviction Flow REF: We estimate the job completion time (JCT) of each application in advance by using empirical values or recording historical information within the cluster. By leveraging this data, we can construct a cumulative distribution function (CDF) of the job completion time. The cumulative distribution function is a distribution probability without specific symbols and formulas, which needs to be constructed through historical data. During the application runtime, we prioritize the regular eviction flow REF to ensure fair allocation of priorities. The data eviction strategy Glitter of this technology uses the cumulative distribution function (CDF) to assign different priorities to different intervals of the job completion time (JCT) of each application. Figure 4 An example of a cumulative distribution function (CDF) is described, where the interval [0, 78] is mapped to priority P2, the interval [78, 213] is mapped to priority P3, and so on, ultimately forming a time-priority mapping graph (Mapp), which is used as a reference for priority allocation during application runtime. For example, if the task completion time Tremaining = 10, which belongs to the first interval, the regular eviction flow REF generated by this application is assigned P2. If the task completion time Tremaining = 100, which belongs to the second interval, it is assigned P3, and so on. On the other hand, if it is difficult to estimate the job completion time (JCT) of applications in the cluster in advance, the data eviction strategy Glitter of this technology will consider using the remaining memory ratio (Rremain) as an alternative metric for priority allocation, which is defined as the ratio of the remaining memory amount to the total memory amount. For example, when Rremain ≤ 10%, P2 will be assigned. When 10% < Rremain ≤ 20%, priority P3 will be assigned, and so on.

[0056] III. Switch Scheduling: The switch needs to enable the weighted round-robin (WRR) scheduling algorithm to effectively alleviate the problem of low-priority REF being starved (i.e., continuously unscheduled), thereby protecting the performance of these applications. As a standard traffic scheduling scheme, WRR has been widely used in Mellanox commercial switches (such as Dell S4048-ON).

[0057] This solution conducted a large-scale simulation experiment on NS-3, using memory trace data of four workloads: Quicksort, Linpack, Kmeans, and Spark-Pagerank. We used NS-3 to simulate the memory module and implemented the combination of Glitter+Fastswap version. The network topology of this experiment is a leaf-spine topology, including 2 spine switches, 6 leaf switches, and 96 servers. Each server runs 5 threads. Each link between the spine switch and the sub-switch is 25Gbps. Each server has a 10Gbps network card connected to the leaf switch, and the propagation delay of all links is 3 microseconds. One-third of the servers run workload applications, and the remaining servers run non-memory intensive applications, whose average memory growth rate is lower than the eviction rate.

[0058] like Figure 2 The overall performance of Glitter and Fastswap combined with A-ETAM and EFSM strategies in large-scale cluster scenarios is demonstrated. For these four workloads, their largest improvement in job completion time (JCT) is achieved when the local memory ratio is 20%, with improvements of 34.10%, 42.78%, 42.86% and 41.25% respectively. This is because as the local memory ratio decreases, application blocking occurs more frequently, generating more UE traffic and aggravating network congestion. Thanks to the eviction flow scheduling module EFSM module, the switch can prioritize UEF traffic to reduce blocking overhead in this case. In order to verify that the eviction flow scheduling module EFSM does not excessively affect the performance of other non-memory intensive jobs, we measured their completion time before and after using the eviction flow scheduling module EFSM, and observed that their job completion time (JCT) did not increase by more than 1%.

[0059] The above formulas are obtained by collecting a large amount of data for software simulation and selecting a formula that is close to the actual value. The coefficients in the formula are set by technical personnel in this field according to actual conditions. The above is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited to this. Any technical personnel familiar with the technical field within the technical scope disclosed by the present invention, according to the technical solution and the inventive concept of the present invention, make equivalent replacement or change, which should be covered within the protection scope of the present invention.

Claims

1. A data eviction strategy for a separate memory system in a terminal-network collaborative manner, characterized in that: It includes an adaptive eviction threshold adjustment module A-ETAM and an eviction flow scheduling module EFSM; The adaptive eviction threshold adjustment module A-ETAM is used to predict potential memory exhaustion and perform early data eviction to release available memory in advance and reduce the number of application blocking occurrences; The eviction flow scheduling module EFSM is used to improve the eviction efficiency of blocked and easily blocked applications and enhance the overall throughput of applications.

2. The data eviction strategy for a separate memory system in a terminal-network collaborative manner according to claim 1, characterized in that: The adaptive eviction threshold adjustment module A-ETAM comprises: Early eviction module: The early eviction module is based on the root cause of application blocking, which is that the memory growth rate exceeds the eviction rate of the CPU. The monitoring perception parameter α is obtained by the formula Vevict / Vapp=α, where Vapp is the memory growth rate and Vevict is the eviction rate. The monitoring perception parameter α is used to predict whether blocking will occur in the future and serve as the eviction threshold for early eviction. Callback module: Too low an eviction threshold will lead to aggressive data eviction, reducing memory utilization. The cache miss rate CMcurrent is defined as the ratio of non-local data access Nmiss to the total access Naccess in a cycle. As an indirect indicator of memory utilization, the utilization perception parameter β is obtained by the formula CMlast / CMcurrent=β, where CMlast represents the cache miss rate of the previous cycle and CMcurrent represents the cache miss rate of the current cycle.

3. The data eviction strategy for a separate memory system in end-network collaboration according to claim 2, characterized in that: The memory growth rate Vapp is calculated as follows: To calculate the memory growth rate Vapp, it is necessary to obtain the changes in memory usage in a specific time period and the elapsed time. In the Linux kernel, the try_charge() function of the memory management module is used to handle memory allocation and billing related to memory cgroup. The early eviction module records the changes in memory usage and the time taken within N cycles of calling the try_charge() function to calculate the current memory growth rate Vapp.

4. The data eviction strategy for a separate memory system in end-network collaboration according to claim 3, characterized in that: The eviction rate Vevict is calculated as follows; In large-scale scenarios, due to the impact of network congestion, the eviction rate becomes unstable. The early eviction module uses a counter that increments each time data is evicted. Similarly, N try_charge() calls are used as the calculation cycle. For page-based systems, the granularity of evicted data is fixed, which makes it easy to calculate the total amount of evicted data in a cycle. By dividing it by the elapsed time, the eviction rate can be calculated.

5. The data eviction strategy for a separate memory system in end-network collaboration according to claim 1, characterized in that: The eviction flow scheduling module EFSM includes eviction flow priority allocation and switch scheduling: The eviction flow is divided into two types according to the application status: regular eviction flow REF and emergency eviction flow UEF.

6. The data eviction strategy for a separate memory system in end-network collaboration according to claim 5, characterized in that: The priority allocation of eviction flows is as follows: the highest priority is allocated to the emergency eviction flow UEF, and the regular eviction flow REF will be assigned a lower priority. The regular eviction flow REF is prioritized in a fine-grained manner; The switch scheduling is specifically as follows: enabling the weighted round-robin WRR scheduling algorithm to effectively alleviate the problem of low-priority regular eviction flow REF being in a starvation state.

7. The data eviction strategy for a separate memory system in end-network collaboration according to claim 5, characterized in that: The regular eviction flow REF is generated by an application whose current memory usage exceeds the eviction threshold but is still lower than the maximum memory capacity, and the emergency eviction flow UEF is generated by an application whose remaining memory is close to the maximum capacity and can no longer accommodate required data.

8. The data eviction strategy for a separate memory system in end-network collaboration according to claim 5, characterized in that: In the eviction flow priority: the remaining memory exhaustion time Texhausted indicator is introduced. It is defined as the ratio of the remaining available memory Mremaining to the memory growth rate Vapp. It indicates that according to the current memory consumption rate, the time required for the remaining local memory to be completely exhausted is estimated. The smaller the value of Texhausted, the higher the priority of the regular eviction flow REF.