CN112291086A - Memory capacity expansion method, system and device of switch - Google Patents

Memory capacity expansion method, system and device of switch Download PDF

Info

Publication number
CN112291086A
CN112291086A CN202011112714.3A CN202011112714A CN112291086A CN 112291086 A CN112291086 A CN 112291086A CN 202011112714 A CN202011112714 A CN 202011112714A CN 112291086 A CN112291086 A CN 112291086A
Authority
CN
China
Prior art keywords
memory
capacity
switch
expanded
expansion
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.)
Pending
Application number
CN202011112714.3A
Other languages
Chinese (zh)
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011112714.3A priority Critical patent/CN112291086A/en
Publication of CN112291086A publication Critical patent/CN112291086A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9005Buffering arrangements using dynamic buffer space allocation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Memory System (AREA)

Abstract

The invention discloses a method, a system and a device for expanding the memory of a switch, wherein the memory to be used and a standby memory are configured for the switch in advance; acquiring the capacity use condition of a memory to be used; automatically judging whether the memory to be used needs to be expanded according to the capacity use condition; if yes, automatically determining the capacity to be expanded of the memory to be used according to a preset expansion strategy, and automatically planning the memory with the same size as the capacity to be expanded from the standby memory to be used as the expansion capacity of the memory to be used. It can be seen that, this application can carry out the dilatation to the usable memory capacity of switch automatically when the usable memory capacity of switch is not enough, need not user manual operation to user's use experience has been promoted.

Description

Memory capacity expansion method, system and device of switch
Technical Field
The present invention relates to the field of memory capacity expansion, and in particular, to a method, a system, and an apparatus for expanding a memory of a switch.
Background
With the rapid Development of the internet, a Data Plane Development Kit (DPDK) mainly based on software optimization comes from time to time, which provides platform feasibility for the Development of cloud computing technology. At present, when a DPDK type switch is used in a cloud computing platform, the capacity of a Non Uniform Memory Access (NUMA) large page Memory needs to be manually set first, then the DPDK is configured to enable the set NUMA large page Memory, and then the DPDK type switch is created in a network pool for use.
With the increase of the service traffic, the capacity of the NUMA large-page memory initially configured for the DPDK type switch cannot continuously meet the user demand, which causes the network performance of the DPDK type switch to be blocked. In the prior art, generally, when the capacity of a NUMA large-page memory configured for a DPDK type switch cannot continuously meet the user requirement, the capacity of the NUMA large-page memory is manually increased on a memory setting interface to meet the user requirement, but the manual capacity expansion mode is complex to operate, and the user experience is affected.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a method, a system and a device for expanding the memory of a switch, which can automatically expand the available memory capacity of the switch without manual operation of a user when the available memory capacity of the switch is insufficient, thereby improving the use experience of the user.
In order to solve the above technical problem, the present invention provides a method for expanding a memory of a switch, including:
configuring a memory to be used and a standby memory for the switch in advance;
acquiring the capacity use condition of the memory to be used;
automatically judging whether the memory to be used needs to be expanded according to the capacity use condition;
if yes, automatically determining the capacity to be expanded of the memory to be used according to a preset expansion strategy, and automatically planning the memory with the same size as the capacity to be expanded from the standby memory to be used as the expansion capacity of the memory to be used.
Preferably, the process of obtaining the capacity usage of the memory to be used includes:
after the to-be-used memory is started, starting the cyclic detection of the capacity of the to-be-used memory to obtain the capacity use condition of the to-be-used memory;
dynamically adjusting the cycle detection time of the capacity of the memory to be used according to the capacity use change condition of the memory to be used so as to detect the capacity of the memory to be used according to the cycle detection time after the latest adjustment; wherein the faster the capacity of the memory to be used is used, the shorter the cycle detection time is.
Preferably, the capacity use condition of the memory to be used is obtained; the process of automatically judging whether the memory to be used needs capacity expansion according to the capacity use condition comprises the following steps:
acquiring the used capacity of the memory to be used;
calculating the proportion of the used capacity of the memory to be used to the current total capacity of the memory to be used; the current total capacity of the to-be-used memory is equal to the used capacity of the to-be-used memory plus the current remaining available capacity of the to-be-used memory;
judging whether the proportion exceeds a preset proportion threshold value or not;
if yes, determining that the memory to be used needs to be expanded;
and if not, determining that the memory to be used does not need to be expanded.
Preferably, the process of acquiring the current total capacity of the to-be-used memory includes:
determining the initial total capacity of the memory to be used in advance according to the initial configuration condition of the memory to be used, and taking the initial total capacity as the current total capacity of the memory to be used;
and after automatically planning a memory with the same size as the capacity to be expanded from the standby memory to be used as the expanded capacity of the memory to be used, adding the current total capacity of the memory to be used to the capacity to be expanded to obtain the current updated total capacity of the memory to be used.
Preferably, the process of automatically determining the capacity to be expanded of the memory to be used according to a preset expansion policy includes:
predicting the pre-used memory capacity of the switch in a certain period of time in the future according to the historical capacity use condition of the memory to be used;
and taking the capacity of the pre-used memory as the capacity to be expanded of the memory to be used.
Preferably, the process of predicting the pre-used memory capacity of the switch in a certain period of time in the future according to the historical capacity usage of the memory to be used includes:
a deep learning model for predicting the pre-used memory capacity of the switch within a certain period of time in the future according to the historical capacity use condition of the memory to be used is established and trained in advance;
after the historical capacity use condition of the memory to be used is obtained, the historical capacity use condition of the memory to be used is input into the deep learning model, and the pre-used memory capacity of the switch in a certain period of time in the future is obtained.
In order to solve the above technical problem, the present invention further provides a memory capacity expansion system of a switch, including:
the memory configuration module is used for configuring a memory to be used and a standby memory for the switch in advance;
the capacity acquisition module is used for acquiring the capacity use condition of the memory to be used;
the capacity expansion judging module is used for automatically judging whether the memory to be used needs capacity expansion according to the capacity use condition; if yes, issuing a capacity expansion instruction;
and the memory capacity expansion module is used for automatically determining the capacity to be expanded of the memory to be used according to a preset capacity expansion strategy after receiving the capacity expansion instruction, and automatically planning the memory with the same size as the capacity to be expanded from the standby memory to be used as the expansion capacity of the memory to be used.
Preferably, the capacity obtaining module is specifically configured to:
after the to-be-used memory is started, starting the cyclic detection of the capacity of the to-be-used memory to obtain the capacity use condition of the to-be-used memory;
dynamically adjusting the cycle detection time of the capacity of the memory to be used according to the capacity use change condition of the memory to be used so as to detect the capacity of the memory to be used according to the cycle detection time after the latest adjustment; wherein the faster the capacity of the memory to be used is used, the shorter the cycle detection time is.
Preferably, the memory capacity expansion module is specifically configured to:
predicting the pre-used memory capacity of the switch in a certain period of time in the future according to the historical capacity use condition of the memory to be used;
and taking the capacity of the pre-used memory as the capacity to be expanded of the memory to be used, and automatically planning the memory with the same size as the capacity to be expanded from the standby memory to be used as the expanded capacity of the memory to be used.
In order to solve the above technical problem, the present invention further provides a memory capacity expansion device for a switch, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the memory capacity expansion method of any switch when executing the computer program.
The invention provides a memory capacity expansion method of a switch, which is characterized in that a memory to be used and a standby memory are configured for the switch in advance; acquiring the capacity use condition of a memory to be used; automatically judging whether the memory to be used needs to be expanded according to the capacity use condition; if yes, automatically determining the capacity to be expanded of the memory to be used according to a preset expansion strategy, and automatically planning the memory with the same size as the capacity to be expanded from the standby memory to be used as the expansion capacity of the memory to be used. It can be seen that, this application can carry out the dilatation to the usable memory capacity of switch automatically when the usable memory capacity of switch is not enough, need not user manual operation to user's use experience has been promoted.
The invention also provides a memory capacity expansion system and device of the switch, and the memory capacity expansion system and device have the same beneficial effects as the memory capacity expansion method.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a method for expanding a memory of a switch according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a memory expansion system of a switch according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide a method, a system and a device for expanding the memory of the switch, which can automatically expand the available memory capacity of the switch without manual operation of a user when the available memory capacity of the switch is insufficient, thereby improving the user experience.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for expanding a memory of a switch according to an embodiment of the present invention.
The memory capacity expansion method of the switch comprises the following steps:
step S1: and configuring a memory to be used and a standby memory for the switch in advance.
Specifically, on one hand, the method configures a memory to be used for the switch in advance for the switch to use when the switch works; on the other hand, the method and the device configure the standby memory for the switch in advance for capacity expansion when the capacity of the memory to be used is insufficient.
It can be understood that, in the present application, a spare memory with a relatively sufficient capacity needs to be configured for the switch, so as to successfully expand the capacity in the following.
Step S2: and acquiring the capacity use condition of the memory to be used.
Specifically, according to the method and the device, after the to-be-used memory is started, the capacity of the to-be-used memory is automatically and circularly detected, the used capacity and the remaining available capacity of the to-be-used memory can be known, and therefore the capacity use condition of the to-be-used memory is obtained, and a basis is provided for subsequently judging whether the capacity of the to-be-used memory needs to be expanded or not.
Step S3: automatically judging whether the memory to be used needs to be expanded according to the capacity use condition; if yes, go to step S4.
Specifically, the capacity usage condition of the to-be-used memory can show whether the remaining available capacity of the to-be-used memory is sufficient, and it can be understood that when the remaining available capacity of the to-be-used memory is insufficient, the to-be-used memory needs to be expanded, so that the application can automatically judge whether the to-be-used memory needs to be expanded according to the capacity usage condition of the to-be-used memory, and if the to-be-used memory needs to be expanded, the capacity expansion operation of the to-be-used memory is executed; if the to-be-used memory does not need to be expanded, the expansion operation of the to-be-used memory does not need to be executed.
Step S4: and automatically determining the capacity to be expanded of the memory to be used according to a preset expansion strategy, and automatically planning the memory with the same size as the capacity to be expanded from the standby memory to be used as the expansion capacity of the memory to be used.
It should be noted that the preset of the present application is set in advance, and only needs to be set once, and the reset is not needed unless the modification is needed according to the actual situation.
Specifically, the expansion principle of the memory to be used specifically is as follows: the method comprises the steps of setting a capacity expansion strategy for acquiring the capacity to be expanded of the memory to be used in advance, when the capacity to be expanded of the memory to be used needs to be expanded, automatically determining the capacity to be expanded of the memory to be used according to the preset capacity expansion strategy, and then automatically planning the memory with the same size as the capacity to be expanded of the memory to be used from the standby memory.
The invention provides a memory capacity expansion method of a switch, which is characterized in that a memory to be used and a standby memory are configured for the switch in advance; acquiring the capacity use condition of a memory to be used; automatically judging whether the memory to be used needs to be expanded according to the capacity use condition; if yes, automatically determining the capacity to be expanded of the memory to be used according to a preset expansion strategy, and automatically planning the memory with the same size as the capacity to be expanded from the standby memory to be used as the expansion capacity of the memory to be used. It can be seen that, this application can carry out the dilatation to the usable memory capacity of switch automatically when the usable memory capacity of switch is not enough, need not user manual operation to user's use experience has been promoted.
On the basis of the above-described embodiment:
as an optional embodiment, the process of obtaining the capacity usage of the memory to be used includes:
after the memory to be used is started, starting the cyclic detection of the capacity of the memory to be used to obtain the capacity use condition of the memory to be used;
dynamically adjusting the cycle detection time of the capacity of the memory to be used according to the capacity use change condition of the memory to be used so as to detect the capacity of the memory to be used according to the cycle detection time after the latest adjustment; wherein, the faster the capacity of the memory to be used is used, the shorter the cycle detection time.
Specifically, after the to-be-used memory is started, the automatic cycle detection of the capacity of the to-be-used memory is started so as to obtain the capacity use condition of the to-be-used memory. It can be understood that, if the capacity of the to-be-used memory is used slowly, the present application does not need to scan and detect the capacity of the to-be-used memory once every short time, the power consumption is large, and only when the capacity of the to-be-used memory is used quickly, the capacity of the to-be-used memory needs to be scanned and detected once every short time, and the shortage of the capacity of the to-be-used memory is known.
Based on the above, the method dynamically adjusts the cycle detection time of the capacity of the memory to be used according to the capacity use change condition of the memory to be used, specifically, when the capacity use of the memory to be used is slowed down, the cycle detection time of the capacity of the memory to be used is prolonged, so that the purpose is to scan and detect the capacity of the memory to be used once at a longer time interval; when the capacity of the memory to be used is used more quickly, the cyclic detection time of the capacity of the memory to be used is shortened, and the purpose is to scan and detect the capacity of the memory to be used once at shorter time intervals.
As an optional embodiment, acquiring a capacity use condition of a memory to be used; the process of automatically judging whether the memory to be used needs capacity expansion according to the capacity use condition comprises the following steps:
acquiring the used capacity of a memory to be used;
calculating the proportion of the used capacity of the memory to be used to the current total capacity of the memory to be used; the current total capacity of the to-be-used memory is equal to the used capacity of the to-be-used memory plus the current remaining available capacity of the to-be-used memory;
judging whether the proportion exceeds a preset proportion threshold value or not;
if yes, determining that the memory to be used needs to be expanded;
if not, determining that the memory to be used does not need to be expanded.
Specifically, the capacity use condition of the memory to be used is obtained, specifically, the used capacity of the memory to be used is obtained (cycle detection time dynamic adjustment), and the used capacity of the memory to be used is divided by the current total capacity of the memory to be used, so that the proportion of the used capacity of the memory to be used to the current total capacity of the memory to be used is obtained, and the capacity use condition of the memory to be used is reflected by the proportion of the used capacity of the memory to be used to the current total capacity of the memory to be used.
It can be understood that, the higher the proportion of the used capacity of the memory to be used to the current total capacity of the memory to be used is, the lower the current remaining available capacity of the memory to be used is, and when the current remaining available capacity of the memory to be used is insufficient, the capacity of the memory to be used needs to be expanded, so the application sets a proportion threshold in advance, and considers that: when the proportion of the used capacity of the to-be-used memory to the current total capacity of the to-be-used memory exceeds a preset proportion threshold, the current residual available capacity of the to-be-used memory is too small, and the capacity expansion of the to-be-used memory is necessary; when the proportion of the used capacity of the memory to be used to the current total capacity of the memory to be used does not exceed the preset proportion threshold, the current remaining available capacity of the memory to be used is enough to be used, and the capacity expansion of the memory to be used is not needed.
Based on this, after obtaining the proportion of the used capacity of the memory to be used to the current total capacity of the memory to be used, the method compares the proportion value with a preset proportion threshold value, and if the proportion value exceeds the preset proportion threshold value, the memory to be used is determined to need capacity expansion; and if the proportion value does not exceed the preset proportion threshold value, determining that the capacity of the memory to be used does not need to be expanded.
As an alternative embodiment, the process of obtaining the current total capacity of the to-be-used memory includes:
determining the initial total capacity of the memory to be used in advance according to the initial configuration condition of the memory to be used, and taking the initial total capacity as the current total capacity of the memory to be used;
after the memory with the same size as the capacity to be expanded is automatically planned from the standby memory to be used as the expanded capacity of the memory to be used, the current total capacity of the memory to be used is added with the capacity to be expanded to obtain the current updated total capacity of the memory to be used.
Specifically, after the capacity of the memory to be used is expanded, the total capacity of the memory to be used (the used capacity of the memory to be used + the remaining available capacity of the memory to be used) changes, and it can be understood that, when the ratio of the used capacity of the memory to be used to the current total capacity of the memory to be used is obtained, the current total capacity of the memory to be used needs to be updated according to an actual situation, so as to obtain a real ratio of the used capacity of the memory to be used to the current total capacity of the memory to be used.
Based on this, the initial total capacity of the memory to be used is determined in advance according to the initial configuration condition of the memory to be used, that is, when the memory to be used is not expanded, the initial total capacity of the memory to be used is the current total capacity of the memory to be used. After the memory with the same size as the capacity to be expanded is automatically planned from the standby memory to be used as the expanded capacity of the memory to be used, the current total capacity of the memory to be used plus the capacity to be expanded is the current total capacity of the memory to be used, and if the memory with the same size as the capacity to be expanded is automatically planned from the standby memory to be used as the expanded capacity of the memory to be used subsequently, the current total capacity of the memory to be used is the current total capacity of the memory to be used plus the capacity to be expanded, so that the current updated total capacity of the memory to be used is obtained.
As an optional embodiment, the process of automatically determining the capacity to be expanded of the memory to be used according to the preset expansion policy includes:
predicting the pre-used memory capacity of the switch in a certain period of time in the future according to the historical capacity use condition of the memory to be used;
and taking the capacity of the pre-used memory as the capacity to be expanded of the memory to be used.
Specifically, considering that the traffic flow corresponding to some switches is large and the capacity of the to-be-used memory corresponding to the switches is used more, when the to-be-used memories corresponding to the switches are expanded, the capacity of the memories is expanded as much as possible, so as to avoid frequent expansion of the to-be-used memories. Based on this, according to the historical capacity use condition of the to-be-used memory, the pre-used memory capacity of the switch in a certain period of time in the future, namely the to-be-expanded capacity of the to-be-used memory, can be predicted, specifically, the more capacity use in the past certain period of time exists in the to-be-used memory, the greater the capacity requirement of the switch in the certain period of time in the future is considered, namely, the greater the to-be-expanded capacity of the to-be-used memory is, and therefore the capacity expansion of the to-be-used memory is more reasonably performed.
As an alternative embodiment, the process of predicting the pre-used memory capacity of the switch in a certain period of time in the future according to the historical capacity usage of the memory to be used includes:
a deep learning model for predicting the pre-used memory capacity of the switch in a certain period of time in the future according to the historical capacity use condition of the memory to be used is established and trained in advance;
after the historical capacity use condition of the memory to be used is obtained, the historical capacity use condition of the memory to be used is input into the deep learning model, and the pre-used memory capacity of the switch in a certain period of time in the future is obtained.
Specifically, the method can predict the pre-used memory capacity of the switch within a certain time period in the future by adopting a deep learning algorithm, specifically, a deep learning model which is established in advance and trained and used for predicting the pre-used memory capacity of the switch within the certain time period in the future according to the historical capacity use condition of the memory to be used is established and trained, the historical capacity use condition of the memory to be used is used as the input of the deep learning model, and the output of the deep learning model is the pre-used memory capacity of the switch within the certain time period in the future.
It can be understood that, when the historical capacity usage of the to-be-used memory changes, the predicted pre-used memory capacity of the switch in a certain period of time in the future also changes, so that the dynamic adjustment of the to-be-expanded capacity of the to-be-used memory is realized.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a memory capacity expansion system of a switch according to an embodiment of the present invention.
The memory capacity expansion system of the switch comprises:
the memory configuration module 1 is used for configuring a memory to be used and a standby memory for the switch in advance;
the capacity obtaining module 2 is used for obtaining the capacity use condition of the memory to be used;
the capacity expansion judging module 3 is used for automatically judging whether the memory to be used needs capacity expansion according to the capacity use condition; if yes, issuing a capacity expansion instruction;
and the memory capacity expansion module 4 is used for automatically determining the capacity to be expanded of the memory to be used according to a preset capacity expansion strategy after receiving a capacity expansion instruction, and automatically planning the memory with the same size as the capacity to be expanded from the standby memory to be used as the expansion capacity of the memory to be used.
As an optional embodiment, the capacity obtaining module 2 is specifically configured to:
after the memory to be used is started, starting the cyclic detection of the capacity of the memory to be used to obtain the capacity use condition of the memory to be used;
dynamically adjusting the cycle detection time of the capacity of the memory to be used according to the capacity use change condition of the memory to be used so as to detect the capacity of the memory to be used according to the cycle detection time after the latest adjustment; wherein, the faster the capacity of the memory to be used is used, the shorter the cycle detection time.
As an optional embodiment, the memory capacity expansion module 4 is specifically configured to:
predicting the pre-used memory capacity of the switch in a certain period of time in the future according to the historical capacity use condition of the memory to be used;
the capacity of the pre-used memory is used as the capacity to be expanded of the memory to be used, and the memory with the same size as the capacity to be expanded is automatically planned from the standby memory to be used as the expanded capacity of the memory to be used.
For introduction of the memory capacity expansion system provided in the present application, reference is made to the above-mentioned embodiment of the memory capacity expansion method, and details of the present application are not repeated herein.
The present application further provides a memory capacity expansion device of a switch, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the memory capacity expansion method of any switch when executing the computer program.
For introduction of the memory capacity expansion device provided in the present application, reference is made to the above-mentioned embodiment of the memory capacity expansion method, and details of the memory capacity expansion device are not described herein again.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for expanding memory of a switch is characterized by comprising the following steps:
configuring a memory to be used and a standby memory for the switch in advance;
acquiring the capacity use condition of the memory to be used;
automatically judging whether the memory to be used needs to be expanded according to the capacity use condition;
if yes, automatically determining the capacity to be expanded of the memory to be used according to a preset expansion strategy, and automatically planning the memory with the same size as the capacity to be expanded from the standby memory to be used as the expansion capacity of the memory to be used.
2. The method for expanding the memory of the switch according to claim 1, wherein the process of obtaining the capacity usage of the memory to be used includes:
after the to-be-used memory is started, starting the cyclic detection of the capacity of the to-be-used memory to obtain the capacity use condition of the to-be-used memory;
dynamically adjusting the cycle detection time of the capacity of the memory to be used according to the capacity use change condition of the memory to be used so as to detect the capacity of the memory to be used according to the cycle detection time after the latest adjustment; wherein the faster the capacity of the memory to be used is used, the shorter the cycle detection time is.
3. The method for expanding the memory of the switch according to claim 1, wherein the capacity usage of the memory to be used is obtained; the process of automatically judging whether the memory to be used needs capacity expansion according to the capacity use condition comprises the following steps:
acquiring the used capacity of the memory to be used;
calculating the proportion of the used capacity of the memory to be used to the current total capacity of the memory to be used; the current total capacity of the to-be-used memory is equal to the used capacity of the to-be-used memory plus the current remaining available capacity of the to-be-used memory;
judging whether the proportion exceeds a preset proportion threshold value or not;
if yes, determining that the memory to be used needs to be expanded;
and if not, determining that the memory to be used does not need to be expanded.
4. The method for expanding the memory of the switch as claimed in claim 3, wherein the obtaining procedure of the current total capacity of the memory to be used includes:
determining the initial total capacity of the memory to be used in advance according to the initial configuration condition of the memory to be used, and taking the initial total capacity as the current total capacity of the memory to be used;
and after automatically planning a memory with the same size as the capacity to be expanded from the standby memory to be used as the expanded capacity of the memory to be used, adding the current total capacity of the memory to be used to the capacity to be expanded to obtain the current updated total capacity of the memory to be used.
5. The method for expanding the memory of the switch according to any one of claims 1 to 4, wherein the process of automatically determining the capacity to be expanded of the memory to be used according to a preset expansion policy comprises:
predicting the pre-used memory capacity of the switch in a certain period of time in the future according to the historical capacity use condition of the memory to be used;
and taking the capacity of the pre-used memory as the capacity to be expanded of the memory to be used.
6. The method for expanding the memory of the switch according to claim 5, wherein the step of predicting the pre-used memory capacity of the switch in a certain period of time in the future according to the historical capacity usage of the memory to be used comprises:
a deep learning model for predicting the pre-used memory capacity of the switch within a certain period of time in the future according to the historical capacity use condition of the memory to be used is established and trained in advance;
after the historical capacity use condition of the memory to be used is obtained, the historical capacity use condition of the memory to be used is input into the deep learning model, and the pre-used memory capacity of the switch in a certain period of time in the future is obtained.
7. A memory capacity expansion system for a switch, comprising:
the memory configuration module is used for configuring a memory to be used and a standby memory for the switch in advance;
the capacity acquisition module is used for acquiring the capacity use condition of the memory to be used;
the capacity expansion judging module is used for automatically judging whether the memory to be used needs capacity expansion according to the capacity use condition; if yes, issuing a capacity expansion instruction;
and the memory capacity expansion module is used for automatically determining the capacity to be expanded of the memory to be used according to a preset capacity expansion strategy after receiving the capacity expansion instruction, and automatically planning the memory with the same size as the capacity to be expanded from the standby memory to be used as the expansion capacity of the memory to be used.
8. The system for expanding memory of a switch according to claim 7, wherein the capacity obtaining module is specifically configured to:
after the to-be-used memory is started, starting the cyclic detection of the capacity of the to-be-used memory to obtain the capacity use condition of the to-be-used memory;
dynamically adjusting the cycle detection time of the capacity of the memory to be used according to the capacity use change condition of the memory to be used so as to detect the capacity of the memory to be used according to the cycle detection time after the latest adjustment; wherein the faster the capacity of the memory to be used is used, the shorter the cycle detection time is.
9. The memory expansion system of the switch according to any one of claims 7 to 8, wherein the memory expansion module is specifically configured to:
predicting the pre-used memory capacity of the switch in a certain period of time in the future according to the historical capacity use condition of the memory to be used;
and taking the capacity of the pre-used memory as the capacity to be expanded of the memory to be used, and automatically planning the memory with the same size as the capacity to be expanded from the standby memory to be used as the expanded capacity of the memory to be used.
10. A memory capacity expansion device of a switch, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the memory expansion method of the switch according to any one of claims 1 to 6 when executing said computer program.
CN202011112714.3A 2020-10-16 2020-10-16 Memory capacity expansion method, system and device of switch Pending CN112291086A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011112714.3A CN112291086A (en) 2020-10-16 2020-10-16 Memory capacity expansion method, system and device of switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011112714.3A CN112291086A (en) 2020-10-16 2020-10-16 Memory capacity expansion method, system and device of switch

Publications (1)

Publication Number Publication Date
CN112291086A true CN112291086A (en) 2021-01-29

Family

ID=74496385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011112714.3A Pending CN112291086A (en) 2020-10-16 2020-10-16 Memory capacity expansion method, system and device of switch

Country Status (1)

Country Link
CN (1) CN112291086A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988071A (en) * 2021-03-15 2021-06-18 中国建设银行股份有限公司 Distributed storage capacity expansion method and device, storage medium and equipment
WO2022170769A1 (en) * 2021-02-10 2022-08-18 华为技术有限公司 Communication method, apparatus, and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182350A (en) * 2013-05-28 2014-12-03 中国银联股份有限公司 Memory management method and device aiming at application containing multiple processes
CN105607868A (en) * 2015-12-14 2016-05-25 华为数字技术(成都)有限公司 Method and apparatus for capacity expansion of storage array
CN109885469A (en) * 2019-02-27 2019-06-14 深信服科技股份有限公司 A kind of expansion method, prediction model creation method, device, equipment and medium
CN111459673A (en) * 2020-03-31 2020-07-28 支付宝(杭州)信息技术有限公司 Secure memory expansion and release method and device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182350A (en) * 2013-05-28 2014-12-03 中国银联股份有限公司 Memory management method and device aiming at application containing multiple processes
CN105607868A (en) * 2015-12-14 2016-05-25 华为数字技术(成都)有限公司 Method and apparatus for capacity expansion of storage array
CN109885469A (en) * 2019-02-27 2019-06-14 深信服科技股份有限公司 A kind of expansion method, prediction model creation method, device, equipment and medium
CN111459673A (en) * 2020-03-31 2020-07-28 支付宝(杭州)信息技术有限公司 Secure memory expansion and release method and device and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022170769A1 (en) * 2021-02-10 2022-08-18 华为技术有限公司 Communication method, apparatus, and system
CN112988071A (en) * 2021-03-15 2021-06-18 中国建设银行股份有限公司 Distributed storage capacity expansion method and device, storage medium and equipment
CN112988071B (en) * 2021-03-15 2024-05-24 中国建设银行股份有限公司 Distributed storage capacity expansion method, device, storage medium and equipment

Similar Documents

Publication Publication Date Title
CN110493091A (en) A kind of control method and device of smart home device
CN112291086A (en) Memory capacity expansion method, system and device of switch
CN104580721A (en) Alarm clock implementation method for terminal
CN106022108B (en) A kind of synchronization management method and terminal device
CN104113576A (en) Method and device for updating client
CN107402808B (en) Process management method, device, storage medium and electronic equipment
CN102981905B (en) A kind of application control method and electronic equipment
CN109756372B (en) Elastic expansion method and device for telecommunication charging system
CN105704758A (en) Method and device of closing social applications based on flow monitoring
US10142928B2 (en) Method and apparatus for reducing power consumption, and mobile terminal
CN104156050A (en) Task monitoring method and electronic device
CN106598508A (en) Solid-state hard disc and write-in arbitrating method and system thereof
CN115002126A (en) Service scheduling method and device based on edge server cluster
CN113986000A (en) Server power-on method, system, device and medium
CN114461394A (en) Method, device, equipment and storage medium for controlling expansion and contraction of CPU (Central processing Unit) resources
CN106201714A (en) A kind of ODEX optimization method and system
CN110083405B (en) Function starting method and device
CN109974229B (en) Method and device for determining air conditioner state, electronic equipment and storage medium
CN109660625B (en) Edge device control method, edge device and computer readable storage medium
CN115425733B (en) Charging control method and device, solar charging controller and storage medium
CN110362314B (en) Information processing method and device, computer readable medium and electronic equipment
CN111245355B (en) Control method of cleaning device, and readable storage medium
CN113628621A (en) Method, system and device for realizing nearby awakening of equipment
CN103942057A (en) Method and device for opening object
CN108965378B (en) IO mode identification method, system, equipment and computer 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210129