Skip to contentSkip to conversation

a LLC sched domain bug for panda board?

DISCUSSION Alex Shi 3 participants 5 messages Feb 3, 2014 – Feb 4, 2014 1 message not in the archive

lore
Share & tools
lore

Alex Shi

author
#0 lore raw

I just run the 3.14-rc1 kernel on panda board. The only domain for it is 'CPU' domain, but this domain has no SD_SHARE_PKG_RESOURCES setting, it has no sd_llc.

Guess the right domain for this board should be MC. So is it a bug?

.. /proc/sys/kernel/sched_domain/cpu0/domain0/name:CPU .. /proc/sys/kernel/sched_domain/cpu1/domain0/name:CPU

Signature · 2 lines
Thanks
    Alex
#1 lore raw

Have you checked that CONFIG_SCHED_LC is set ?

Quoted 19 lines · Alex Shi

I just run the 3.14-rc1 kernel on panda board. The only domain for it is 'CPU' domain, but this domain has no SD_SHARE_PKG_RESOURCES setting, it has no sd_llc.

Guess the right domain for this board should be MC. So is it a bug?

.. /proc/sys/kernel/sched_domain/cpu0/domain0/name:CPU .. /proc/sys/kernel/sched_domain/cpu1/domain0/name:CPU

--
Thanks
Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw
Quoted 1 line · Vincent Guittot

Have you checked that CONFIG_SCHED_LC is set ?

sorry it's CONFIG_SCHED_MC

Quoted 22 lines · Alex Shi
Quoted 19 lines

I just run the 3.14-rc1 kernel on panda board. The only domain for it is 'CPU' domain, but this domain has no SD_SHARE_PKG_RESOURCES setting, it has no sd_llc.

Guess the right domain for this board should be MC. So is it a bug?

.. /proc/sys/kernel/sched_domain/cpu0/domain0/name:CPU .. /proc/sys/kernel/sched_domain/cpu1/domain0/name:CPU

--
Thanks
Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

author
#3 lore raw
Quoted 4 lines · Vincent Guittot
Quoted 1 line · Vincent Guittot

Have you checked that CONFIG_SCHED_LC is set ?

sorry it's CONFIG_SCHED_MC

Thanks for reminder! no it wasn't set. Does it means arch/arm/configs/omap2plus_defconfig need add this config?

Quoted 23 lines
Quoted 23 lines · Alex Shi
Quoted 19 lines

I just run the 3.14-rc1 kernel on panda board. The only domain for it is 'CPU' domain, but this domain has no SD_SHARE_PKG_RESOURCES setting, it has no sd_llc.

Guess the right domain for this board should be MC. So is it a bug?

.. /proc/sys/kernel/sched_domain/cpu0/domain0/name:CPU .. /proc/sys/kernel/sched_domain/cpu1/domain0/name:CPU

--
Thanks
Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 2 lines
Thanks
    Alex

A message that is not in the archive (sent off-list or not yet received): CAKfTPtBV0cSALdVcMsnGHwQPoNCEp5CXQGg36ZAgK7kWJ6gaMQ@mail.gmail.com

#5 lore raw

Hi Alex, Vincent,

Quoted 5 lines · Vincent Guittot

Yes, it's probably worth enabling by default for all ARM arch.

Vincent

On 02/04/2014 12:28 AM, Vincent Guittot wrote:

Quoted 8 lines
Quoted 1 line

On 3 February 2014 17:27, Vincent Guittot <[email protected]>

Quoted 3 lines · wrote:
Quoted 1 line

Have you checked that CONFIG_SCHED_LC is set ?

sorry it's CONFIG_SCHED_MC

Thanks for reminder! no it wasn't set. Does it means arch/arm/configs/omap2plus_defconfig need add this config?

Hmm..ok let me think this aloud. So looks like the SMT,MC and the NUMA sched domains are optional depending on the architecture. They are config dependent. These domains could potentially exist on the processor layout, but if the respective CONFIG options are not set, the scheduler could very well ignore these levels.

What this means is that although the architecture could populate the cpu_sibling_mask and cpu_coregroup_mask, the scheduler is not mandated to schedule across the SMT and MC levels of the topology. Its just the CPU sched domain which is guaranteed to be present no matter what.

This is indeed interesting to note :) Thanks Alex for bringing up this point :)

On PowerPC, the SCHED_MC option can never be set. Its not even optional. On x86, it is on by default and on arm looks like its off by default.

Thanks,

Regards
Preeti U Murthy

Quoted 30 lines
Quoted 16 lines
Quoted 16 lines · Alex Shi
Quoted 11 lines

I just run the 3.14-rc1 kernel on panda board. The only domain for it is 'CPU' domain, but this domain has no SD_SHARE_PKG_RESOURCES setting, it has no sd_llc.

Guess the right domain for this board should be MC. So is it a bug?

.. /proc/sys/kernel/sched_domain/cpu0/domain0/name:CPU .. /proc/sys/kernel/sched_domain/cpu1/domain0/name:CPU

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

--
Thanks
Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel"

in

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

--
Thanks
Alex