CN115576710A - Data transmission method of substrate management controller and related device - Google Patents

Data transmission method of substrate management controller and related device Download PDF

Info

Publication number
CN115576710A
CN115576710A CN202211157424.XA CN202211157424A CN115576710A CN 115576710 A CN115576710 A CN 115576710A CN 202211157424 A CN202211157424 A CN 202211157424A CN 115576710 A CN115576710 A CN 115576710A
Authority
CN
China
Prior art keywords
data
channel
sending
receiving
cache
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
CN202211157424.XA
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.)
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Original Assignee
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center 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 Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd filed Critical Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Priority to CN202211157424.XA priority Critical patent/CN115576710A/en
Publication of CN115576710A publication Critical patent/CN115576710A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling

Abstract

The application discloses a data transmission method of a baseboard management controller, which comprises the following steps: setting the distribution proportion of a sending channel and a receiving channel in a shared cache of a data transceiving cache as a default distribution proportion; when data transceiving operation is executed, judging whether the difference value between the data volume of the sending channel and the data volume of the receiving channel is larger than a threshold value or not; if yes, adjusting the distribution proportion of a sending channel and a receiving channel in the shared cache; and executing data transceiving operation based on the adjusted shared cache. The distribution proportion of the shared cache is adjusted, so that the utilization rate of the data receiving and sending cache is improved. The application also discloses a data transmission device of the baseboard management controller, terminal equipment and a computer readable storage medium, and the beneficial effects are achieved.

Description

Data transmission method of substrate management controller and related device
Technical Field
The present application relates to, and in particular, to a data transmission method, a data transmission apparatus, a terminal device, and a computer-readable storage medium for a baseboard management controller.
Background
An MCTP (Management Component Transport Protocol) module in a BMC (Baseboard Management Controller) chip of the server is used for communication between the BMC and other devices. And realizing the access, transmission and configuration of the target equipment.
In the related art, different bandwidth occupied by different operation commands is different and required buffer space is also different when communication is performed. For example, when the transmission parameters are configured, the state acquisition can be completed only by one request reply, and the required bandwidth and the cache space are very small. Firmware upgrade requires a large amount of data to be transmitted, and requires a large bandwidth and a large cache space. However, in chip design, the data transceiving buffer capacity of the MCTP module is usually designed to be a fixed size and to be small. If the buffer capacity is increased, the occupied area is increased, and the cost is increased.
Therefore, how to improve the utilization rate of the data transceiving cache and reduce the cost is a key issue concerned by those skilled in the art.
Disclosure of Invention
The application aims to provide a data transmission method, a data transmission device, a terminal device and a computer readable storage medium of a baseboard management controller, so as to improve the utilization rate of data transceiving cache.
In order to solve the above technical problem, the present application provides a data transmission method for a baseboard management controller, including:
setting the distribution proportion of a sending channel and a receiving channel in a shared cache of a data transceiving cache as a default distribution proportion;
when data transceiving operation is executed, judging whether a difference value between the data volume of the sending channel and the data volume of the receiving channel is larger than a threshold value;
if so, adjusting the distribution ratio of the sending channel and the receiving channel in the shared cache;
and executing data transceiving operation based on the adjusted shared cache.
Optionally, when performing a data transceiving operation, determining whether a difference between the data volume of the sending channel and the data volume of the receiving channel is greater than a threshold, including:
when data transceiving operation is executed, performing command quantity detection on the sending channel and the receiving channel to obtain the command quantity of the sending channel and the command quantity of the receiving channel;
and judging whether the difference value between the data quantity of the sending channel and the data quantity of the receiving channel is larger than a threshold value or not based on the command quantity of the sending channel and the command quantity of the receiving channel.
Optionally, the data transceiving cache includes: a sending private cache, a receiving private cache, and a shared cache.
Optionally, the method further includes:
when transmitting and receiving short data packets, the shared cache based on the default distribution ratio performs data transmitting and receiving operations.
Optionally, adjusting the allocation ratio of the sending channel to the receiving channel in the shared cache includes:
and when the data volume of the sending channel is larger than that of the receiving channel, performing increment processing on the proportion number of the sending channel in the allocation proportion.
Optionally, adjusting the allocation ratio of the sending channel to the receiving channel in the shared cache includes:
and when the data volume of the sending channel is smaller than that of the receiving channel, performing increment processing on the proportion number of the receiving channels in the distribution proportion.
Optionally, the method further includes:
and when the data volume of the sending channel and the data volume of the receiving channel are both smaller than preset values, adjusting the allocation proportion of the sending channel and the receiving channel in the shared cache to a default allocation proportion.
The present application further provides a data transmission device of a baseboard management controller, including:
the default proportion setting module is used for setting the distribution proportion of a sending channel and a receiving channel in the shared cache of the data transceiving cache as the default distribution proportion;
the data volume judging module is used for judging whether the difference value between the data volume of the sending channel and the data volume of the receiving channel is larger than a threshold value or not when data transceiving operation is executed;
a distribution ratio adjusting module, configured to adjust a distribution ratio between the sending channel and the receiving channel in the shared cache when a difference between the data amount of the sending channel and the data amount of the receiving channel is greater than a threshold;
and the data receiving and sending module is used for carrying out data receiving and sending operations based on the adjusted shared cache.
The present application further provides a terminal device, including:
a memory for storing a computer program;
a processor for implementing the steps of the data transmission method as described above when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the data transmission method as described above.
The application provides a data transmission method of a baseboard management controller, which comprises the following steps: setting the distribution proportion of a sending channel and a receiving channel in a shared cache of a data transceiving cache as a default distribution proportion; when data transceiving operation is executed, judging whether a difference value between the data volume of the sending channel and the data volume of the receiving channel is larger than a threshold value; if yes, adjusting the distribution proportion of a sending channel and a receiving channel in the shared cache; and executing data transceiving operation based on the adjusted shared cache.
In the process of data receiving and sending, whether the difference value between the data volume of the sending channel and the data volume of the receiving channel is larger than the threshold value or not is judged, if yes, the allocation proportion of the shared cache is adjusted, the phenomenon that cache resources of another channel are wasted due to the fact that the data volume of a single channel is large is avoided, the utilization rate of a cache system in the data transmission process is improved, the phenomenon of resource waste is avoided, and hardware cost is reduced.
The application also provides a data transmission device, a terminal device and a computer readable storage medium of the baseboard management controller, which have the above beneficial effects, and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a data transmission method of a baseboard management controller according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a baseboard management controller according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an MCTP controller according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a data transceiving cache according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data transmission device of a bmc according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a terminal device provided in the present application.
Detailed Description
The core of the application is to provide a data transmission method, a data transmission device, a terminal device and a computer readable storage medium of a baseboard management controller, so as to improve the utilization rate of data transceiving cache.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but 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 application.
In the related art, different bandwidth occupied by different operation commands is different and required buffer space is also different when communication is performed. For example, when the transmission parameter is configured, the state acquisition can be completed only by one request reply, and the required bandwidth and the cache space are very small. Firmware upgrade requires a large amount of data to be transmitted, and requires a large bandwidth and a large cache space. However, in chip design, the data transceiving buffer capacity of the MCTP module is usually designed to be a fixed size and to be small. If the buffer capacity is increased, the occupied area is increased, and the cost is increased.
Therefore, the application provides a data transmission method of a baseboard management controller, which judges whether a difference value between a data volume of a sending channel and a data volume of a receiving channel is greater than a threshold value in a data receiving and sending process, if so, adjusts a distribution proportion of a shared cache, avoids that cache resources of another channel are wasted due to a large data volume of a single channel, improves a utilization rate of a cache system in a data transmission process, avoids resource waste, and reduces hardware cost.
The following describes a data transmission method of a baseboard management controller according to an embodiment.
Referring to fig. 1, fig. 1 is a flowchart illustrating a data transmission method of a bmc according to an embodiment of the present disclosure.
In this embodiment, the method may include:
s101, setting the distribution ratio of a sending channel and a receiving channel in a shared cache of a data transceiving cache as a default distribution ratio;
the step aims to set the distribution ratio of the sending channel and the receiving channel in the shared cache of the data transceiving cache as the default distribution ratio. That is, the allocation ratio is first set to the shared buffer in the data transceiving buffers. The allocation ratio may control the ratio of allocation to the sending channel and the receiving channel in the shared buffer. For example, if the distribution ratio is 5: and 5, half of the shared buffer is allocated to the transmitting channel, and the remaining half of the shared buffer is allocated to the receiving channel. The data transceiving buffer is a storage module which is positioned in the MCTP controller and is used for carrying out data transceiving buffer, and the size of the data transceiving buffer determines the size of the data volume which can be processed under the same unit. The larger the data transceiving buffer is, the more efficient the data transceiving processing is.
Generally, in the prior art, the buffer size of the data transceiving buffer is fixed for the classification of the transmitting channel and the receiving channel. When the data volume of the sending channel is far larger than that of the receiving channel, the cache corresponding to the receiving channel is not effectively utilized, and the utilization rate is reduced.
Further, the data transceiving caching in this step includes: a sending private cache, a receiving private cache, and a shared cache. As can be seen, the data transceiving cache used in this embodiment includes a sending private cache, a receiving private cache, and a shared cache.
Wherein, the buffer sizes of the transmitting private buffer and the receiving private buffer can be set to be smaller. For example, the size of the capacity used for transmitting the parameter configuration packet may be set.
S102, when data transceiving operation is executed, whether a difference value between the data volume of the sending channel and the data volume of the receiving channel is larger than a threshold value is judged;
on the basis of S101, this step is intended to determine whether or not a difference between the data amount of the transmission channel and the data amount of the reception channel is larger than a threshold when the data transceiving operation is performed. It can be seen that, in this step, it is determined whether the transmission channel or the reception channel is much larger than the other data channel. If yes, it indicates that the channel needs more caches, and the allocation ratio needs to be adjusted when the cache of another channel cannot be fully utilized.
Further, the step may include:
step 1, when data transceiving operation is executed, command quantity detection is carried out on a sending channel and a receiving channel to obtain the command quantity of the sending channel and the command quantity of the receiving channel;
and 2, judging whether the difference value between the data volume of the sending channel and the data volume of the receiving channel is larger than a threshold value or not based on the command number of the sending channel and the command number of the receiving channel.
It can be seen that the present alternative scheme mainly illustrates how it is determined whether the allocation ratio needs to be adjusted. In this alternative, when performing data transceiving operation, performing command number detection on the sending channel and the receiving channel to obtain the command number of the sending channel and the command number of the receiving channel, and determining whether a difference between the data amount of the sending channel and the data amount of the receiving channel is greater than a threshold value based on the command number of the sending channel and the command number of the receiving channel.
S103, if yes, adjusting the distribution proportion of the sending channel and the receiving channel in the shared cache;
on the basis of S102, this step is intended to adjust the allocation ratio of the sending channel and the receiving channel in the shared buffer when the difference between the data amount of the sending channel and the data amount of the receiving channel is greater than the threshold. I.e. a corresponding adjustment is made.
Further, the adjusting process in this step may include:
and when the data volume of the sending channel is larger than that of the receiving channel, performing increment processing on the proportion number of the sending channel in the distribution proportion.
It can be seen that the present alternative scheme mainly explains how to adjust when the data volume of the transmission channel is large. In this alternative, when the data amount of the transmission channel is greater than the data amount of the reception channel, the proportional number of the transmission channel in the allocation proportion is subjected to incremental processing. That is, when the data amount of the transmission channel is large, the proportional number of the transmission channels in the allocation proportion is increased. For example, from 5: the ratio of 5 can be varied to 7:3, in a ratio of the total weight of the composition.
Further, if the data volume of the transmitting channel is still larger than the data volume of the receiving channel after the preset time period, the adjustment can be continued on the basis of the adjustment. For example, the ratio may be from 7:3, adjusting to 9:1. in order to provide maximum bandwidth for timely transmission of data when the number of transmit channels is continuously at a higher data volume.
Further, the adjusting process in this step may include:
and when the data volume of the sending channel is smaller than that of the receiving channel, performing increment processing on the proportion number of the receiving channels in the distribution proportion.
It can be seen that the present alternative scheme mainly illustrates how to adjust when the data volume of the receiving channel is large. In this alternative, when the data amount of the receiving channel is greater than that of the transmitting channel, the proportional number of the receiving channel in the allocation proportion is subjected to incremental processing. That is, when the data amount of the reception channel is large, the proportional number of the reception channels in the allocation proportion is increased. For example, from 5: the ratio of 5 can be varied to 7:3, in a ratio of the total weight of the composition.
Further, if the data volume of the receiving channel is still larger than the data volume of the transmitting channel after the preset time period, the adjustment can be continued on the basis of the adjustment. For example, the ratio may be from 7:3, adjusting to 9:1. in order to provide maximum bandwidth for transmitting data in time when the number of receiving channels is continuously at a higher data volume.
Further, this embodiment may further include:
and when the data volume of the sending channel and the data volume of the receiving channel are both smaller than the preset values, adjusting the distribution ratio of the sending channel and the receiving channel in the shared cache to the default distribution ratio.
It can be seen that, in this alternative scheme, it is mainly explained that, when the sending channel and the receiving channel are both in a smaller data amount, the allocation ratio of the sending channel and the receiving channel in the shared buffer is adjusted to the default allocation ratio. That is, when the data amount is low, the default allocation ratio is switched to, so that the buffers corresponding to the sending channel and the receiving channel are balanced to cope with the change of the burst data amount.
And S104, executing data transceiving operation based on the adjusted shared cache.
On the basis of S103, this step is intended to perform data transceiving operation based on the adjusted shared cache. That is, on the basis of the sending private buffer and the receiving private buffer, data transceiving operation is performed based on the shared buffer with the adjusted proportion.
The embodiment may further include:
when transmitting and receiving the short data packet, the data transmitting and receiving operation is carried out based on the shared cache of the default distribution proportion.
It can be seen that when sending and receiving a short packet, the shared cache based on the default allocation ratio performs the data sending and receiving operation. The short packet is a packet with a small data amount. A parameter configuration packet or a message packet may be included.
In addition, in this embodiment, it may also be determined whether the data amount of the channel with the larger data amount is recovered to the normal level after a period of time after the data transceiving operation is performed. If so, the allocation ratio may be adjusted to the default allocation ratio.
The default classification proportion can be equal division of two channels, and the proportion value of a certain channel can be adjusted to a higher position based on the actual data receiving and sending conditions. For example, the default allocation ratio may be set to 6:4.
in summary, in the process of data transceiving, in this embodiment, it is determined whether a difference between the data amount of the sending channel and the data amount of the receiving channel is greater than a threshold, and if so, the allocation ratio of the shared cache is adjusted, so that it is avoided that a cache resource of another channel is wasted due to a large data amount of a single channel, the utilization rate of the cache system in the data transmission process is improved, resource waste is avoided, and hardware cost is reduced.
The following further describes a data transmission method of a baseboard management controller according to another embodiment.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a bmc according to an embodiment of the present disclosure.
In this embodiment, the related hardware system is composed of a BMC and other devices or apparatuses, and the BMC is connected to the apparatuses through a PCIe (peripheral component interconnect express) or I2C (Inter-Integrated Circuit) bus. The BMC chip system at least comprises a Central Processing Unit (CPU), a memory and an MCTP controller.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an MCTP controller according to an embodiment of the present disclosure.
Therefore, the MCTP controller consists of five parts, including a system bus interface, a control register, a data cache controller, a data packet transceiver controller and an interface control module.
The system bus interface is used for communication between the CPU and the MCTP controller, and comprises parameter configuration, state acquisition, module working switch, data transceiving and the like.
The control register is used for realizing parameter configuration and the internal working state of the storage module.
The data cache controller realizes the cache of the transceiving data and the adjustment control of the cache allocation. And the buffer allocation is automatically adjusted in real time according to the type of the receiving and sending command, the receiving and sending data volume and the like.
The data packet receiving and transmitting controller is used for realizing the receiving and transmitting functions of the MCTP data packet, and comprises the steps of generating the MCTP data packet and analyzing and checking the MCTP data packet.
The interface control module is used for controlling an external bus interface to realize data receiving and transmitting.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a data transceiving cache according to an embodiment of the present application.
In this embodiment, the data transceiving cache is divided into three parts:
1) And sending a private cache with the size of N, and sending a channel special cache.
2) And receiving a private cache with the size of N, and receiving a channel special cache.
3) Shared cache, dynamically allocatable cache area, total size is M.
And under the default state, the shared buffer area is averagely distributed to the sending channel and the receiving channel. The data sending buffer and the data receiving buffer are equal in size.
When the data flow of the sending channel is large, the data flow of the receiving channel is small. And adjusting the distribution proportion of the shared buffer area, wherein the data sending buffer is larger than the data receiving buffer.
And when the data flow of the sending channel is small and the data flow of the receiving channel is large. And adjusting the distribution proportion of the shared buffer area, wherein the data sending buffer is smaller than the data receiving buffer.
Further, the steps of this embodiment may include:
step 1, the equipment is powered on and started, and the MCTP module is automatically matched and connected on the MCTP bus.
And 2, initializing and configuring an MCTP module by system software, and configuring the distribution proportion of the transceiving cache by the system software aiming at the MCTP data cache controller. Here, the distribution ratio is assumed to be 5
And 3, starting normal data receiving and transmitting operation by the system software.
And 4, when only brief data packets such as parameter configuration, state acquisition and the like exist in communication, the data cache controller does not take measures and the cache allocation proportion is unchanged.
And step 5, when the sending data volume is larger than the receiving data volume in the communication, or the data cache controller detects a command of sending a large amount of data. The data cache controller will automatically adjust the cache allocation ratio.
Step 6, firstly, the ratio of the sending buffer to the receiving buffer is adjusted to 7.
And 7, monitoring the size of the residual space of the transceiving cache region in real time in the system work. When the remaining space of the sending buffer gradually decreases and the remaining space of the receiving buffer is substantially unchanged, the ratio of the sending buffer to the receiving buffer is continuously increased, for example, 8:2.
when the remaining space of the sending buffer is basically unchanged and the remaining space of the receiving buffer is gradually reduced, the ratio of the sending buffer to the receiving buffer is continuously reduced.
This process continues until the ratio of transmit buffer to receive buffer is 10, with no room for adjustment.
In step 8, when receiving a large amount of data, the principle of buffer allocation is substantially the same as the process described in step 5 to step 7.
And 9, when the bidirectional flow monitored by the cache control module is low after the end of receiving and transmitting a large amount of data, adjusting the ratio of the transmitting cache to the receiving cache to 5.
In this embodiment, whether the difference between the data amount of the sending channel and the data amount of the receiving channel is greater than the threshold may be determined in the data transceiving process, and if so, the allocation proportion of the shared cache is adjusted, thereby avoiding that the cache resource of another channel is wasted due to a large data amount of a single channel, improving the utilization rate of the cache system in the data transmission process, avoiding wasting the resource, and reducing the hardware cost.
In the following, a data transmission device of a bmc provided in an embodiment of the present application is introduced, and the data transmission device of the bmc described below and the data transmission method of the bmc described above may be referred to correspondingly.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a data transmission device of a bmc according to an embodiment of the present disclosure.
In this embodiment, the apparatus may include:
a default proportion setting module 100, configured to set a default allocation proportion to the allocation proportion of the sending channel and the receiving channel in the shared cache of the data transceiving cache;
a data amount determining module 200, configured to determine whether a difference between a data amount of the sending channel and a data amount of the receiving channel is greater than a threshold when performing data transceiving operation;
a distribution ratio adjusting module 300, configured to adjust a distribution ratio between a sending channel and a receiving channel in a shared cache when a difference between a data amount of the sending channel and a data amount of the receiving channel is greater than a threshold;
and a data transceiving module 400, configured to perform data transceiving operation based on the adjusted shared cache.
Optionally, the data amount determining module 200 is specifically configured to, when performing data transceiving operation, perform command number detection on the sending channel and the receiving channel to obtain a command number of the sending channel and a command number of the receiving channel; whether a difference between the data amount of the transmission channel and the data amount of the reception channel is greater than a threshold is determined based on the command number of the transmission channel and the command number of the reception channel.
Optionally, the data transceiving buffer includes: a sending private cache, a receiving private cache, and a shared cache.
Optionally, the apparatus may further include:
and the small data volume receiving and sending module is used for carrying out data receiving and sending operation based on the shared cache with the default distribution proportion when receiving and sending the short data packet.
Optionally, the distribution ratio adjusting module 300 is specifically configured to perform incremental processing on the ratio number of the sending channel in the distribution ratio when the data amount of the sending channel is greater than the data amount of the receiving channel.
Optionally, the distribution ratio adjusting module 300 is specifically configured to, when the data amount of the sending channel is smaller than the data amount of the receiving channel, perform incremental processing on the proportional number of the receiving channel in the distribution ratio.
Optionally, the apparatus may further include:
and the preset proportion adjusting module is used for adjusting the distribution proportion of the sending channel and the receiving channel in the shared cache to the default distribution proportion when the data volume of the sending channel and the data volume of the receiving channel are both smaller than the preset value.
It can be seen that, in the present embodiment, in the process of data transceiving, whether the difference between the data volume of the sending channel and the data volume of the receiving channel is greater than the threshold is determined, and if yes, the allocation proportion of the shared cache is adjusted, so that the cache resource of another channel is prevented from being wasted due to a large data volume of a single channel, the utilization rate of the cache system in the data transmission process is improved, the resource waste is prevented, and the hardware cost is reduced.
The present application further provides a terminal device, please refer to fig. 6, where fig. 6 is a schematic structural diagram of the terminal device provided in the present application, and the terminal device may include:
a memory for storing a computer program;
the processor is configured to implement the steps of the data transmission method of any one of the baseboard management controllers when executing the computer program.
As shown in fig. 6, which is a schematic diagram of a structure of a terminal device, the terminal device may include: a processor 10, a memory 11, a communication interface 12 and a communication bus 13. The processor 10, the memory 11 and the communication interface 12 all communicate with each other through a communication bus 13.
In the embodiment of the present application, the processor 10 may be a Central Processing Unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic device, etc.
The processor 10 may call a program stored in the memory 11, and in particular, the processor 10 may perform operations in an embodiment of the exception IP recognition method.
The memory 11 is used for storing one or more programs, the program may include program codes, the program codes include computer operation instructions, in this embodiment, the memory 11 stores at least the program for implementing the following functions:
setting the distribution proportion of a sending channel and a receiving channel in a shared cache of a data transceiving cache as a default distribution proportion;
when data transceiving operation is executed, judging whether the difference value between the data volume of the sending channel and the data volume of the receiving channel is larger than a threshold value or not;
if yes, adjusting the distribution proportion of a sending channel and a receiving channel in the shared cache;
and executing data transceiving operation based on the adjusted shared cache.
In one possible implementation, the memory 11 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created during use.
Further, the memory 11 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device or other volatile solid state storage device.
The communication interface 12 may be an interface of a communication module for connecting with other devices or systems.
Of course, it should be noted that the structure shown in fig. 6 does not constitute a limitation to the terminal device in the embodiment of the present application, and in practical applications, the terminal device may include more or less components than those shown in fig. 6, or some components may be combined.
The present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of the data transmission method of any one of the baseboard management controllers can be implemented.
The computer-readable storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
For the introduction of the computer-readable storage medium provided in the present application, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The foregoing details a data transmission method, a data transmission apparatus, a terminal device, and a computer-readable storage medium of a baseboard management controller provided by the present application. The principles and embodiments of the present application are described herein using specific examples, which are only used to help understand the method and its core idea of the present application. It should be noted that, for those skilled in the art, without departing from the principle of the present application, the present application can also make several improvements and modifications, and those improvements and modifications also fall into the protection scope of the claims of the present application.

Claims (10)

1. A data transmission method of a baseboard management controller is characterized by comprising the following steps:
setting the distribution proportion of a sending channel and a receiving channel in a shared cache of a data transceiving cache as a default distribution proportion;
when data transceiving operation is executed, judging whether a difference value between the data volume of the sending channel and the data volume of the receiving channel is larger than a threshold value;
if yes, adjusting the distribution proportion of a sending channel and a receiving channel in the shared cache;
and executing data transceiving operation based on the adjusted shared cache.
2. The data transmission method according to claim 1, wherein determining whether a difference between the data amount of the transmission channel and the data amount of the reception channel is greater than a threshold when performing a data transceiving operation comprises:
when data transceiving operation is executed, command quantity detection is carried out on the sending channel and the receiving channel to obtain the command quantity of the sending channel and the command quantity of the receiving channel;
and judging whether the difference value between the data quantity of the sending channel and the data quantity of the receiving channel is larger than a threshold value or not based on the command quantity of the sending channel and the command quantity of the receiving channel.
3. The data transmission method according to claim 1, wherein the data transceiving buffer comprises: a sending private cache, a receiving private cache, and a shared cache.
4. The data transmission method according to claim 1, further comprising:
when transmitting and receiving the short data packet, the data transmitting and receiving operation is carried out based on the shared cache of the default distribution proportion.
5. The data transmission method according to claim 1, wherein adjusting the allocation ratio of the sending channel to the receiving channel in the shared buffer comprises:
and when the data volume of the sending channel is larger than that of the receiving channel, performing increment processing on the proportion number of the sending channel in the allocation proportion.
6. The data transmission method according to claim 1, wherein adjusting the allocation ratio of the sending channel to the receiving channel in the shared buffer comprises:
and when the data volume of the sending channel is smaller than that of the receiving channel, performing increment processing on the proportion number of the receiving channels in the allocation proportion.
7. The data transmission method according to claim 1, further comprising:
and when the data volume of the sending channel and the data volume of the receiving channel are both smaller than preset values, adjusting the allocation proportion of the sending channel and the receiving channel in the shared cache to a default allocation proportion.
8. A data transmission apparatus of a baseboard management controller, comprising:
the default proportion setting module is used for setting the distribution proportion of a sending channel and a receiving channel in the shared cache of the data transceiving cache as the default distribution proportion;
the data volume judging module is used for judging whether the difference value between the data volume of the sending channel and the data volume of the receiving channel is larger than a threshold value or not when data transceiving operation is executed;
the distribution proportion adjusting module is used for adjusting the distribution proportion of the sending channel and the receiving channel in the shared cache when the difference value between the data quantity of the sending channel and the data quantity of the receiving channel is larger than a threshold value;
and the data receiving and sending module is used for carrying out data receiving and sending operations based on the adjusted shared cache.
9. A terminal device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the data transmission method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the data transmission method according to one of claims 1 to 7.
CN202211157424.XA 2022-09-22 2022-09-22 Data transmission method of substrate management controller and related device Pending CN115576710A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211157424.XA CN115576710A (en) 2022-09-22 2022-09-22 Data transmission method of substrate management controller and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211157424.XA CN115576710A (en) 2022-09-22 2022-09-22 Data transmission method of substrate management controller and related device

Publications (1)

Publication Number Publication Date
CN115576710A true CN115576710A (en) 2023-01-06

Family

ID=84581724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211157424.XA Pending CN115576710A (en) 2022-09-22 2022-09-22 Data transmission method of substrate management controller and related device

Country Status (1)

Country Link
CN (1) CN115576710A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117336300A (en) * 2023-12-01 2024-01-02 山东街景智能制造科技股份有限公司 Resource management system for state machine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117336300A (en) * 2023-12-01 2024-01-02 山东街景智能制造科技股份有限公司 Resource management system for state machine
CN117336300B (en) * 2023-12-01 2024-01-30 山东街景智能制造科技股份有限公司 Resource management system for state machine

Similar Documents

Publication Publication Date Title
US11570123B2 (en) Generating, at least in part, and/or receiving, at least in part, at least one request
KR100934545B1 (en) Method and apparatus for controlling data rate in wireless communication system
US8214552B2 (en) Transmission apparatus, transmission method, communication apparatus, and program
CN108170370B (en) Data storage device and data transmission rate control method
CN102916903B (en) Cache adjusting method and device
CN108170369B (en) Host device and data transmission rate control method
US8566495B2 (en) Systems, methods and apparatus for data communication
CN104904169A (en) Adjusting thread priority to improve throughput between peer-to-peer (P2P) devices
CN109392013B (en) Method for adjusting quality of service (QoS) and communication device
US20180132110A1 (en) Wireless resource allocation device, wireless resource allocation method, and recording medium storing wireless resource allocation program
US11695629B2 (en) Method and apparatus for configuring a network parameter
CN107800574B (en) Storage QOS adjusting method, system, equipment and computer readable memory
CN107395521B (en) Big data information processing method and system based on Internet of things
CN113645150B (en) Transmission rate control method, apparatus, electronic device, and readable storage medium
CN115576710A (en) Data transmission method of substrate management controller and related device
US20050125563A1 (en) Load balancing device communications
CN109756464B (en) Communication method, server and client
US20130275789A1 (en) Credit based power management
US8904059B2 (en) Method for controlling a data transfer on a serial transmission data transfer bus
CN109525446B (en) Processing method and electronic equipment
JP7004815B2 (en) Air conditioners, communication systems, and control methods
CN113805802A (en) Method, server and storage medium for accessing current limit
US9542356B2 (en) Determining, at least in part, one or more respective amounts of buffer memory
KR20150022385A (en) Method and Apparatus for Controlling Traffic for Reducing Completion Time of Transmitting Data
KR20070078656A (en) Control method for transmission in hand-held terminal and apparatus thereof

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