Method and apparatus for transmitting information

US10133688B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10133688-B2
Application numberUS-201715409930-A
CountryUS
Kind codeB2
Filing dateJan 19, 2017
Priority dateSep 7, 2016
Publication dateNov 20, 2018
Grant dateNov 20, 2018

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

The present application discloses a method and an apparatus for transmitting information. A specific implementation of the method includes: sending first information to be transmitted to a shared memory; traversing memory groups in the shared memory, and acquiring a first memory unit suitable for the amount of the first information, each of the memory groups including at least one memory unit, each of memory units in the memory group having an identical size, and the memory units in different memory groups having different sizes; and storing the first information into the acquired first memory unit, so that the first information is read from the first memory unit by a receiving node. Through this implementation, the first information that needs to be transmitted is stored into the memory unit suitable for the amount of the first information, thereby saving memory resources.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for transmitting information, comprising: requesting a shared memory from an operating system; dividing the shared memory into memory groups and a reserved memory; sending first information to be transmitted to the shared memory; traversing the memory groups in the shared memory, and acquiring a first memory unit suitable for an amount of the first information, the memory groups comprising a static memory group and a dynamic memory group, each of the memory groups comprising at least one memory unit, each of the memory units in the memory group having an identical size, and the memory units in different memory groups having different sizes; and storing the first information into the acquired first memory unit, so that the first information is read from the first memory unit by a receiving node, wherein the traversing memory groups in the shared memory, and acquiring a first memory unit suitable for the amount of the first information comprises: traversing the memory groups in the shared memory, and determining whether there is a memory unit having the size larger than the amount of the first information in each of the memory groups; and if yes, acquiring, from the memory units having the sizes larger than the amount of the first information, a memory unit having a smallest size difference with the amount of the first information as the first memory unit; and if no, reallocating a first memory unit suitable for the amount of the first information according to the reserved memory and an idle state of the memory unit in the dynamic memory group. 2. The method according to claim 1 , wherein: the sizes of the memory units being greater than a preset threshold. 3. The method according to claim 2 , wherein the dynamic memory group comprising a single memory unit; and the size of the memory unit in the dynamic memory group is greater than the size of each of the memory units in the static memory group. 4. The method according to claim 2 , wherein the dividing the shared memory into a plurality of memory groups and a reserved memory comprises: dividing the shared memory into the memory groups and the reserved memory according to the amount of information received by the shared memory for the first time, the size of each memory unit in the memory groups being greater than the amount of the information received by the shared memory for the first time. 5. The method according to claim 1 , wherein the reallocating a first memory unit suitable for the amount of the first information according to the reserved memory and an idle state of the memory unit in the dynamic memory group comprises: determining whether the memory unit in the dynamic memory group is idle; and if yes, acquiring the memory unit in the dynamic memory group, recombining the memory unit and the reserved memory, and allocating the first memory unit suitable for the amount of the first information; and if no, deleting the memory unit in the dynamic memory group, and allocating, from the reserved memory, the first memory unit suitable for the amount of the first information. 6. A system for transmitting information, comprising: at least one processor; and a memory storing instructions, which when executed by the at least one processor, cause the at least one processor to perform operations, the operations comprising: requesting a shared memory from an operating system; dividing the shared memory into memory groups and a reserved memory; sending first information to be transmitted to the shared memory; traversing the memory groups in the shared memory, and acquiring a first memory unit suitable for an amount of the first information, the memory groups comprising a static memory group and a dynamic memory group, each of the memory groups comprising at least one memory unit, each of the memory units in the memory group having an identical size, and the memory units in different memory groups having different sizes; and storing the first information into the acquired first memory unit, so that the first information is read from the first memory unit by a receiving node, wherein the traversing memory groups in the shared memory, and acquiring a first memory unit suitable for the amount of the first information comprises: traversing the memory groups in the shared memory, and determining whether there is a memory unit having the size larger than the amount of the first information in each of the memory groups; and if yes, acquiring, from the memory units having the sizes larger than the amount of the first information, a memory unit having a smallest size difference with the amount of the first information as the first memory unit; and if no, reallocating a first memory unit suitable for the amount of the first information according to the reserved memory and an idle state of the memory unit in the dynamic memory group. 7. The system according to claim 6 , wherein the sizes of the memory units being greater than a preset threshold. 8. The system according to claim 7 , wherein the dynamic memory group comprising a single memory unit; and the size of the memory unit in the dynamic memory group is greater than the size of each of the memory units in the static memory group. 9. The system according to claim 7 , wherein the dividing the shared memory into a plurality of memory groups and a reserved memory comprises: dividing the shared memory into the memory groups and the reserved memory according to the amount of information received by the shared memory for the first time, the size of each memory unit in the memory groups being greater than the amount of the information received by the shared memory for the first time. 10. The system according to claim 6 , wherein the reallocating a first memory unit suitable for the amount of the first information according to the reserved memory and an idle state of the memory unit in the dynamic memory group comprises: determining whether the memory unit in the dynamic memory group is idle; and if yes, acquiring the memory unit in the dynamic memory group, recombining the memory unit and the reserved memory, and allocating the first memory unit suitable for the amount of the first information; and if no, deleting the memory unit in the dynamic memory group, and allocating, from the reserved memory, the first memory unit suitable for the amount of the first information. 11. A non-transitory computer storage medium storing a computer program, which when executed by one or more computers, cause the one or more computers to perform operations, the operations comprising: requesting a shared memory from an operating system; dividing the shared memory into memory groups and a reserved memory; sending first information to be transmitted to the shared memory; traversing the memory groups in the shared memory, and acquiring a first memory unit suitable for an amount of the first information, the memory groups comprise a static memory group and a dynamic memory group, each of the memory groups comprising at least one memory unit, each of the memory units in the memory group having an identical size, and the memory units in different memory groups having different sizes; and storing the first information into the acquired first memory unit, so that the first information is read from the first memory unit by a receiving node; wherein the traversing memory groups in the shared memory, and acquiring a first memory unit suitable for the amount of the first information comprises: traversing the memory groups in the shared memory, and determining whether there is a memory unit having the size larger than the amount of the first information in each of the

Assignees

Inventors

Classifications

  • Decentralised address translation, e.g. in distributed shared memory systems · CPC title

  • Access to shared memory · CPC title

  • Free address space management · CPC title

  • Space efficiency improvement · CPC title

  • G06F9/544Primary

    Buffers; Shared memory; Pipes · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US10133688B2 cover?
The present application discloses a method and an apparatus for transmitting information. A specific implementation of the method includes: sending first information to be transmitted to a shared memory; traversing memory groups in the shared memory, and acquiring a first memory unit suitable for the amount of the first information, each of the memory groups including at least one memory unit, …
Who is the assignee on this patent?
Beijing Baidu Netcom Sci & Tec
What technology area does this patent fall under?
Primary CPC classification G06F13/1663. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Nov 20 2018 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).