Boost logo

Boost :

Subject: Re: [boost] [string] proposal
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-01-29 17:32:49


AMDG

On 1/29/2011 1:18 PM, Dean Michael Berris wrote:
> On Sun, Jan 30, 2011 at 4:39 AM, Steven Watanabe<watanabesj_at_[hidden]> wrote:
>> On 1/29/2011 1:25 AM, Dean Michael Berris wrote:
>>> -- which means the VMM no matter what you do will
>>> actually have to find the memory for you and give you that chunk of
>>> memory. This means potentially swapping pages in/out. You limit this
>>> likelihood by asking for page-sized and page-aligned chunks and using
>>> those properly;
>>
>> Why?
>>
>
> Why will page-sized/page-aligned chunks avoid the likelihood of
> (unnecessarily) swapping pages in and out? Because if you didn't take
> care that your data would spill over to page boundaries the amount of
> pages you're touching is one more than you need to touch.
>

One more comment, and then I'm done with this thread.
I agree that page-alignment will help reduce swapping.
What I remain unconvinced about are the benefits of
allocating only single pages.

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk