lkml.org 
[lkml]   [2004]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [ckrm-tech] Re: [Lse-tech] [PATCH] cpusets - big numa cpu and memory placement
Date
On Wednesday 11 August 2004 00:38, Shailabh Nagar wrote:
> > Metrics, transactions, tasks, and resource
> > decisions all have to be tracked or managed by Class.
> >
> > These Classes form a fairly shallow hierarchy of usage levels or
> > service qualities, as perceived by the end users of the system.
> >
> > I'd guess that the average lifetime of a Class is months or years,
> > as they can reflect the relative priority of relations with long
> > standing, external customers.
> >
> > Cpusets and CKRM have profoundly different purposes, economics and
> > motivations.
>
> I would say the methods differ, not the purpose. Both are trying to
> performance-isolate groups of tasks - one uses the spatial dimension of
> cpu bindings, the other uses the temporal dimension of cpu time.

So the purpose is different, too. With your words: spatial versus
temporal separation. They are orthogonal. In physics terms: you need
both to describe the universe and you cannot transform the one into
the other. Both make sense, they can be combined to give more benefit
(aehm, control).


> The other point of difference is the one you'd brought up earlier - ther
> restrictions on the hierarchy creation. CKRM has none (effectively),
> cpusets has many.

Don't know how it's exactly implemented, but the restrictions should
not be at hierarchy creation time (i.e. when creating the class
(cpusets) subdirectory). They should be imposed when setting/changing
the attributes. Writing illegal values to the virtual attribute files
must simply fail. And each resource controller knows best what it
allows for and what not, this shouldn't be a task of the
infrastructure (CKRM).


> As CKRM's interface stands today, there are sufficient differences
> between the interfaces to keep them separate.
>
> However, if CKRM moves to a model where
> - each controller is allowed to define its own virtual files and attributes
> - each controllers has its own hierarchy (and hence more control over
> how it can be formed),
> then the similarities will be too many to ignore merger possibilities
> altogether.
>
> The kicker is, we've not decided. The splitting of controllers into
> their own hierarchy is something we're considering independently (as a
> consequence of Linus' suggestion at KS04). But making the interface
> completely per-controller is something we can do, without too much
> effort, IF there is sufficient reason (we have other reasons for doing
> that as well - see recent postings on ckrm-tech).

Having controller specifics less hidden is good because usage becomes
more intuitive and you don't have to RTFM (controller specific manuals
would have to be written, too). One file per attribute is also nicer
than several attributes hidden in a shares files. Adding an attribute
means adding a file, it doesn't break the old interface, so this is
easier to maintain. And, as you mentioned, some files in the current
CKRM interface just don't make sense for some resources. But a sane
ruleset provided by CKRM for external controllers should be
there. For example something like:
- Class members are added by writing to the vitual file "target".
- Class members are listed by reading the virtual file "target" and
the format is ...
- Each class attribute should be controlled by one file named
appropriately. Etc...
- Members of a class can register a callback which will be invoked
when following events occur:
- the class is destroyed
- ... ?
- etc ...

> Interest/recommendations from the community that cpusets be part of
> CKRM's hierarchy would certainly be a factor in that decision.

I'd prefer a single entry point for resource management with
consistent (not necessarilly same) and easy to use user interfaces for
all resources.

Regards,
Erich

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

\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.186 / U:0.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site