linux-mips
[Top] [All Lists]

Bypass "find_busiest_queue" in VSMP (SMVP) mode

To: linux-mips@linux-mips.org
Subject: Bypass "find_busiest_queue" in VSMP (SMVP) mode
From: Suprasad Mutalik Desai <suprasad.desai@gmail.com>
Date: Fri, 6 Jul 2012 15:56:20 +0530
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Q46MwWBCkV2SJzJzwn5Eenfn+2DZYEMz54e9nl3KusE=; b=pw+BZe+gMhud2yGJcGbMkgccNJ5TP85yxyWsC/Yz51VtvBN5i56xt234FI8I3h1AUT CjC19kSerspnxth99bjHFKE7r5fd10p4W5URI1Nv/JDpIFS3xvP89H9LpNU2Hx7DBJaX uLZhwUoB3oDzJvs6V1Jo5uhcmgtGRE/t8FZxS455wNwq2CC2sJGmg2K7w4HK8SEukkfO 6lgSTVpwVPss6XOg6luu0QZBVxEUbnzfcuXBtWbBJgX+ikq9L6GiuytpcwGuAm7UqkVd R8yWMzT+Q8gmQcswlNsAwzdtahUnc2esWvbQCgyhDcXHM8irItL9POec2mvbzvJAVJme ZAgw==
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Sender: linux-mips-bounce@linux-mips.org
Hi All,

Currently i am running SMVP mode (2 VPEs each having one TC) on MIPS 34Kc . 

W.r.t load balancing logic,
load_balance --> find_busiest_group (find the busiest group in the domain) --> find_busiest_queue (find the busiest runqueue among the cpus in group)

In SMVP mode, each VPE is referred as groups and these VPEs (groups) have *ONLY* one TC (CPU) so do we still need to run "find_busiest_queue" to get the busiest runqueue among the cpus of a particular group .

Instead of "find_busiest_queue" , can we use below code in "linux-2.6.32.42/kernel/sched.c" ,

+#ifdef CONFIG_MIPS_MT_SMP
+       cpu = cpumask_first(sched_group_cpus(group))  / * get the first CPU in the busiest group */
+       busiest = cpu_rq (cpu)                        /* assign the runqueue of the cpu to busiest */
+#else
        busiest = find_busiest_queue(group, idle, imbalance, cpus);
+#endif

Please let me know your views .

Thanks and Regards,
Suprasad.
<Prev in Thread] Current Thread [Next in Thread>
  • Bypass "find_busiest_queue" in VSMP (SMVP) mode, Suprasad Mutalik Desai <=