On Wednesday 02 November 2005 02:43, Nick Piggin wrote:
> > Hmmm. I don't see at this point.
> > Why do you think ZONE_REMOVABLE can satisfy for hugepage.
> > At leaset, my ZONE_REMOVABLE patch doesn't any concern about
> > fragmentation.
>
> Well I think it can satisfy hugepage allocations simply because
> we can be reasonably sure of being able to free contiguous regions.
> Of course it will be memory no longer easily reclaimable, same as
> the case for the frag patches. Nor would be name ZONE_REMOVABLE any
> longer be the most appropriate!
>
> But my point is, the basic mechanism is there and is workable.
> Hugepages and memory unplug are the two main reasons for IBM to be
> pushing this AFAIKS.
Who cares what IBM is pushing? I'm interested in fragmentation avoidance for
User Mode Linux.
I use User Mode Linux to virtualize a system build, and one problem I
currently have is that some workloads temporarily use a lot of memory. For
example, I can run a complete system build in about 48 megs of ram: except
for building GCC. That spikes to a couple hundred megabytes. If I allocate
256 megabytes of memory to UML, that's half the memory on my laptop and UML
will just use it for redundant cacheing and such while desktop performance
gets a bit unhappy with the build going.
UML gets an instance's "physical memory" by allocating a temporary file,
mmapping it, and deleting it (which signals to the vfs that flushing this
data to backing store should only be done under memory pressure from the rest
of the OS, because the file's going away when it's closed so there's no
With fragmentation reduction and prezeroing, UML suddenly gains the option of
calling madvise(DONT_NEED) on sufficiently large blocks as A) a fast way of
prezeroing, B) a way of giving memory back to the host OS when it's not in
use.
This has _nothing_ to do with IBM. Or large systems. This is some random
developer trying to run a virtualized system build on his laptop.
(The reason I need to use UML is that I build uClibc with the newest 2.6
kernel headers I can, link apps against it, and then running many of those
apps during later stages of the build. If the kernel headers used to build
libc are sufficiently newer than the kernel the build is running under, I get
segfaults because the new libc tries use kernel features that aren't there on
the host system, but will be in the final system. I also get the ability to
mknod/chown/chroot without needing root access on the host system for
free...)
Rob
-
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]