Claims
- 1. A method of managing compressed data, comprising:
a cache segment generating step of generating a cache segment representing data that is obtained by assembling plural pieces of data requested of writing; a compressed segment generating step of generating a compressed segment representing the data that is obtained by compressing the cache segment generated in said cache segment generating step; a compressed segment allocating step of allocating the compressed segment generated in said compressed segment generating step to a compression sector representing a buffer having a predetermined length; and a compression sector recording step of recording the compression sector, on a disk storage device, to which the compressed segment is allocated in said compressed segment allocating step.
- 2. A method of managing compressed data according to claim 1, wherein the cache segment generated in said cache segment generating step has a data length that is a multiple of a natural number of a logical sector length representing a minimum unit of the data requested of writing.
- 3. A method of managing compressed data according to claim 1, wherein the data requested of writing is stored in a cache memory provided in said disk storage device, and the cache segment is generated from the write data stored in said cache memory in said cache segment generating step.
- 4. A method of managing compressed data according to claim 1, the compressed segments are to be allocated to one compression sector in said compressed segment allocating step according to the order of request from said host.
- 5. A method of managing compressed data according to claim 1, when allocating the plurality of compressed segments, the compressed segments are classified per compression ratio and allocated by combining the compressed segments of each class in said compressed segment allocating step.
- 6. A method of managing compressed data according to claim 1, wherein compressed segments provided with addresses are generated in said compressed segment generating step, and
when allocating the plurality of compressed segments to one compression sector, the compressed segments are allocated by combining the compressed segments having the addresses proximal to each other in said compressed segment allocating step.
- 7. A method of managing compressed data according to claim 1, wherein compressed segments each having an univocal number is generated in said compressed segment generating step, and
when allocating the plurality of compressed segments to the plurality of compression sectors, numbers of the compressed segments to be allocated to the compression sectors are generated from random numbers in said compressed segment allocating step.
- 8. A method of managing compressed data according to claim 1, wherein when allocating the plurality of compressed segments to the plurality of compression sectors, the compressed segments are allocated by ones to one compression sector, and, if allocated to all the compression sectors, the compressed segments are again allocated by ones to one other compression sector in said compressed segment allocating step.
- 9. A method of managing compressed data according to claim 1, wherein when allocating the plurality of compressed segments to the plurality of compression sectors, the compressed segments are allocated to the compression sector from the one having a smaller area allocated with no compressed segment in said compressed segment allocating step.
- 10. A method of managing compressed data according to claim 1, wherein when allocating the plurality of compressed segments to the plurality of compression sectors, the compressed segments are allocated so that an empty capacity after allocating the compressed segments is a predetermined value or under in said compressed segment allocating step.
- 11. A method of managing compressed data according to claim 10, wherein the compressed segments are allocated by making use of a relationship between a data length of the compressed segment and an appearance frequency in said compressed segment allocating step.
- 12. A method of managing compressed data according to claim 1, wherein when allocating the plurality of compressed segments to the plurality of compression sectors, there is selected such a compression sector that an empty capacity after being allocated with the compressed segment becomes a data length of the compressed segment to be allocated thereafter, and the compressed segments are allocated to the thus selected compression sector in said compressed segment allocating step.
- 13. A method of managing compressed data according to claim 1, wherein when recording the plurality of compression sectors, the compression sector allocated with the compressed segments attaining a predetermined compression ratio is preferentially recorded in said compression sector recording step.
- 14. A method of managing compressed data according to claim 1, wherein when recording the plurality of compression sectors, the compression sector having a minimum capacity is preferentially recorded in said compression sector recording step.
- 15. A method of managing compressed data according to claim 1, wherein when recording the plurality of compression sectors, the compression sector having a minimum possibility of being allocated with a new compressed segment is preferentially recorded in said compression sector recording step.
- 16. A method of managing compressed data according to claim 15, wherein whether the possibility of being allocated with the new compressed segment is lowest or not is determined by making use of a relationship between a data length of the compressed segment and an appearance frequency in said compression sector recording step.
- 17. A method of managing compressed data according to claim 1, wherein when recording the plurality of compression sectors, the compression sector having a maximum time elapsed since the compressed segments have been allocate in said compression sector recording step.
- 18. A method of managing compressed data according to claim 1, further comprising: an updating step of reading, when updating a content of the compressed segment included in the compression sector recorded on said disk storage device, the compression sector including the updating target compressed segment from said disk storage device, updating the content of the compressed segment and again recording the compression sector on said disk storage device.
- 19. A method of managing compressed data, comprising:
an allocating step of allocating a compressed segment representing data that is obtained by assembling plural pieces of data requested of writing and thereafter compressing the thus assembled data to a compression sector representing a buffer having a predetermined length; a compression sector recording step of recording the compression sector allocated with the compressed segment in said allocating step on a disk storage device; and a compressed segment reading step of reading, when updating a content of the compressed segment in the compression sector recorded in said compression sector recording step, a compressed segment exclusive of the updating target compressed segment from the compression sector allocated with the updating target compressed segment, wherein the compressed segment read in said compressed segment reading step and the updating target compressed segment are allocated to the compression sector in said allocating step.
- 20. A method of managing compressed data according to claim 19, further comprising: an area changing step of changing an area of said disk storage device on which the compression sector allocated with the updating target compressed segment into an unused area.
- 21. A compressed data managing apparatus, comprising:
means for generating a cache segment representing data that is obtained by assembling plural pieces of data requested of writing; means for generating a compressed segment representing the data that is obtained by compressing the cache segment generated by said means for generating the cache segment; means for allocating the compressed segment to a compression sector representing a buffer having a predetermined length; and means for recording the compression sector, on a disk storage device, to which the compressed segment is allocated by said allocating means.
- 22. A compressed data managing apparatus, comprising:
means for generating a segment representing data that is obtained by assembling plural pieces of data requested of writing; means for generating a compressed segment representing data that is obtained by compressing the segment; means for allocating the compressed segment to a compression sector representing a buffer having a predetermined length; and means for recording the compression sector, on a disk storage device, to which the compressed segment is allocated by said allocating means.
- 23. The compressed data managing apparatus according to claim 22, wherein the segment is a cache segment.
Priority Claims (2)
Number |
Date |
Country |
Kind |
7-4492 |
Jan 1995 |
JP |
|
7-255416 |
Oct 1995 |
JP |
|
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application is a divisional of application Ser. No. 08/573,458, filed Dec. 1, 1995 now pending.
Divisions (1)
|
Number |
Date |
Country |
Parent |
08573458 |
Dec 1995 |
US |
Child |
10294551 |
Nov 2002 |
US |