Hi Rajaram,

Suryanarayanan, Rajaram wrote:
Hi,

I was trying to play with the numtasks controller.

When I try to change the sys_total_tasks parameter, the system completely hangs 
after the echo command.

[EMAIL PROTECTED] ckrm]# pwd
/config/ckrm [EMAIL PROTECTED] ckrm]#cat config
res=numtasks,sys_total_tasks=unlimited,forkrate=unlimited,forkrate_interval=1
[EMAIL PROTECTED] ckrm]#
[EMAIL PROTECTED] ckrm]# echo "res=numtasks,sys_total_tasks=10000" > config

This happens whenever I try the above. I have used ckrm-f0.4-2614-single.patch + cpurc-v0.3-2614.
Could anybody clarify where I am going wrong ?

Thank you for reporting a new bug. The following patch fix the problem.

Index: linux-2.6.14-f0.4-cpurc-v0.3/kernel/ckrm/ckrm_numtasks.c
===================================================================
--- linux-2.6.14-f0.4-cpurc-v0.3.orig/kernel/ckrm/ckrm_numtasks.c
+++ linux-2.6.14-f0.4-cpurc-v0.3/kernel/ckrm/ckrm_numtasks.c
@@ -557,7 +557,6 @@ static int numtasks_set_config(void *my_
                                res->cnt_limit = CKRM_SHARE_DONTCARE;
                        } else {
                                total_numtasks = new_total;
-                               spin_lock(&res->cnt_lock);
                                res->cnt_guarantee = total_numtasks;
                                res->cnt_unused = total_numtasks;
                                res->cnt_limit = total_numtasks;

Chandra, Could you apply this patch to your tree?

Also the config file does not contain the details of CPU resource controller. But the shares file contains both.

It is intentional. Since CPU resource controller _for f-series_
doesn't need any configuration parameters so far, it doesn't
need to make an entry in the config file.

Thanks,
MAEDA Naoaki



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
ckrm-tech mailing list
https://lists.sourceforge.net/lists/listinfo/ckrm-tech

Reply via email to