发明名称 |
Using a plurality of sub-buffers and a free segment list to allocate segments to a plurality of threads to use for writing data |
摘要 |
Provided are a computer program product, system, and method for using a plurality of sub-buffers and a free segment list to allocate segments to a plurality of threads to use for writing data. Groups of threads are assigned to sub-buffers. At least one segment of data is indicated in each of the sub-buffers. The threads assigned to one of the sub-buffers write to the at least one segment indicated in the sub-buffer to which the threads are assigned. A free segment list indicates segments which are not indicated in one of the sub-buffers. In response to one of the segments in a containing sub-buffer comprising one of the sub-buffers becoming a full segment having less than a threshold amount of free space, the indication of the full segment in the containing sub-buffer is replaced with one of the segments indicated in the free segment list. |
申请公布号 |
US9442674(B1) |
申请公布日期 |
2016.09.13 |
申请号 |
US201514947734 |
申请日期 |
2015.11.20 |
申请人 |
INTERNATIONAL BUSINESS MACHINES CORPORATION |
发明人 |
Andre Herve G. P.;Ruiz Juan J.;Nguyen Trung N. |
分类号 |
G06F9/04;G06F3/06;G06F13/10 |
主分类号 |
G06F9/04 |
代理机构 |
Konrad Raynes Davda & Victor LLP |
代理人 |
Victor David W.;Konrad Raynes Davda & Victor LLP |
主权项 |
1. A computer program product for managing data written by multiple threads executed by at least one processing unit, the computer program product comprising a computer readable storage medium having computer readable program code embodied therein that when executed performs operations, the operations comprising:
indicating groups of threads assigned to sub-buffers; indicating at least one segment of data in each of the sub-buffers, wherein the threads assigned to one of the sub-buffers write to the at least one segment of data indicated in the sub-buffer to which the threads are assigned; indicating segments in a free segment list which are not indicated in one of the sub-buffers; and in response to one of the segments in a containing sub-buffer comprising one of the sub-buffers becoming a full segment having less than a threshold amount of free space, replacing the indication of the full segment in the containing sub-buffer with one of the segments indicated in the free segment list. |
地址 |
Armonk NY US |