All of lore.kernel.org
 help / color / mirror / Atom feed
From: Balbir Singh <balbir@in.ibm.com>
To: "Patrick.Le-Dot" <Patrick.Le-Dot@bull.net>
Cc: ckrm-tech@lists.sourceforge.net, dev@openvz.org,
	haveblue@us.ibm.com, linux-kernel@vger.kernel.org,
	linux-mm@kvack.org, rohitseth@google.com
Subject: Re: [ckrm-tech] [RFC][PATCH 5/8] RSS controller task migration	support
Date: Fri, 17 Nov 2006 22:04:08 +0530	[thread overview]
Message-ID: <455DE480.7000500@in.ibm.com> (raw)
In-Reply-To: <20061117132533.A5FCF1B6A2@openx4.frec.bull.fr>

Patrick.Le-Dot wrote:
>> ...
>> For implementing guarantees, we can use limits. Please see
>> http://wiki.openvz.org/Containers/Guarantees_for_resources.
> 
> Nack.
> 
> This seems to be correct for resources like cpu, disk or network
> bandwidth but not for the memory just because nobody in this wiki
> speaks about the kswapd and page reclaim (but it's true that a such
> demon does not exist for cpu, disk or... then the problem is more
> simple).
> 
> For a customer the main reason to use guarantee is to be sure that
> some pages of a job remain in memory when the system is low on free
> memory. This should be true even for a job in group/container A with
> a smooth activity compared to a group/container B with a set of jobs
> using memory more agressively...
> 

I am not against guarantees, but

Consider the following scenario, let's say we implement guarantees

1. If we account for kernel resources, how do you provide guarantees
   when you have non-reclaimable resources?
2. If a customer runs a system with swap turned off (which is quite
   common), then anonymous memory becomes irreclaimable. If a group
   takes more than it's fair share (exceeds its guarantee), you
   have scenario similar to 1 above.

> What happens if we use limits to implement guarantees ?
> 
>>> ...
>>> The idea of getting a guarantee is simple:
>>> if any group gi requires a Gi units of resource from R units available
>>> then limiting all the rest groups with R - Gi units provides a desired
>>> guarantee
> 
> If the limit is a "hard limit" then we have implemented reservation and
> this is too strict.
>
> If the limit is a "soft limit" then group/container B is autorized to
> use more than the limit and nothing is guaranteed for group/container A...
> 
> Patrick


Yes, but it is better than failing to meet a guarantee (if guarantees are
desired :))


-- 

	Balbir Singh,
	Linux Technology Center,
	IBM Software Labs

WARNING: multiple messages have this Message-ID (diff)
From: Balbir Singh <balbir@in.ibm.com>
To: "Patrick.Le-Dot" <Patrick.Le-Dot@bull.net>
Cc: ckrm-tech@lists.sourceforge.net, dev@openvz.org,
	haveblue@us.ibm.com, linux-kernel@vger.kernel.org,
	linux-mm@kvack.org, rohitseth@google.com
Subject: Re: [ckrm-tech] [RFC][PATCH 5/8] RSS controller task migration	support
Date: Fri, 17 Nov 2006 22:04:08 +0530	[thread overview]
Message-ID: <455DE480.7000500@in.ibm.com> (raw)
In-Reply-To: <20061117132533.A5FCF1B6A2@openx4.frec.bull.fr>

Patrick.Le-Dot wrote:
>> ...
>> For implementing guarantees, we can use limits. Please see
>> http://wiki.openvz.org/Containers/Guarantees_for_resources.
> 
> Nack.
> 
> This seems to be correct for resources like cpu, disk or network
> bandwidth but not for the memory just because nobody in this wiki
> speaks about the kswapd and page reclaim (but it's true that a such
> demon does not exist for cpu, disk or... then the problem is more
> simple).
> 
> For a customer the main reason to use guarantee is to be sure that
> some pages of a job remain in memory when the system is low on free
> memory. This should be true even for a job in group/container A with
> a smooth activity compared to a group/container B with a set of jobs
> using memory more agressively...
> 

I am not against guarantees, but

Consider the following scenario, let's say we implement guarantees

1. If we account for kernel resources, how do you provide guarantees
   when you have non-reclaimable resources?
2. If a customer runs a system with swap turned off (which is quite
   common), then anonymous memory becomes irreclaimable. If a group
   takes more than it's fair share (exceeds its guarantee), you
   have scenario similar to 1 above.

> What happens if we use limits to implement guarantees ?
> 
>>> ...
>>> The idea of getting a guarantee is simple:
>>> if any group gi requires a Gi units of resource from R units available
>>> then limiting all the rest groups with R - Gi units provides a desired
>>> guarantee
> 
> If the limit is a "hard limit" then we have implemented reservation and
> this is too strict.
>
> If the limit is a "soft limit" then group/container B is autorized to
> use more than the limit and nothing is guaranteed for group/container A...
> 
> Patrick


Yes, but it is better than failing to meet a guarantee (if guarantees are
desired :))


-- 

	Balbir Singh,
	Linux Technology Center,
	IBM Software Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2006-11-17 16:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-17 13:25 [ckrm-tech] [RFC][PATCH 5/8] RSS controller task migration support Patrick.Le-Dot
2006-11-17 13:25 ` Patrick.Le-Dot
2006-11-17 14:05 ` Alan
2006-11-17 14:05   ` Alan
2006-11-17 16:34 ` Balbir Singh [this message]
2006-11-17 16:34   ` Balbir Singh
  -- strict thread matches above, loose matches on Subject: below --
2006-11-17 14:42 Patrick.Le-Dot
2006-11-17 14:42 ` Patrick.Le-Dot
2006-11-15 11:59 Patrick.Le-Dot
2006-11-15 16:37 ` [ckrm-tech] " Balbir Singh
2006-11-15 16:37   ` Balbir Singh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=455DE480.7000500@in.ibm.com \
    --to=balbir@in.ibm.com \
    --cc=Patrick.Le-Dot@bull.net \
    --cc=ckrm-tech@lists.sourceforge.net \
    --cc=dev@openvz.org \
    --cc=haveblue@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=rohitseth@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.