CN100555245C - Resource storage method and device - Google Patents

Resource storage method and device Download PDF

Info

Publication number
CN100555245C
CN100555245C CNB2007100007369A CN200710000736A CN100555245C CN 100555245 C CN100555245 C CN 100555245C CN B2007100007369 A CNB2007100007369 A CN B2007100007369A CN 200710000736 A CN200710000736 A CN 200710000736A CN 100555245 C CN100555245 C CN 100555245C
Authority
CN
China
Prior art keywords
resource
index
pool
district
resource pool
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.)
Active
Application number
CNB2007100007369A
Other languages
Chinese (zh)
Other versions
CN101221533A (en
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2007100007369A priority Critical patent/CN100555245C/en
Publication of CN101221533A publication Critical patent/CN101221533A/en
Application granted granted Critical
Publication of CN100555245C publication Critical patent/CN100555245C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a kind of resource storage method and device that is used for the resource storage administration of communication software, wherein, this method may further comprise the steps: step S202 is respectively every kind of resource and sets up corresponding resource pool; Step S204, for each resource in the resource pool is set up index, wherein, index is corresponding with the position of resource in resource pool; And step S206, be each resources allocation property store district and the index stores district in the resource pool.Therefore, use the present invention, saved a large amount of storage spaces, thereby saved the cost of communication facilities.

Description

Resource storage method and device
Technical field
The present invention relates to the communications field, more specifically, the present invention relates to a kind of resource storage method and device that is used for the resource storage administration of communication software.
Background technology
In the communications field, all kinds of logical resources and physical entity resource that mobile communication equipment software will be managed all kinds of channel resources and finish channel function.There is the relation of various subordinate associations again in these resources.
For the storage mode of resource, the prior art scheme is generally: the parent resource comprises sub level and all resources of subordinate thereof, layer by layer intussusception and comprise the property value of resource.Can waste a lot of storage spaces like this, especially for digital signal processor (Digital SignalProcessing is called for short DSP) software application, because internal memory costliness in the sheet, to such an extent as to application cost is very high.
Therefore, need a kind of resource storage method and device that is used for the resource storage administration of communication software, to address the above problem.
Summary of the invention
In order to address the above problem, the present invention proposes a kind of resource storage method and device that is used for the resource storage administration of communication software, for resources at different levels are opened up storage space by its actual total amount respectively, each resource is only stored the index of its attribute information and direct subordinate resource, reduce the resource storage overhead, solved the problem of resource waste of storage space.
One aspect of the present invention provides a kind of resource storage method, is used for the resource storage administration of communication software, and this method may further comprise the steps: step S202 is respectively every kind of resource and sets up corresponding resource pool; Step S204, for each resource in every kind of resource pool is set up index, wherein, index is corresponding with the position of each resource in resource pool; And step S206, be the two kinds of memory blocks of each resources allocation in the resource pool, in two kinds of memory blocks, a kind of is the property store district that is used to store the attribute information of each resource, and another kind is the index stores district of index that is used to store the direct subordinate resource of each resource.
In addition, according to an aspect of the present invention, further comprising the steps of: when distributing a series of resource, the attribute information of each resource is inserted in the property store district of this resource in the corresponding resource pool step by step, and the index of the direct subordinate resource of each resource is inserted in the index stores district of this resource; And when discharging a series of resource, discharge a series of resources step by step according to the information in the index stores district of each resource in the resource pool.
According to embodiments of the invention, index comprises following any: array index, pointer and chained list are first-class; The resource quantity of resource pool is the total amount of every kind of resource.
Another aspect of the present invention also provides a kind of resource memory storage, is used for the resource storage administration of communication software, and it comprises: resource pool is set up the unit, is used to be respectively every kind of resource and sets up corresponding resource pool; The unit set up in index, is used to each resource in the resource pool to set up index, and wherein, index is corresponding with the position of each resource in resource pool; And distribution unit, memory block, be used to the two kinds of memory blocks of each resources allocation in the resource pool.
In two kinds of memory blocks, a kind of property store district that is used to store each Resource Properties information, another kind is used to store the index stores district of the direct subordinate resource index of each resource.
According to a further aspect in the invention, also comprise: insert the unit, be used for when distributing a series of resource, step by step the attribute information of each resource being inserted in the property store district in the corresponding resource pool, and the index of the direct subordinate resource of each resource is inserted in the index stores district; And releasing unit, be used for when discharging a series of resource, discharging a series of resources step by step according to the information in the index stores district of each resource in the resource pool.
According to a further aspect in the invention, index comprises following any: array index, pointer and chained list are first-class; The resource quantity of resource pool is the total amount of every kind of resource.
As mentioned above, adopt resource storage method of the present invention and device can save a large amount of storage spaces, and then save the cost of communication facilities.
Other features and advantages of the present invention will be set forth in the following description, and, partly from instructions, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the instructions of being write, claims and accompanying drawing.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of instructions, is used from explanation the present invention with embodiments of the invention one, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the structural representation of resource storage in the prior art;
Fig. 2 is the process flow diagram according to resource storage method of the present invention;
Fig. 3 is the synoptic diagram of base station dedicated uplink resource organizations structure in the prior art;
Fig. 4 is a resource storage structure synoptic diagram according to an embodiment of the invention;
Fig. 5 is the related synoptic diagram of resource pool and resource according to an embodiment of the invention; And
Fig. 6 is the block diagram according to resource memory storage of the present invention.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in qualification the present invention.
Fig. 2 is the process flow diagram according to resource storage method of the present invention.As shown in Figure 2, this resource storage method may further comprise the steps:
Step S202 is respectively every kind of resource and sets up corresponding resource pool;
Step S204, for each resource in the resource pool is set up index, wherein, index is corresponding with the position of resource in resource pool; And
Step S206 is the two kinds of memory blocks of each resources allocation in the resource pool.
In addition, the present invention is further comprising the steps of: when distributing a series of resource, step by step the attribute information of each resource is inserted in the property store district in the corresponding resource pool, and the index of the direct subordinate resource of each resource is inserted in the index stores district; And when discharging a series of resource, discharge a series of resources step by step according to the information in the index stores district in the resource pool.
It is pointed out that in two kinds of memory blocks a kind of is the property store district that is used to store the attribute information of each resource, another kind is the index stores district of index that is used to store the direct subordinate resource of each resource.
To be example below, be described in further detail in conjunction with the enforcement of Fig. 1-5 pair technical scheme with the management of the up private resource of Wideband Code Division Multiple Access (WCDMA) (WCDMA) system node B (NodeB) device software.
In the present embodiment, the up private resource institutional framework of WCDMA NodeB as shown in Figure 3, it is an agent structure, does not comprise all resources.According to system requirements, a sub-district has 80 UE at most in the NodeB, and each UE has 3 wireless links (RL) at most, and each RL has 33 multipaths (PM) at most.And the restriction of system resource total amount is: a sub-district has 80 RL at most, and a sub-district has 300 PM at most.PHUE etc. no longer quotes the resource back among the figure, therefore no longer is described (filling part).
From Fig. 3, the subordinate relation between each resource as can be seen during each resource information memory allocated, must be preserved such relation so in some way.
Fig. 1 is the structural representation of resource storage in the prior art, as shown in Figure 1, has stored cell information in the sub-district, and the information of all UE under the sub-district, and the information of all RL under the UE, and the information of all PM under the RL.Just, the parent resource comprises all information of sub level and all resources of subordinate thereof, layer by layer intussusception and comprise the attribute information of resources at different levels.Can waste a lot of storage spaces like this.Such as, PM has 10 property values, and the PM property value sum of storing in the sub-district so mostly is most 1 (CELL) * 80 (UE/CELL) * 3 (RL/UE) * 33 (PM/RL) * 10=79200, and wherein 80 (UE/CELL) represent that each CELL has 80 UE at most.Equally, the property value of RL also can take more storage space.
Fig. 4 is a resource storage structure synoptic diagram according to an embodiment of the invention.As shown in Figure 4, store cell information in the sub-district, and the index (numbered here) of all UE under the sub-district.The label of RL under storage UE information and the UE in the UE.The label of PM under storage RL information and the RL in the RL.Just store PM information in the PM.Various resources are stored in resource pool mode independently, and various resource pools are opened up storage space by the total amount of various resources.Like this, be example with the attribute of PM, a PM has 10 property values, and 300 PM are arranged at most in the sub-district so, and the PM property value sum of storing in the sub-district mostly is 300 * 10=3000 most.
The storage mode of comparison diagram 1, clearly embodiment as shown in Figure 4 can be saved memory cost greatly.Here the underlying cause is: all subordinate's resources of all UE all consume storage space by maximum quantity among Fig. 1, but the total amount of various resources is limited and all subordinate's resources that can not satisfy each UE all consume by the quantity of maximum support, therefore, come the storage resources attribute information by the actual total amount of various resources among Fig. 4 and on cascade connection, only just can save internal memory to greatest extent with label (index) storage.And, only comprise direct subordinate index in each resource pool of Fig. 4, do not comprise multistage subordinate's information.
Further for example, there are 80 UE a sub-district, and each UE has 3 RL at most, and 80 RL are at most also only supported in a sub-district, show not to be that each UE can both have 3 RL, in like manner neither 33 PM can both be arranged each RL; In fact, many RL are applied to switch, and a plurality of PM is applied to live width search in many days, and generally, a UE just has only a RL and a PM.Obviously, storage space has been wasted in the design of Fig. 1.
Fig. 5 is the related synoptic diagram of resource pool and resource according to an embodiment of the invention.
As shown in Figure 5, do not distribute in initialization under the situation of any resource, the arrow among the figure does not exist, just between resource without any incidence relation.When setting up a RL for UE, will distribute a series of resources, comprise UE, RL, PM or the like, and set up the incidence relation (as shown in Figure 3) between resource, and the concrete annexation of resource in resource pool is just as shown in Figure 5.
Each grade resource comprises the attribute information of resource at the corresponding levels and the index (label) of subordinate's resource, so just coupling together resource one-level one-level.Among Fig. 5, for UE1 distributes two RL, RL2 and RL3 in the corresponding RL resource pool for RL2 distributes a PM, are the PM251 in the PM resource pool, for RL3 distributes a PM, are PM250; For UE2 distributes a RL, in the RL resource pool, be RL1, for RL1 distributes a plurality of PM, in the PM resource pool PM2 and PM4 or the like.After the resources allocation, set up incidence relation between resource pool, just preserved the index (label) of direct subordinate in the index stores district of resource pool, this will be applied to discharge the processing of resource.Such as, when receiving the order that discharges UE1, discharge all resources under the UE1, and release command itself only comprises the label of UE1 and do not comprise the label of child resource under it, this will discharge UE1, RL2, RL3, PM251 and PM250 resource according to the annexation of Fig. 5.
After resource discharged, the arrow among the figure had not just existed, and just the incidence relation between resource pool has been cancelled, and the property store district of each d/d resource and the content in index stores district also are cleared.
Fig. 6 is the block diagram according to resource memory storage 600 of the present invention.As shown in Figure 6, this device 600 is used for the resource storage administration of communication software, and comprising: resource pool is set up unit 602, is used to be respectively every kind of resource and sets up corresponding resource pool; Unit 604 set up in index, is used to each resource in the resource pool to set up index, and wherein, index is corresponding with the position of resource in resource pool; And distribution unit 606, memory block, be used to the two kinds of memory blocks of each resources allocation in the resource pool.
In addition, this device also comprises: insert unit 608, be used for step by step the attribute information of each resource being inserted in the property store district in the corresponding resource pool when distributing a series of resource, and the index of the direct subordinate resource of each resource is inserted in the index stores district; And releasing unit 610, be used for when discharging a series of resource, discharging a series of resources step by step according to the information in the index stores district in the resource pool.
In two kinds of memory blocks, a kind of is the property store district that is used to store the attribute information of each resource, and another kind is the index stores district of index that is used to store the direct subordinate resource of each resource.
Index comprises following any: array index, pointer and chained list are first-class; The space size of every kind of resource pool is the total amount of every kind of resource.
Therefore, the present invention has realized following technique effect: solved the problem of resource waste of storage space in the prior art, make resources at different levels open up storage space by its actual total amount respectively, each resource is only stored the index of its attribute information and direct subordinate resource, thereby has reduced the resource storage overhead.
Be the preferred embodiments of the present invention only below, be not limited to the present invention, for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. a resource storage method is used for the resource storage administration of communication software, it is characterized in that, may further comprise the steps:
Step S202 is respectively every kind of resource and sets up corresponding resource pool;
Step S204, for each resource in the described resource pool is set up index, wherein, described index is corresponding with the position of described each resource in described resource pool; And
Step S206, be the two kinds of memory blocks of described each resources allocation in the described resource pool, in described two kinds of memory blocks, a kind of is the property store district that is used to store the attribute information of described each resource, and another kind is the index stores district of index that is used to store the direct subordinate resource of described each resource.
2. resource storage method according to claim 1 is characterized in that, and is further comprising the steps of:
When distributing a series of resource, step by step the attribute information of described each resource is inserted in the described property store district in the corresponding described resource pool, and the index of the direct subordinate resource of described each resource is inserted in the described index stores district; And
When discharging a series of resource, discharge described a series of resource step by step according to the information in the described index stores district of described each resource.
3. resource storage method according to claim 1 is characterized in that, described index comprises following any: array index, pointer and linked list head.
4. according to each described resource storage method in the claim 1 to 3, it is characterized in that the resource quantity in described every kind of resource pool is the total amount of described every kind of resource.
5. a resource memory storage is used for the resource storage administration of communication software, it is characterized in that, comprising:
Resource pool is set up the unit, is used to be respectively every kind of resource and sets up corresponding resource pool;
The unit set up in index, is used to each resource in the described resource pool to set up index, and wherein, described index is corresponding with the position of described each resource in described resource pool; And
The unit is distributed in the memory block, be used to the two kinds of memory blocks of described each resources allocation in the described resource pool, in described two kinds of memory blocks, a kind of is the property store district that is used to store the attribute information of described each resource, and another kind is the index stores district of index that is used to store the direct subordinate resource of described each resource.
6. resource memory storage according to claim 5 is characterized in that, also comprises:
Insert the unit, be used for when distributing a series of resource, the attribute information of described each resource is inserted in the described property store district of the described resource in the corresponding described resource pool step by step, and the index of the direct subordinate resource of described each resource is inserted in the described index stores district of the described resource in the corresponding described resource pool; And
Releasing unit is used for discharging described a series of resource step by step according to the information in the described index stores district of described each resource when discharging a series of resource.
7. resource memory storage according to claim 5 is characterized in that, described index comprises following any: array index, pointer and linked list head.
8. according to each described resource memory storage in the claim 5 to 7, it is characterized in that the resource quantity in described every kind of resource pool is the total amount of described every kind of resource.
CNB2007100007369A 2007-01-10 2007-01-10 Resource storage method and device Active CN100555245C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100007369A CN100555245C (en) 2007-01-10 2007-01-10 Resource storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007100007369A CN100555245C (en) 2007-01-10 2007-01-10 Resource storage method and device

Publications (2)

Publication Number Publication Date
CN101221533A CN101221533A (en) 2008-07-16
CN100555245C true CN100555245C (en) 2009-10-28

Family

ID=39631386

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100007369A Active CN100555245C (en) 2007-01-10 2007-01-10 Resource storage method and device

Country Status (1)

Country Link
CN (1) CN100555245C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101840433B (en) * 2010-05-07 2014-02-05 中兴通讯股份有限公司 Management method of wireless resource and database device for wireless resource
CN103136293B (en) * 2011-12-02 2016-01-13 福建星网视易信息系统有限公司 The format design of picture resource bag and read method
CN105740061B (en) * 2016-01-29 2019-05-31 腾讯科技(深圳)有限公司 A kind of method, user equipment and system that GPU resource is rebuild
CN108959503B (en) * 2018-06-26 2020-12-04 北京阿尔山金融科技有限公司 Information storage method and device

Also Published As

Publication number Publication date
CN101221533A (en) 2008-07-16

Similar Documents

Publication Publication Date Title
CN100555245C (en) Resource storage method and device
CN102156675B (en) Method and device for allocating memory
WO1996016519A1 (en) Maintaining group data in a mobile communications system
CN100415020C (en) Code resource distribution method of high speed physical downward sharing channel
CN102385554A (en) Method for optimizing duplicated data deletion system
CN101226553A (en) Method and device for storing length-various field of embedded database
CN101489230A (en) Carrier distribution control method and system
CN102984073B (en) Resource management apparatus in a kind of multicast service and method
CN101184042A (en) Resource management method and apparatus
CN110809030B (en) Network flow control method and device, coder-decoder and storage device
CN100366110C (en) Method for distributing baseband channel processing resource in mobile communication system base station
CN101415179A (en) Method, apparatus and system for automatically switching business
CN101202602A (en) Method for dynamic state collocating Abis time slot resource
CN102143550A (en) System and method for determining that a maximum number of IP sessions have been established
CN102143440A (en) Method and device for processing short message service
CN103885888B (en) Memory management method, system and device for embedded real-time system based on TLSF
CN102547761A (en) Capacity allocation method of wireless network and capacity allocation device thereof
CN105813139A (en) Dynamic management system and dynamic management method for data caching area of uplinking multiple data bearers in LTE system
CN105592537A (en) 5G relay network energy saving method and system
CN110309137A (en) A kind of data managing method and device
CN1925641A (en) Method for ascertaining removed channel in CDMA colony communication system
CN102223684A (en) Time slot resource distribution method and device
CN1260903C (en) Group member resources management method of CDMA standard trunked communication system
CN101232689B (en) Device and method for managing account note of resource
CN102625255A (en) Cluster communication system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant