Method, system, terminal and storage medium for adjusting SAI layer message queue of switch

文档序号:1834630 发布日期:2021-11-12 浏览:35次 中文

阅读说明:本技术 交换机sai层消息队列调节方法、系统、终端及存储介质 (Method, system, terminal and storage medium for adjusting SAI layer message queue of switch ) 是由 周国浪 郭巍松 于 2021-07-16 设计创作,主要内容包括:本发明提供一种交换机SAI层消息队列调节方法、系统、终端及存储介质,包括:利用SAI层的消息队列管理进程的带参数启动功能设定所述消息队列管理进程的队列长度位置参数;消息队列管理进程启动后监控CPU资源占用率,并在监控到CPU资源占用率低于预设阈值时,根据所述队列长度位置参数读取并缓存所述队列长度;监控消息队列的数据量,并将监控到消息队列的数据量超过预设数据阈值后,将缓存的队列长度设置为所述消息队列的实际长度。本发明能够实现SAI层消息队列长度的动态设置,避免了消息遗漏或长度不合理占用内存的问题,且在设置消息队列长度过程中不会在CPU繁忙时抢占CPU资源,不影响CPU的业务处理效率。(The invention provides a method, a system, a terminal and a storage medium for adjusting a message queue of an SAI layer of a switch, wherein the method comprises the following steps: setting a queue length position parameter of a message queue management process by utilizing a belt parameter starting function of the message queue management process of an SAI layer; monitoring the occupancy rate of CPU resources after the message queue management process is started, and reading and caching the queue length according to the queue length position parameter when the occupancy rate of CPU resources is monitored to be lower than a preset threshold value; and monitoring the data volume of the message queue, and setting the length of the buffered queue as the actual length of the message queue after the monitored data volume of the message queue exceeds a preset data threshold. The invention can realize the dynamic setting of the SAI layer message queue length, avoids the problems of message omission or unreasonable length and memory occupation, does not seize CPU resources when the CPU is busy in the process of setting the message queue length, and does not influence the service processing efficiency of the CPU.)

1. A method for adjusting SAI layer message queue of a switch is characterized by comprising the following steps:

setting a queue length position parameter of a message queue management process by utilizing a belt parameter starting function of the message queue management process of an SAI layer;

monitoring the occupancy rate of CPU resources after the message queue management process is started, and reading and caching the queue length according to the queue length position parameter when the occupancy rate of CPU resources is monitored to be lower than a preset threshold value;

and monitoring the data volume of the message queue, and setting the length of the buffered queue as the actual length of the message queue after the monitored data volume of the message queue exceeds a preset data threshold.

2. The method of claim 1, wherein setting the queue length position parameter of the message queue management process using a parameter-carrying start function of the message queue management process of the SAI layer comprises:

storing the queue length input by a user in a queue length setting file;

and adding a file path of the queue length setting file as a parameter entry to the message queue management process.

3. The method of claim 2, wherein monitoring the CPU resource occupancy rate after the message queue management process is started, and reading and buffering the queue length according to the queue length location parameter when it is monitored that the CPU resource occupancy rate is lower than a preset threshold value, comprises:

the message queue management process is provided with the queue length position parameter after being started;

the message queue management process monitors the occupancy rate of the CPU resource, and reads the queue length value in the queue length setting file according to the queue length position parameter when the occupancy rate of the CPU resource is lower than 40 percent;

and caching the queue length value by using a map variable.

4. The method of claim 1, wherein monitoring the data amount of the message queue, and setting the buffered queue length as the actual length of the message queue after the monitored data amount of the message queue exceeds a preset data threshold comprises:

the message queue management process reads the data volume of the message queue regularly and takes the proportion of the data volume to the total data volume of the current message queue as the queue occupancy rate;

and if the queue occupancy rate is monitored to exceed 90%, reading the queue length of the buffer, and setting the read queue length as the actual length of the message queue.

5. A switch SAI layer message queue adjustment system, comprising:

the device comprises a parameter setting unit, a parameter setting unit and a parameter setting unit, wherein the parameter setting unit is used for setting a queue length position parameter of a message queue management process by utilizing a parameter starting function of the message queue management process of an SAI layer;

the length reading unit is used for monitoring the occupancy rate of CPU resources after the message queue management process is started, and reading and caching the queue length according to the queue length position parameter when the occupancy rate of the CPU resources is monitored to be lower than a preset threshold value;

and the length setting unit is used for monitoring the data volume of the message queue, and setting the buffered queue length as the actual length of the message queue after the monitored data volume of the message queue exceeds a preset data threshold value.

6. The system according to claim 5, wherein the parameter setting unit comprises:

the file storage module is used for storing the queue length input by the user in the queue length setting file;

and the entry adding module is used for adding the file path of the queue length setting file to the message queue management process as a parameter entry.

7. The system of claim 6, wherein the length reading unit comprises:

the process starting module is used for carrying the queue length position parameter after the message queue management process is started;

the resource monitoring module is used for monitoring the occupancy rate of the CPU resource by the message queue management process, and reading the queue length value in the queue length setting file according to the queue length position parameter when the occupancy rate of the CPU resource is lower than 40 percent;

and the length caching module is used for caching the queue length value by utilizing a map variable.

8. The system of claim 5, wherein the length setting unit comprises:

the queue monitoring module is used for periodically reading the data volume of the message queue by the message queue management process and taking the proportion of the data volume to the total data volume of the current message queue as the queue occupancy rate;

and the length setting module is used for reading the queue length of the cache if the queue occupancy rate is monitored to exceed 90 percent, and setting the read queue length as the actual length of the message queue.

9. A terminal, comprising:

a processor;

a memory for storing instructions for execution by the processor;

wherein the processor is configured to perform the method of any one of claims 1-4.

10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-4.

Technical Field

The invention relates to the technical field of switches, in particular to a method, a system, a terminal and a storage medium for adjusting a switch SAI layer message queue.

Background

A Switch means a "Switch" is a network device used for electrical (optical) signal forwarding. It may provide an exclusive electrical signal path for any two network nodes accessing the switch. The most common switch is an ethernet switch. Other common are telephone voice switches, fiber switches, and the like. The exchange is a general name of the technology of sending the information to be transmitted to the corresponding route meeting the requirements by a method of manual or automatic completion by equipment according to the requirements of transmitting the information at two communication ends. The switches can be divided into wide area network switches and local area network switches according to the working positions. The wide area switch is a device for performing information exchange function in a communication system, and is applied to a data link layer. The switch has a plurality of ports, each port has a bridging function and can be connected with a local area network or a high-performance server or a workstation. In practice, switches are sometimes referred to as multi-port bridges.

The network managed by the writer has a dozen brands of systems, and much time and energy are spent on system upgrading, version management, vulnerability and security management. A new generation of open source network operating system SONiC can solve these problems. With the increasing maturity of the SONIC, the SONIC + white box switch is applied more and more in the Internet industry, and may become a mainstream access switch of a data center in the future.

However, the mode of the SONiC system running on the white box switch is increasingly decoupled from the modules. The modules read data from the database and data transfer and synchronization between the modules occurs. A layer of SAI is added between each module of the switching chip and the upper layer, and the SAI layer is a standard which defines which attributes and actions of the switching chip can be set. For example, the attribute traffic of a PORT defines the rate of the PORT, and the SAI layer defines that an attribute name is SAI _ PORT _ ATTR _ SPEED. This top-down property setup is the data exchange from the data plane to the control plane. But the data exchange is bidirectional. When the SAI layer has a message to report to an upper layer, the SONiC is implemented by first enqueuing the message and then processing the message in the slave queue. But this queue is typically fixed in length and is fixed well in the code compilation stage. This can result in message misses, or more serious memory leaks. For example, a queue is too long and the memory is small, which results in the memory being full. Therefore, the queue length is dynamically set, and machines with different hardware configurations can obtain the best performance and stability.

This functionality is not available in current SONiC systems. And there is no related architecture to directly set the queue length.

Disclosure of Invention

In view of the above-mentioned deficiencies of the prior art, the present invention provides a method, a system, a terminal and a storage medium for adjusting a message queue of an SAI layer of a switch, so as to solve the above-mentioned technical problems.

In a first aspect, the present invention provides a method for adjusting a message queue of an SAI layer of a switch, including:

setting a queue length position parameter of a message queue management process by utilizing a belt parameter starting function of the message queue management process of an SAI layer;

monitoring the occupancy rate of CPU resources after the message queue management process is started, and reading and caching the queue length according to the queue length position parameter when the occupancy rate of CPU resources is monitored to be lower than a preset threshold value;

and monitoring the data volume of the message queue, and setting the length of the buffered queue as the actual length of the message queue after the monitored data volume of the message queue exceeds a preset data threshold.

Further, setting a queue length position parameter of the message queue management process by using a belt parameter starting function of the message queue management process of the SAI layer, including:

storing the queue length input by a user in a queue length setting file;

and adding a file path of the queue length setting file as a parameter entry to the message queue management process.

Further, after the message queue management process is started, monitoring the CPU resource occupancy rate, and reading and caching the queue length according to the queue length position parameter when it is monitored that the CPU resource occupancy rate is lower than a preset threshold, including:

the message queue management process is provided with the queue length position parameter after being started;

the message queue management process monitors the occupancy rate of the CPU resource, and reads the queue length value in the queue length setting file according to the queue length position parameter when the occupancy rate of the CPU resource is lower than 40 percent;

and caching the queue length value by using a map variable.

Further, monitoring the data volume of the message queue, and setting the buffered queue length as the actual length of the message queue after the monitored data volume of the message queue exceeds a preset data threshold, including:

the message queue management process reads the data volume of the message queue regularly and takes the proportion of the data volume to the total data volume of the current message queue as the queue occupancy rate;

and if the queue occupancy rate is monitored to exceed 90%, reading the queue length of the buffer, and setting the read queue length as the actual length of the message queue.

In a second aspect, the present invention provides a switch SAI layer message queue adjustment system, including:

the device comprises a parameter setting unit, a parameter setting unit and a parameter setting unit, wherein the parameter setting unit is used for setting a queue length position parameter of a message queue management process by utilizing a parameter starting function of the message queue management process of an SAI layer;

the length reading unit is used for monitoring the occupancy rate of CPU resources after the message queue management process is started, and reading and caching the queue length according to the queue length position parameter when the occupancy rate of the CPU resources is monitored to be lower than a preset threshold value;

and the length setting unit is used for monitoring the data volume of the message queue, and setting the buffered queue length as the actual length of the message queue after the monitored data volume of the message queue exceeds a preset data threshold value.

Further, the parameter setting unit includes:

the file storage module is used for storing the queue length input by the user in the queue length setting file;

and the entry adding module is used for adding the file path of the queue length setting file to the message queue management process as a parameter entry.

Further, the length reading unit includes:

the process starting module is used for carrying the queue length position parameter after the message queue management process is started;

the resource monitoring module is used for monitoring the occupancy rate of the CPU resource by the message queue management process, and reading the queue length value in the queue length setting file according to the queue length position parameter when the occupancy rate of the CPU resource is lower than 40 percent;

and the length caching module is used for caching the queue length value by utilizing a map variable.

Further, the length setting unit includes:

the queue monitoring module is used for periodically reading the data volume of the message queue by the message queue management process and taking the proportion of the data volume to the total data volume of the current message queue as the queue occupancy rate;

and the length setting module is used for reading the queue length of the cache if the queue occupancy rate is monitored to exceed 90 percent, and setting the read queue length as the actual length of the message queue.

In a third aspect, a terminal is provided, including:

a processor, a memory, wherein,

the memory is used for storing a computer program which,

the processor is used for calling and running the computer program from the memory so as to make the terminal execute the method of the terminal.

In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.

The beneficial effect of the invention is that,

the invention provides a method for adjusting a message queue of an exchanger SAI layer, which is based on the function of starting self-contained parameters of a message queue management process, and builds a channel capable of reading the queue length set by a user by additionally arranging a parameter inlet in the message queue management process of the SAI layer, thereby realizing the automatic reading and buffering of the queue length when a CPU is idle, and setting the buffered queue length as the actual length of the message queue when the data volume of the existing message queue is overlarge. The invention can realize the dynamic setting of the SAI layer message queue length, avoids the problems of message omission or unreasonable length and memory occupation, does not seize CPU resources when the CPU is busy in the process of setting the message queue length, and does not influence the service processing efficiency of the CPU.

The invention provides a switch SAI layer message queue adjusting system, which starts a function of self-contained parameters based on a message queue management process, and a parameter inlet is additionally arranged on the message queue management process of an SAI layer through a parameter setting unit to construct a channel capable of reading the queue length set by a user, so that the length reading unit can automatically read and buffer the queue length when a CPU is idle, and the length setting unit sets the buffered queue length as the actual length of a message queue when the data amount of the existing message queue is overlarge. The invention can realize the dynamic setting of the SAI layer message queue length, avoids the problems of message omission or unreasonable length and memory occupation, does not seize CPU resources when the CPU is busy in the process of setting the message queue length, and does not influence the service processing efficiency of the CPU.

The terminal provided by the invention comprises a processor for operating the message queue adjusting method of the SAI layer of the switch, a function of self-contained parameters is started based on the message queue management process, a channel capable of reading the queue length set by a user is constructed by additionally arranging a parameter inlet in the message queue management process of the SAI layer, the automatic reading and caching of the queue length when a CPU is idle are realized, and the cached queue length is set as the actual length of the message queue when the data volume of the existing message queue is overlarge. The invention can realize the dynamic setting of the SAI layer message queue length, avoids the problems of message omission or unreasonable length and memory occupation, does not seize CPU resources when the CPU is busy in the process of setting the message queue length, and does not influence the service processing efficiency of the CPU.

The storage medium provided by the invention is stored with a program for executing the adjustment method of the SAI layer message queue of the switch, the function of self-contained parameters is started based on the message queue management process, a channel capable of reading the queue length set by a user is constructed by additionally arranging a parameter inlet in the message queue management process of the SAI layer, the automatic reading and caching of the queue length when a CPU is idle are realized, and the cached queue length is set as the actual length of the message queue when the data volume of the existing message queue is overlarge. The invention can realize the dynamic setting of the SAI layer message queue length, avoids the problems of message omission or unreasonable length and memory occupation, does not seize CPU resources when the CPU is busy in the process of setting the message queue length, and does not influence the service processing efficiency of the CPU.

In addition, the invention has reliable design principle, simple structure and very wide application prospect.

Drawings

In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.

FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.

FIG. 2 is a schematic block diagram of a system of one embodiment of the present invention.

Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.

Detailed Description

In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. 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.

The following explains key terms appearing in the present invention.

The Map variable is a pointer to the type of Map structure.

A Central Processing Unit (CPU) is a final execution unit for information processing and program operation, and serves as an operation and control core of a computer system.

FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. The execution body in fig. 1 may be a switch SAI layer message queue adjustment system.

As shown in fig. 1, the method includes:

step 110, setting queue length position parameters of the message queue management process by using a parameter starting function of the message queue management process of an SAI layer;

step 120, after the message queue management process is started, monitoring the occupancy rate of the CPU resource, and reading and caching the queue length according to the queue length position parameter when the occupancy rate of the CPU resource is monitored to be lower than a preset threshold value;

step 130, monitoring the data volume of the message queue, and setting the buffered queue length as the actual length of the message queue after the monitored data volume of the message queue exceeds the preset data threshold.

In order to facilitate understanding of the present invention, the principle of the method for adjusting the switch SAI layer message queue of the present invention is used in conjunction with the process of adjusting the switch SAI layer message queue in the embodiment to further describe the method for adjusting the switch SAI layer message queue provided by the present invention.

Specifically, the method for adjusting the message queue of the SAI layer of the switch includes:

s1, setting the queue length position parameter of the message queue management process by using the belt parameter starting function of the message queue management process of the SAI layer.

In the software system of the Langchao self-developed switch, one process for processing the message queue is called syncd. The process itself is designed to incorporate startup parameters at startup. When the Syncd process is started, parameters can be carried, and a parameter entry function of the Syncd process can be realized, so that the parameter transmitted by a parameter entry designed for the Syncd process is a file path. The user may set the extended message queue length by modifying an attribute value in the length setting file in the file path. The length setting file is connected with a user interaction interface, and the user side can write the latest message queue length into the length setting file through the user interaction interface.

Specifically, the queue length input by the user is stored in a queue length setting file; and adding a file path of the queue length setting file as a parameter entry to the message queue management process.

Thereby enabling reading of user-set parameters.

And S2, monitoring the occupancy rate of CPU resources after the message queue management process is started, and reading and caching the queue length according to the queue length position parameter when the occupancy rate of CPU resources is monitored to be lower than a preset threshold value.

The message queue management process is provided with the queue length position parameter after being started; the message queue management process monitors the occupancy rate of the CPU resource, and reads the queue length value in the queue length setting file according to the queue length position parameter when the occupancy rate of the CPU resource is lower than 40 percent; and caching the queue length value by using a map variable.

When there is no data in the message queue, that is, the SONiC system is not busy, it is meaningless to change the length of the queue at this time, because no data or little data exists in the message queue no matter whether the length of the message queue is long or short, and the message data loss caused by the insufficient length of the message queue cannot be caused. It is better to set when the message queue is full of data. However, when the data in the queue is full, the CPU is normally in a busy state, and reading the queue length setting file at this time increases the overhead of the CPU, which may compete with the time slice for processing the traffic.

Therefore, in the present embodiment, the CPU resource occupancy threshold is set to 40%, and the CPU is in the idle state when the CPU resource occupancy is lower than 40%. When the CPU is idle, reading a file set by a user through parameters, and saving a read queue length value into a map variable (the syncd also has a mechanism for storing by using the map). The speed of reading the queue length value from the map variable is much higher than that of reading the queue length value from the parameter entry reading queue length setting file.

And S3, monitoring the data volume of the message queue, and setting the length of the buffered queue as the actual length of the message queue after the monitored data volume of the message queue exceeds a preset data threshold value.

The message queue management process reads the data volume of the message queue regularly and takes the proportion of the data volume to the total data volume of the current message queue as the queue occupancy rate; and if the queue occupancy rate is monitored to exceed 90%, reading the queue length of the buffer, and setting the read queue length as the actual length of the message queue.

And the message queue management process reads the data volume of the message queue every 30s, and simultaneously, the message queue management calculates the proportion of the data volume to the total data volume of the current message queue as the queue occupancy rate. In this embodiment, the data threshold is set to be 90%, once the queue occupancy rate reaches 90%, the message queue length adjustment is triggered, the message queue management process extracts the queue length from the map cache, and sets the queue length as the actual length of the message queue, thereby implementing dynamic capacity expansion of the message queue. The queue length value is stored in the map in advance, so the access speed is high, the queue length can be set when the queue is full, namely the CPU is full, and the CPU cannot be preempted with the service logic. Thus trading off the dynamic change of queue length for this function with little cost.

The embodiment adopts a strategy of separating the process of reading the queue length value from the process of modifying the queue length, so that the message queue is expanded in time without influencing the CPU service efficiency when the message queue data is full.

The specific process is as follows:

(1) the setting entry of the queue length required by the user is added by utilizing the characteristic that the syncd process is started by self-contained parameters.

(2) The mode of obtaining and setting the queue length separately is adopted to save the CPU and reduce the time slice competing with the business logic for the CPU, thereby improving the utilization rate of hardware resources for customers.

(3) In order to reduce unnecessary CPU overhead, when the queue length in a file is changed, the length of the queue is not set immediately, but is read out from the file when the CPU is idle, stored in a map structure capable of being accessed quickly, and then the length of the queue is changed.

(4) When the queue is nearly full, we get the length value from the map to set the queue length.

The method for adjusting the message queue of the switch SAI layer provided in this embodiment starts a function with parameters based on a message queue management process, and establishes a channel capable of reading a queue length set by a user by adding a parameter entry to the message queue management process of the SAI layer, so as to automatically read and buffer the queue length when a CPU is idle, and set the buffered queue length as an actual length of a message queue when the amount of data of the existing message queue is too large. The embodiment can realize the dynamic setting of the SAI layer message queue length, avoids the problems of message omission or unreasonable length and memory occupation, does not seize CPU resources when the CPU is busy in the process of setting the message queue length, and does not influence the service processing efficiency of the CPU.

As shown in fig. 2, the system 200 includes:

a parameter setting unit 210, configured to set a queue length position parameter of a message queue management process by using a parameter-carrying start function of the message queue management process of an SAI layer;

a length reading unit 220, configured to monitor the CPU resource occupancy rate after the message queue management process is started, and read and buffer the queue length according to the queue length position parameter when the CPU resource occupancy rate is monitored to be lower than a preset threshold;

the length setting unit 230 is configured to monitor a data amount of the message queue, and set the buffered queue length as an actual length of the message queue after the monitored data amount of the message queue exceeds a preset data threshold.

Optionally, as an embodiment of the present invention, the parameter setting unit includes:

the file storage module is used for storing the queue length input by the user in the queue length setting file;

and the entry adding module is used for adding the file path of the queue length setting file to the message queue management process as a parameter entry.

Optionally, as an embodiment of the present invention, the length reading unit includes:

the process starting module is used for carrying the queue length position parameter after the message queue management process is started;

the resource monitoring module is used for monitoring the occupancy rate of the CPU resource by the message queue management process, and reading the queue length value in the queue length setting file according to the queue length position parameter when the occupancy rate of the CPU resource is lower than 40 percent;

and the length caching module is used for caching the queue length value by utilizing a map variable.

Optionally, as an embodiment of the present invention, the length setting unit includes:

the queue monitoring module is used for periodically reading the data volume of the message queue by the message queue management process and taking the proportion of the data volume to the total data volume of the current message queue as the queue occupancy rate;

and the length setting module is used for reading the queue length of the cache if the queue occupancy rate is monitored to exceed 90 percent, and setting the read queue length as the actual length of the message queue.

The switch SAI layer message queue adjusting system provided in this embodiment starts a function of self-contained parameters based on a message queue management process, and builds a channel capable of reading a queue length set by a user by adding a parameter entry in the message queue management process of the SAI layer through a parameter setting unit, so as to realize that a length reading unit automatically reads and buffers the queue length when a CPU is idle, and the length setting unit sets the buffered queue length as an actual length of a message queue when the amount of data of the existing message queue is too large. The embodiment can realize the dynamic setting of the SAI layer message queue length, avoids the problems of message omission or unreasonable length and memory occupation, does not seize CPU resources when the CPU is busy in the process of setting the message queue length, and does not influence the service processing efficiency of the CPU.

Fig. 3 is a schematic structural diagram of a terminal 300 according to an embodiment of the present invention, where the terminal 300 may be used to execute a method for adjusting a message queue of an SAI layer of a switch according to the embodiment of the present invention.

Among them, the terminal 300 may include: a processor 310, a memory 320, and a communication unit 330. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.

The memory 320 may be used for storing instructions executed by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 320, when executed by processor 310, enable terminal 300 to perform some or all of the steps in the method embodiments described below.

The processor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 310 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.

A communication unit 330, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.

The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).

Therefore, the invention starts the function of self-contained parameters based on the message queue management process, constructs a channel capable of reading the queue length set by the user by additionally arranging a parameter inlet in the message queue management process of the SAI layer, realizes the automatic reading and the buffer storage of the queue length when a CPU is idle, and sets the buffer storage queue length as the actual length of the message queue when the data volume of the existing message queue is overlarge. The invention can realize the dynamic setting of the SAI layer message queue length, avoids the problems of message omission or unreasonable length occupying memory, does not seize CPU resources when the CPU is busy in the process of setting the message queue length, does not influence the service processing efficiency of the CPU, and can achieve the technical effect which is referred to the description above and is not repeated herein.

Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.

The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.

In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.

Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于行政区划的POP站点分配方法和系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!