PLMC : a Page LRU-level Memory Controller for CKRM/RG

This is not a real/complete memory controller yet, just a
poor/light prototype :
- to explain what is guarantee into a generic workload management
  and why limit only is not enough to provide this feature,
- coded with very minimal changes into the kernel and based on
  the existing CKRM/RG framework,
- and try to clarify/correct what is IMHO not efficient in the
  current CKRM/RG memory controller implementation.

The objective is to control the memory usage of an application
or a group of apps. The control is based on the number of pages
currently in use by each groups but limited to pages present into
the "LRU list" (then some kernel pages are out of this control).
Guarantee and limit are the 2 expected (and independent) mechanisms.

Nothing new compared to the current CKRM/RG memory controller,
only the realization differs : a light implementation introduces a
lot of (acceptable ?) limitations.

Only the guarantee is available with this patch.
Limit is in the TODO list.

The first goal is to have an acceptance regarding :
- the accounting of pages for a group,
- the changes into the kernel code to implement guarantee.


Since the CKRM/RG framework (interface/configfs) already exists
then I prefer to reuse it and not try to reinvent the wheel :

Applies against 2.6.18 + res_group_f0.8_single_2618


The CKRM/RG code is available at :
http://sourceforge.net/project/showfiles.php?group_id=85838

Each patch can be installed and compiled individually, with
CONFIG_RES_GROUPS_MEM_RC turned on/off.

How to compile & install :
in the .config file :
CONFIG_RES_GROUPS=y
CONFIG_RES_GROUPS_NUMTASKS=y
CONFIG_RES_GROUPS_MEM_RC=y

make bzImage/modules/modules_install/reboot

How to use :
see the CKRM/RG documents (I can give some help).


Signed-off-by: Patrick Le Dot <[EMAIL PROTECTED]>
---

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+    Patrick Le Dot
 mailto: [EMAIL PROTECTED]@bull.net         Centre UNIX de BULL SAS
 Phone : +33 4 76 29 73 20               1, Rue de Provence     BP 208
 Fax   : +33 4 76 29 76 00               38130 ECHIROLLES Cedex FRANCE
 Bull, Architect of an Open World TM
 www.bull.com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
ckrm-tech mailing list
https://lists.sourceforge.net/lists/listinfo/ckrm-tech

Reply via email to