Method of and a system for providing buffer management mechanism
First Claim
1. A method for managing buffers configured in a streaming server in an on-Demand environment, wherein a plurality of buffers are allocated in a memory pool of the streaming server to store sections of on-Demand files, the method comprising:
- setting a state of a buffer to be ACTIVE when a file section stored in the buffer is requested by any users;
setting the state of the buffer to be INACTIVE when users no longer request the file section stored in the buffer, the buffer in INACTIVE state having a lifetime, the lifetime of the buffer being determined when the state of the buffer is changed from ACTIVE to INACTIVE, the lifetime of the buffer being calculated based on at least a total number of users requesting the file section when the buffer is in the state of ACTIVE and an influence coefficient comprising a number of sections following the file section;
changing the state of the buffer from INACTIVE to FREE when the lifetime decreases to zero, andwherein the lifetime of the buffer storing the file section of the on-Demand file is determined as follows;
tl=tc+PeakUser*influence coefficient*ts wherein t1 represents the lifetime of the buffer, tc represents a current lifetime of the buffer, PeakUser is the total number of users requesting the file section when the buffer is in the state of ACTIVE and ts is an interval to decrease tl.
6 Assignments
0 Petitions
Accused Products
Abstract
The present invention provides a method of and a system for providing buffer management mechanism in an on-Demand environment to keep the popular content sections in server memory so as to reduce the repeatable disk I/O and improve the server performance. The method comprises: setting the state of a buffer to be ACTIVE when a file section stored in the buffer is requested by any users; setting the state of the buffer to be INACTIVE when users no longer request the file section stored in the buffer, the buffer in INACTIVE state having a lifetime; changing the state of the buffer from INACTIVE to FREE when the lifetime decreases to zero. The system comprises at least one detector for detecting the number of the users requesting a file section stored in the buffer and providing the detection results for a processor, one processor for determining the state of the buffer according to the detection results and providing instructions for at least one state setting unit, and at least one state setting unit for setting the state of the buffer based on instructions from the processor.
8 Citations
21 Claims
-
1. A method for managing buffers configured in a streaming server in an on-Demand environment, wherein a plurality of buffers are allocated in a memory pool of the streaming server to store sections of on-Demand files, the method comprising:
-
setting a state of a buffer to be ACTIVE when a file section stored in the buffer is requested by any users; setting the state of the buffer to be INACTIVE when users no longer request the file section stored in the buffer, the buffer in INACTIVE state having a lifetime, the lifetime of the buffer being determined when the state of the buffer is changed from ACTIVE to INACTIVE, the lifetime of the buffer being calculated based on at least a total number of users requesting the file section when the buffer is in the state of ACTIVE and an influence coefficient comprising a number of sections following the file section; changing the state of the buffer from INACTIVE to FREE when the lifetime decreases to zero, and wherein the lifetime of the buffer storing the file section of the on-Demand file is determined as follows;
tl=tc+PeakUser*influence coefficient*tswherein t1 represents the lifetime of the buffer, tc represents a current lifetime of the buffer, PeakUser is the total number of users requesting the file section when the buffer is in the state of ACTIVE and ts is an interval to decrease tl. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
wherein tln represents the lifetime of the referred buffer, tcn represents the current lifetime of the referred buffer, n is the distance between the file section and the referred file section, wherein 0<
n<
influence coefficient−
1.
-
-
8. The method as defined in claim 7, wherein the lifetime tln of the referred buffer is added to the current lifetime tcn when the state of the referred buffer is changed from ACTIVE to INACTIVE.
-
9. The method as defined in claim 1, wherein the value of PeakUser is set to be zero when the state of the buffer is changed from ACTIVE to INACTIVE.
-
10. The method as defined in claim 1, wherein the lifetime of the buffer is assigned to tc when the state of the buffer is changed from INACTIVE to ACTIVE.
-
11. A non-transitory computer-readable medium including logic for managing buffers configured in a streaming server in an on-Demand environment, wherein a plurality of buffers are allocated in a memory pool of the streaming server to store sections of on-Demand files, the logic configured to be executed by a computer to:
-
set the state of a buffer to be ACTIVE when a file section stored in the buffer is requested by any users; set the state of the buffer to be INACTIVE when users no longer request the file section stored in the buffer, the buffer in INACTIVE state being configured with a lifetime, the lifetime of the buffer being determined when the state of the buffer is changed from ACTIVE TO INACTIVE, the lifetime of the buffer being calculated based on at least a total number of users requesting the file section when the buffer is in the state of ACTIVE and an influence coefficient comprising a number of sections following the file section; change the state of the buffer from INACTIVE to FREE when the lifetime decreases to zero, and wherein the lifetime of the buffer storing the file section of the on-Demand file is determined as follows;
tl=tc+PeakUser*influence coefficient*tswherein t1 represents the lifetime of the buffer, tc represents a current lifetime of the buffer, PeakUser is the total number of users requesting the file section when the buffer is in the state of ACTIVE and ts is an interval to decrease tl. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20, 21)
wherein tln represents the lifetime of the referred buffer, tcn represents the current lifetime of the referred buffer, n is the distance between the file section and the referred file section, wherein 0<
n<
influence coefficient−
1.
-
-
19. The system as defined in claim 18, wherein the current lifetime tc0 is zero when the state setting unit changes the state of the buffer from ACTIVE to INACTIVE for the first time.
-
20. The system as defined in claim 11, wherein the value of PeakUser decreases to zero when the state setting unit changes the state of the buffer from ACTIVE to INACTIVE.
-
21. The system as defined in claim 11, wherein the processor assigns the lifetime of the buffer to tc when the state setting unit changes the state of the buffer from INACTIVE to ACTIVE.
Specification