[Top] [All Lists]

Bypass "find_busiest_queue" in VSMP (SMVP) mode

Subject: Bypass "find_busiest_queue" in VSMP (SMVP) mode
From: Suprasad Mutalik Desai <>
Date: Fri, 6 Jul 2012 15:56:20 +0530
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; 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: <>
List-help: <>
List-id: linux-mips <>
List-owner: <>
List-post: <>
List-software: Ecartis version 1.0.0
List-subscribe: <>
List-unsubscribe: <>
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-" ,

+       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 */
        busiest = find_busiest_queue(group, idle, imbalance, cpus);

Please let me know your views .

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