摘要 |
<p>Method of storing paged data in a storage memory (SM), said paged data being included in first memory pages (MMUi) having a first memory page size (MMUS), said storage memory (SM) including storage memory pages (SMPi) having a second memory page size (SMPS), comprising compressing (1) separately the content of each first memory page (MMUi) into a compressed chunk (CCi), comparing each compressed chunk size (CCSi) to said first memory page size (MMUS), and if the size (CCSi) of a compressed chunk (CCi) is strictly smaller than said first memory page size (MMUS), storing (3) said compressed chunk (CCi) in a number of storage memory pages (SMPi) smaller than or equal to ceil(r), where r is the ratio between said first memory page size (MMUS) and said second memory page size (SMPS); whereas if the size (CCSi) of a compressed chunk (CCi) is greater than said first memory page size (MMUS), storing (3) directly the uncompressed content of said first memory page (MMUi) in a number of storage memory pages (SMPi) equal to ceil(r); and whereas if the size (CCSi) of a compressed chunk (CCi) is equal to said first memory page size (MMUS), storing (3) said compressed chunk (CCi), or storing (3) directly the uncompressed content of said first memory page (MMUi), in a number of storage memory pages (SMPi) equal to ceil(r).</p> |