Memory usage techniques in middleware of a real-time data distribution system
First Claim
1. A method comprising:
- operating real-time middleware associated with at least one node of a data distribution system to communicate data samples with middleware on the same or on other nodes, where each node is a separate computer, the middleware of the nodes operating using a publish-subscribe communication model to provide a publish-subscribe interface for distributing data samples among a plurality of user applications, each user application executing in a separate address space on the same or on other nodes, but having access to a global data space to publish and subscribe the data samples, wherein the data samples in the global data space are accessible to each user application via the middleware of the node,the method further comprising, by the real-time middleware associated with one of the at least one node of the data distribution system;
allocating, to the middleware associated with that one node, at least one pool of a plurality of fixed block size units of memory of the node;
based on loan requests for dynamic memory elements on behalf of a user application executing on that one node for storing published or subscribed data samples, providing an indication to the user application of at least one of the allocated fixed block size units to be lent on behalf of the user application; and
maintaining a list of which allocated fixed block size units are being lent from the pool on behalf of the user application on that one node, including maintaining the list based on return requests relative to fixed block size units of the at least one pool for stored published or subscribed data samples for which a borrowing application is finished using the lent fixed block size units of the at least one pool;
whereinthe allocating step is executed previous to the loan requests; and
substantially all of the dynamic memory elements of the real-time middleware associated with that one node are provided from the at least one pool of allocated fixed block size units based on the loan requests from the user application on that one node for storing published or subscribed data samples.
1 Assignment
0 Petitions
Accused Products
Abstract
A method of operating real-time middleware associated with at least one node of a data distribution system is provided. At least one pool of a plurality of fixed block size units of memory of the node is allocated (e.g., via an operating system call). Based on loan requests for dynamic memory elements on behalf of a user application executing on the node, an indication of at least one of the allocated fixed block size units to be lent is provided. A list of which allocated fixed block size units are being lent from the pool is maintained, including maintaining the list based on return requests, on behalf of the user application executing on the node, of fixed block size units of the pool. Substantially all of the dynamic memory elements of the real-time middleware associated with the node are provided from the at least one pool of allocated fixed block size units based on the loan requests on behalf of the user application.
80 Citations
36 Claims
-
1. A method comprising:
-
operating real-time middleware associated with at least one node of a data distribution system to communicate data samples with middleware on the same or on other nodes, where each node is a separate computer, the middleware of the nodes operating using a publish-subscribe communication model to provide a publish-subscribe interface for distributing data samples among a plurality of user applications, each user application executing in a separate address space on the same or on other nodes, but having access to a global data space to publish and subscribe the data samples, wherein the data samples in the global data space are accessible to each user application via the middleware of the node, the method further comprising, by the real-time middleware associated with one of the at least one node of the data distribution system; allocating, to the middleware associated with that one node, at least one pool of a plurality of fixed block size units of memory of the node; based on loan requests for dynamic memory elements on behalf of a user application executing on that one node for storing published or subscribed data samples, providing an indication to the user application of at least one of the allocated fixed block size units to be lent on behalf of the user application; and maintaining a list of which allocated fixed block size units are being lent from the pool on behalf of the user application on that one node, including maintaining the list based on return requests relative to fixed block size units of the at least one pool for stored published or subscribed data samples for which a borrowing application is finished using the lent fixed block size units of the at least one pool; wherein the allocating step is executed previous to the loan requests; and substantially all of the dynamic memory elements of the real-time middleware associated with that one node are provided from the at least one pool of allocated fixed block size units based on the loan requests from the user application on that one node for storing published or subscribed data samples. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. A method, comprising:
-
communicating data samples by real-time middleware associated with at least one node of a data distribution system to communicate the data samples with middleware on the same or other nodes, where each node is a separate computer, the middleware of the nodes operating using publish-subscribe communication model to provide a publish-subscribe interface for the data samples among a plurality of user applications, each user application executing in a separate address space on the same or on other nodes, but having access to a global data space to publish and subscribe the data samples, wherein the data samples in the global data space are accessible to each user application via the middleware of the computer, the method further comprising, by the real-time middleware associated with one of the at least one node of the data distribution system; storing the data samples in memory of that one node in fixed block size units; maintaining a data sample list, of every data sample for that one node, in memory of that one node in fixed block size units, each entry in the list corresponding to a separate one of the data samples; and maintaining an index data structure including a plurality of instance lists, in memory of that one node in fixed block size units, each instance list corresponding to a separate data-object instance within that one node and each entry of each instance list corresponding to a data sample for the data-object instance to which that instance list corresponds; wherein the memory of fixed block size units is borrowed and returned, as appropriate, to at least one memory buffer pool associated with that one node. - View Dependent Claims (15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33)
-
-
34. A method of generating real-time middleware code to be associated with at least one node of a data distribution system, the method comprising:
-
generating code to operate the real-time middleware associated with the at least one node of the data distribution system to communicate data samples with middleware on the same node or on other nodes, where each node is a separate computer, the middleware of the nodes operating using publish-subscribe communication model to provide a publish-subscribe interface for the data samples among a plurality of user applications, each user application executing in a separate address space on the same or on other nodes, but having access to a global data space to publish and subscribe the data samples, wherein the data samples in the global data space are accessible to each user application via the middleware of the computer, generating code to cause the real-time middle ware associated with a first node to allocate at least one pool of a plurality of fixed block size units of memory of the node; generating code to cause the first node to, based on loan requests for dynamic memory elements on behalf of a user application executing on the first node for storing published or subscribed data samples, providing an indication to the user application of at least one of the allocated fixed block size units to be lent on behalf of the user application; and generating code to cause the first node to maintain a list of which allocated fixed block size units are being lent from the at least one pool on behalf of the user application on the first node, including maintaining the list based on return requests relative to fixed block size units of the pool for stored published or subscribed data samples for which a borrowing application is finished using the lent fixed block size units of the at least one pool; wherein the code causes the first node to allocate the at least one pool of a plurality of fixed block size units of memory of the node previous to the loan requests; and substantially all of the dynamic memory elements of the real-time middleware associated with the first node are caused to be provided from the at least one pool of allocated fixed block size units based on the loan requests from the user application on the first node for storing published or subscribed data samples;
wherein the code is not specific to a particular memory management scheme and the method further comprises causing the code to be executed on a second node without modifying the code.
-
-
35. A non-transitory computer readable medium having a computer program tangibly embodied thereon, the computer program configured to cause a computing system to execute a method, comprising:
-
operating real-time middleware associated with at least one node of a data distribution system to communicate data samples with middleware of the same node or other nodes, where each node is a separate computer, the middleware of the nodes operating using publish-subscribe communication model to provide a publish-subscribe interface for the data samples among a plurality of user applications, each user application executing in a separate address space on the same node or in other nodes, but having access to a global data space to publish and subscribe the data samples, wherein the data samples in the global data space are accessible to each user application via the middleware of the computer, the method further comprising, by the real-time middleware associated with one of the at least one node of the data distribution system; allocating, to the middleware associated with that one node, at least one pool of a plurality of fixed block size units of memory of the node; based on loan requests loan requests for dynamic memory elements on behalf of a user application executing on the that one node for storing published or subscribed data samples, providing an indication to the user application of at least one of the allocated fixed block size units to be lent on behalf of the user application; and maintaining a list of which allocated fixed block size units are being lent from the at least one pool on behalf of the user application on that one node, including maintaining the list based on return requests relative to fixed block size units of the pool for stored published or subscribed data samples for which a borrowing application is finished using the lent fixed block size units of the at least one pool; wherein the allocating step is executed previous to the loan requests; and
substantially all of the dynamic memory elements of the real-time middleware associated with that one node are provided from the at least one pool of allocated fixed block size units based on the loan requests from the user application on that one node for storing published or subscribed data samples.
-
-
36. A tangible computer-readable medium having a computer program tangibly embodied thereon, the computer program configured to cause a computing system to execute a method comprising:
-
communicating data samples by real-time middleware associated with at least one node of a data distribution system to communicate the data samples with middleware of other nodes, where each node is a separate computer, the middleware of the nodes operating using publish-subscribe communication model to provide a publish-subscribe interface for the data samples among a plurality of user applications, each user application executing in a separate address space on the same or on other nodes, but having access to a global data space to publish and subscribe the data samples, wherein the data samples in the global data space are accessible to each user application via the middleware of the computer, the method further comprising, by the real-time middleware associated with one of the at least one node of the data distribution system; storing the data samples in memory of that one node in fixed block size units; maintaining a data sample list, of every data sample for that one node, in memory of that one node in fixed block size units, each entry in the list corresponding to a separate one of the data samples; and maintaining an index data structure including a plurality of instance lists, in memory of that one node in fixed block size units, each instance list corresponding to a separate data-object instance within that one node and each entry of each instance list corresponding to a data sample for the data-object instance to which that instance list corresponds; wherein the memory of fixed block size units is borrowed and returned, as appropriate, to at least one memory buffer pool associated with that one node.
-
Specification