Systems and Means of Informatics
2016, Volume 26, Issue 1, pp 4-12
SPARSE BUFFERS - USING THE VIRTUAL MEMORY MECHANISM TO REDUCE PHYSICAL MEMORY AND CPU TIME USAGE
- I. M. Adamovich
- D. V. Zemskov
Abstract
This article discusses sparse buffers - address ranges in computer's virtual memory, for which mapping to the physical memory is partially or completely absent. Such buffers are intended for use in subroutines to transfer to them input data or to obtain from them output data so that when a subroutine reads or writes data at addresses for which no physical memory is allocated, a registered exception handler is called that allocates physical memory for virtual memory fragment to which access has been made, and in the case of reading data fills that memory with the necessary data. Actions made by a subroutine handler do not affect the execution of the subroutine, i.e., are transparent to it. This mechanism allows avoiding unnecessary allocation of physical memory when the amount of read or written data is less than the provided buffer's size and, in the case of reading the data, allows saving the CPU time required to fill the buffer with portions of data that would not be used by the subroutine.
[+] References (4)
- RFC 2781 - UTF-16, an encoding of ISO 10646. Available at: https://tools. ietf.org/html/2781 (accessed August 16, 2015).
- ISO/IEC 10646 - Information technology - Universal Coded Character Set (UCS). Available at: http://standards.iso.org/ittf/PubliclyAvailableStandards/ c063182_ISO_IEC_10 646_2014.zip (accessed August 16, 2015).
- RFC 3629 - UTF-8, a transformation format of ISO 10646. Available at: https://tools. ietf.org/html/3629 (accessed August 16, 2015).
- Adamovich, I.M., and D.V. Zemskov. 2014. Nastraivaemaya skhema kodirovaniya simvolov peremennym chislom oktetov - ACE [Adjustable variable-length character encoding scheme - ACE]. Sistemy i Sredstva Informatiki - Systems and Means of Informatics 24(4): 124-134.
[+] About this article
Title
SPARSE BUFFERS - USING THE VIRTUAL MEMORY MECHANISM TO REDUCE PHYSICAL MEMORY AND CPU TIME USAGE
Journal
Systems and Means of Informatics
Volume 26, Issue 1, pp 4-12
Cover Date
2016-04-30
DOI
10.14357/08696527160101
Print ISSN
0869-6527
Publisher
Institute of Informatics Problems, Russian Academy of Sciences
Additional Links
Key words
informatics; virtual memory; memory buffer; subroutines; reducing memory usage; reducing CPU time usage
Authors
I. M. Adamovich and D. V. Zemskov
Author Affiliations
Institute of Informatics Problems, Federal Research Center "Computer Science
and Control", Russian Academy of Sciences, 44-2 Vavilov Str., Moscow 119333, Russian Federation
|