Hi Chandra,
> > > > c) pointer to prototype code if poss
> > >
> > > Both the memory controllers are fully functional. We need to trim them
> > > down.
> > >
> > > active/inactive list per class memory controller:
> > > http://prdownloads.sourceforge.net/ckrm/mem_rc-f0.4-2615-v2.tz?download
> >
> > Oh my gosh. That converts memory reclaim from per-zone LRU to
> > per-CKRM-class LRU. If configured.
>
> Yes. We originally had an implementation that would use the existing
> per-zone LRU, but the reclamation path was O(n), where n is the number
> of classes. So, we moved towards a O(1) algorithm.
>
> >
> > This is huge. It means that we have basically two quite different versions
> > of memory reclaim to test and maintain. This is a problem.
>
> Understood, will work and come up with an acceptable memory controller.
> >
> > (I hope that's the before-we-added-comments version of the patch btw).
>
> Yes, indeed :). As I told earlier this patch is not ready for lkml or -
> mm yet.
> >
> > > pzone based memory controller:
> > > http://marc.theaimsgroup.com/?l=ckrm-tech&m=113867467006531&w=2
> >
> > From a super-quick scan that looks saner. Is it effective? Is this the
> > way you're planning on proceeding?
> >
>
> Yes, it is effective, and the reclamation is O(1) too. It has couple of
> problems by design, (1) doesn't handle shared pages and (2) doesn't
> provide support for both min_shares and max_shares.
I'm not sure all of them have to be managed under ckrm_core and rcfs
in kernel.
These functions you mentioned can be implemented in user space
to minimize the overhead in usual VM operations because it isn't
expected quick response to resize it. It is a bit different from
that of CPU resource.
You don't need to invent everything. I think you can reuse what
NUMA team is doing instead. This approach may not fit in your rcfs,
though.
> > This requirement is basically a glorified RLIMIT_RSS manager, isn't it?
> > Just that it covers a group of mm's and not just the one mm?
>
> Yes, that is the core object of ckrm, associate resources to a group of
> tasks.
Thanks,
Hirokazu Takahahsi.
-
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]