3 ms·
How difficult would it be to keep statistics for each page (in a separate "process" inside the CPU), and swap out pages according to these statistics? (Thus on
by amelius 12y ago
How difficult would it be to keep statistics for each page (in a separate "process" inside the CPU), and swap out pages according to these statistics? (Thus on every read and write operation, the page number would be streamed to a bookkeeper circuit.)
Alternatively, could malloc be given an extra parameter: the "priority" of the page the block will be allocated in. For example malloc(100, 1) would allocate a block of 100 bytes inside a priority-1 page. (Thus the OS would know the priority of each page, and swap them out accordingly; the heap allocator would assign these numbers).
Would this solve something?