Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Log: Failed to retrieve socket 0 L3 classes! Allocation configuration error! #228

Closed
Biyi-lab opened this issue Oct 17, 2022 · 8 comments

Comments

@Biyi-lab
Copy link

MBA can be used normally.
An error occurs when executing "pqos -e "llc:....". Is this related to the linux kernel version? or need to modify the relevant parameters of CAT?
Thank you!

@aleksinx
Copy link
Contributor

Hi,
Could you provide output from command causing issue with verbose option enabled?

@Biyi-lab
Copy link
Author

Biyi-lab commented Oct 17, 2022

pqos -e "llc:0=0xff00;llc:1=0x00ff"

NOTE:  Mixed use of MSR and kernel interfaces to manage
       CAT or CMT & MBM may lead to unexpected behavior.
Failed to retrieve socket 0 L3 classes!
Allocation configuration error!

In fact, when I execute pqos -e, there is no relevant output from L3CA:

NOTE:  Mixed use of MSR and kernel interfaces to manage
       CAT or CMT & MBM may lead to unexpected behavior.
MBA COS definitions for Socket 0:
    MBA COS0 => 100% available
    MBA COS1 => 50% available
    MBA COS2 => 70% available
    MBA COS3 => 100% available
    MBA COS4 => 100% available
    MBA COS5 => 10% available
    MBA COS6 => 100% available
    MBA COS7 => 100% available
MBA COS definitions for Socket 1:
    MBA COS0 => 100% available
    MBA COS1 => 50% available
    MBA COS2 => 70% available
    MBA COS3 => 100% available
    MBA COS4 => 100% available
    MBA COS5 => 10% available
    MBA COS6 => 100% available
    MBA COS7 => 100% available
Core information for socket 0:
    Core 0, L2ID 0, L3ID 0 => COS4
    Core 1, L2ID 1, L3ID 0 => COS4
    Core 2, L2ID 2, L3ID 0 => COS4
    Core 3, L2ID 3, L3ID 0 => COS4
    Core 4, L2ID 4, L3ID 0 => COS4
    Core 5, L2ID 5, L3ID 0 => COS4
.........

@aleksinx
Copy link
Contributor

It seams that L3 CAT is not available on your system. You can check available features using pqos -d command

@Biyi-lab
Copy link
Author

Biyi-lab commented Oct 17, 2022

NOTE:  Mixed use of MSR and kernel interfaces to manage
       CAT or CMT & MBM may lead to unexpected behavior.
OS capabilities (Linux kernel 3.10.0-1160.42.2.rt56.1182.el7.x86_64)
    Monitoring
        Cache Monitoring Technology (CMT) events:
            LLC Occupancy (LLC)
        Memory Bandwidth Monitoring (MBM) events:
            Local Memory Bandwidth (LMEM)
            Total Memory Bandwidth (TMEM)
            Remote Memory Bandwidth (RMEM) (calculated)
        PMU events:
            LLC misses
            LLC references
            Instructions/Clock (IPC)
    Allocation
        Memory Bandwidth Allocation (MBA)
            Num COS: 8
            CTRL: disabled

Yes, L3 CAT is not available. Can we fix it by changing the kernel version?

@aleksinx
Copy link
Contributor

Is L3 CAT available in the hardware? You can check is using command pqos --iface=msr -d

@Biyi-lab
Copy link
Author

NOTE:  Mixed use of MSR and kernel interfaces to manage
       CAT or CMT & MBM may lead to unexpected behavior.
WARN: resctl filesystem mounted! Using MSR interface may corrupt resctrl filesystem and cause unexpected behaviour
Hardware capabilities
    Monitoring
        Cache Monitoring Technology (CMT) events:
            LLC Occupancy (LLC)
        Memory Bandwidth Monitoring (MBM) events:
            Total Memory Bandwidth (TMEM)
            Local Memory Bandwidth (LMEM)
            Remote Memory Bandwidth (RMEM) (calculated)
        PMU events:
            Instructions/Clock (IPC)
            LLC misses
            LLC references
            LLC misses - pcie read
            LLC misses - pcie write
            LLC references - pcie read
            LLC references - pcie write
    Allocation
        Cache Allocation Technology (CAT)
            L3 CAT
                CDP: disabled
                Num COS: 16
        Memory Bandwidth Allocation (MBA)
            Num COS: 8

@aleksinx
Copy link
Contributor

PQoS tools supports two interfaces

  1. OS - kernel interface enabled by default
  2. MSR - hardware interface

You can use MSR with --iface=msr option then L3 CAT and will be available for cores only.

On some platforms L3 CAT is disabled in the kernel by default (due to cpu errata). You can enable kernel support using rdt=l3cat cmdline kernel option (For details please refer to https://www.kernel.org/doc/Documentation/x86/resctrl_ui.txt).

@Biyi-lab
Copy link
Author

thank you! it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants