Re: [PATCH 0/4] Swap migration V3: Overview

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 21, 2005 at 12:56:16PM +0900, KAMEZAWA Hiroyuki wrote:
> mike kravetz wrote:
> >We have been using Mel's fragmentation patches.  One of the data structures
> >created by these patches is a 'usemap' thats tracks how 'blocks' of memory
> >are used.  I exposed the usemaps via sysfs along with other hotplug memory
> >section attributes.  So, you can then have a user space program scan the
> >usemaps looking for sections that can be easily offlined.
> >
> yea, looks nice :)
> But such pages are already shown as hotpluggable, I think.
> ACPI/SRAT will define the range, in ia64.

I haven't taken a close look at that code, but don't those just give
you physical ranges that can 'possibly' be removed?  So, isn't it
possible for hotpluggable ranges to contain pages allocated for kernel
data structures which would be almost impossible to offline?

> The difficulty is how to find hard-to-migrate pages, as Andrew pointed out.

By examining the fragmentation usemaps, we have a pretty good idea about
how the blocks are being used.  If a block is flagged as 'User Pages' then
there is a good chance that it can be offlined.  Of course, depending on
exactly how those 'user pages' are being used will determine if they can
be offlined.  If the offline of a section marked user is unsuccessful, you
can retry in the hope that the situation was transient.  Or, you can move
on to the next user block.  By concentrating your efforts on blocks only
containing user pages, your chances of success are greatly increased.
For blocks that are marked 'Kernel' we know an offline will not be successful
and don't even try.  

-- 
Mike
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux