[Bug 1868028] Re: L2\L3 cache display error for using "getconf -a" command"
Marking as "won't fix" because the getconf and the kernel are working as expected. (Please refer to comment 11 for details) ** Changed in: kunpeng920 Status: In Progress => Won't Fix ** Changed in: kunpeng920/ubuntu-18.04 Status: In Progress => Won't Fix ** Changed in: kunpeng920/ubuntu-18.04-hwe Status: New => Won't Fix ** Changed in: kunpeng920/ubuntu-20.04 Status: New => Won't Fix ** Changed in: glibc (Ubuntu) Status: New => Won't Fix ** Changed in: kunpeng920/upstream-kernel Status: New => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868028 Title: L2\L3 cache display error for using "getconf -a" command" To manage notifications about this bug go to: https://bugs.launchpad.net/kunpeng920/+bug/1868028/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1868028] Re: L2\L3 cache display error for using "getconf -a" command"
eoan on scobee could reproduce this issue: ubuntu@scobee:~$ apt-cache policy libc-bin; uname -a; lsb_release -a; getconf LEVEL1_ICACHE_SIZE libc-bin: Installed: 2.30-0ubuntu2.1 Candidate: 2.30-0ubuntu2.1 Version table: *** 2.30-0ubuntu2.1 500 500 http://ports.ubuntu.com/ubuntu-ports eoan-updates/main arm64 Packages 100 /var/lib/dpkg/status 2.30-0ubuntu2 500 500 http://ports.ubuntu.com/ubuntu-ports eoan/main arm64 Packages Linux scobee 5.3.0-46-generic #38-Ubuntu SMP Fri Mar 27 17:32:45 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux No LSB modules are available. Distributor ID: Ubuntu Description:Ubuntu 19.10 Release:19.10 Codename: eoan 0 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868028 Title: L2\L3 cache display error for using "getconf -a" command" To manage notifications about this bug go to: https://bugs.launchpad.net/kunpeng920/+bug/1868028/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1868028] Re: L2\L3 cache display error for using "getconf -a" command"
focal on scobee could reproduce this issue: ubuntu@scobee:~$ apt-cache policy libc-bin libc-bin: Installed: 2.31-0ubuntu7 Candidate: 2.31-0ubuntu7 Version table: *** 2.31-0ubuntu7 500 500 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 Packages 100 /var/lib/dpkg/status ubuntu@scobee:~$ uname -a; lsb_release -a; getconf LEVEL1_ICACHE_SIZE Linux scobee 5.4.0-21-generic #25-Ubuntu SMP Sat Mar 28 13:12:38 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux No LSB modules are available. Distributor ID: Ubuntu Description:Ubuntu Focal Fossa (development branch) Release:20.04 Codename: focal 0 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868028 Title: L2\L3 cache display error for using "getconf -a" command" To manage notifications about this bug go to: https://bugs.launchpad.net/kunpeng920/+bug/1868028/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1868028] Re: L2\L3 cache display error for using "getconf -a" command"
This is not a kernel issue. I would suggest "won't fix" for this issue from technical point of view: 1) This is not a bug but a feature restriction of the tool getconf[1]. We could only retrieve the cpu cache information in another way, which is not what getconf is using now. Because the upstream does not update the retrieve method, we could not avoid to re-implement the retrieve method. Besides, 0 in this case is expected because it means "no information available".[2] 2) This is not a kernel issue because kernel still provides the corresponding cpu information. lscpu could get the expected information because lscpu retrives the cache information in another way. lspcu gets the information via Linux virtual filesystem, including /proc/cpuinfo and /sys/devices/system/cpu, and these virtual devices/files provided by Linux kernel show the corresponding kernel is working and working well. I would suggest to use lscpu in your case to retrieve L2/L3 cache information instead of getconf. [1] According to the source code where getconf retrieves cpu cache information sysdeps/unix/sysv/linux/aarch64/sysconf.c:__sysconf /* Unfortunately, the registers that contain the actual cache info (CCSIDR_EL1, CLIDR_EL1, and CSSELR_EL1) are protected by the Linux kernel (though they need not have been). However, CTR_EL0 contains the *minimum* linesize in the entire cache hierarchy, and is accessible to userland, for use in __aarch64_sync_cache_range, and it is a reasonable assumption that the L1 cache will have that minimum line size. */ [2] Please refer to the comments in this source file ./sysdeps/posix/sysconf.c:__sysconf case _SC_LEVEL1_ICACHE_SIZE: case _SC_LEVEL1_ICACHE_ASSOC: case _SC_LEVEL1_ICACHE_LINESIZE: case _SC_LEVEL1_DCACHE_SIZE: case _SC_LEVEL1_DCACHE_ASSOC: case _SC_LEVEL1_DCACHE_LINESIZE: case _SC_LEVEL2_CACHE_SIZE: case _SC_LEVEL2_CACHE_ASSOC: case _SC_LEVEL2_CACHE_LINESIZE: case _SC_LEVEL3_CACHE_SIZE: case _SC_LEVEL3_CACHE_ASSOC: case _SC_LEVEL3_CACHE_LINESIZE: case _SC_LEVEL4_CACHE_SIZE: case _SC_LEVEL4_CACHE_ASSOC: case _SC_LEVEL4_CACHE_LINESIZE: /* In general we cannot determine these values. Therefore we return zero which indicates that no information is available. */ return 0; -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868028 Title: L2\L3 cache display error for using "getconf -a" command" To manage notifications about this bug go to: https://bugs.launchpad.net/kunpeng920/+bug/1868028/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1868028] Re: L2\L3 cache display error for using "getconf -a" command"
Xinwei, is there a customer workload which is dependant on the output of "getconf -a"? No, only a test guy find it. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868028 Title: L2\L3 cache display error for using "getconf -a" command" To manage notifications about this bug go to: https://bugs.launchpad.net/kunpeng920/+bug/1868028/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1868028] Re: L2\L3 cache display error for using "getconf -a" command"
18.10 has EOLed. ** Changed in: kunpeng920/ubuntu-18.10 Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868028 Title: L2\L3 cache display error for using "getconf -a" command" To manage notifications about this bug go to: https://bugs.launchpad.net/kunpeng920/+bug/1868028/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1868028] Re: L2\L3 cache display error for using "getconf -a" command"
Xinwei, is there a customer workload which is dependant on the output of "getconf -a"? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868028 Title: L2\L3 cache display error for using "getconf -a" command" To manage notifications about this bug go to: https://bugs.launchpad.net/kunpeng920/+bug/1868028/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1868028] Re: L2\L3 cache display error for using "getconf -a" command"
** Changed in: kunpeng920 Status: New => In Progress ** Changed in: kunpeng920/ubuntu-18.04 Status: New => In Progress ** Changed in: kunpeng920/ubuntu-18.04 Assignee: (unassigned) => Taihsiang Ho (taihsiangho) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868028 Title: L2\L3 cache display error for using "getconf -a" command" To manage notifications about this bug go to: https://bugs.launchpad.net/kunpeng920/+bug/1868028/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1868028] Re: L2\L3 cache display error for using "getconf -a" command"
Reproducible with the following conditions (bionic-5.3): ubuntu@saenger:~$ uname -a Linux saenger 5.3.0-42-generic #34~18.04.1-Ubuntu SMP Fri Feb 28 13:43:38 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux ubuntu@saenger:~$ dpkg -l libc-bin Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version ArchitectureDescription +++-=-===-===-=== ii libc-bin 2.27-3ubuntu1 arm64 GNU C Library: Binaries ubuntu@saenger:~$ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868028 Title: L2\L3 cache display error for using "getconf -a" command" To manage notifications about this bug go to: https://bugs.launchpad.net/kunpeng920/+bug/1868028/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1868028] Re: L2\L3 cache display error for using "getconf -a" command"
Reproducible with the following conditions: ubuntu@saenger:~$ uname -a Linux saenger 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:10:16 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux ubuntu@saenger:~$ dpkg -l libc-bin Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version ArchitectureDescription +++-=-===-===-=== ii libc-bin 2.27-3ubuntu1 arm64 GNU C Library: Binaries ubuntu@saenger:~$ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868028 Title: L2\L3 cache display error for using "getconf -a" command" To manage notifications about this bug go to: https://bugs.launchpad.net/kunpeng920/+bug/1868028/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1868028] Re: L2\L3 cache display error for using "getconf -a" command"
On 3/27/20 10:12 PM, Taihsiang Ho wrote: > $ lscpu > Architecture:x86_64 > CPU op-mode(s): 32-bit, 64-bit Please use kunpeng920 machines. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868028 Title: L2\L3 cache display error for using "getconf -a" command" To manage notifications about this bug go to: https://bugs.launchpad.net/kunpeng920/+bug/1868028/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1868028] Re: L2\L3 cache display error for using "getconf -a" command"
kernel used for the comment #3 : 5.3.0-42-generic #34~18.04.1-Ubuntu so I am keen to know which kernel/hardware combination it could really reproduce this issue. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868028 Title: L2\L3 cache display error for using "getconf -a" command" To manage notifications about this bug go to: https://bugs.launchpad.net/kunpeng920/+bug/1868028/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1868028] Re: L2\L3 cache display error for using "getconf -a" command"
I tested the command on bionic (ubuntu-mate) and it returns: GNU_LIBPTHREAD_VERSION NPTL 2.27 POSIX2_SYMLINKS1 LEVEL1_ICACHE_SIZE 32768 LEVEL1_ICACHE_ASSOC8 LEVEL1_ICACHE_LINESIZE 64 LEVEL1_DCACHE_SIZE 32768 LEVEL1_DCACHE_ASSOC8 LEVEL1_DCACHE_LINESIZE 64 LEVEL2_CACHE_SIZE 262144 LEVEL2_CACHE_ASSOC 4 LEVEL2_CACHE_LINESIZE 64 LEVEL3_CACHE_SIZE 6291456 LEVEL3_CACHE_ASSOC 12 LEVEL3_CACHE_LINESIZE 64 LEVEL4_CACHE_SIZE 0 LEVEL4_CACHE_ASSOC 0 LEVEL4_CACHE_LINESIZE 0 and $ lscpu Architecture:x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 8 On-line CPU(s) list: 0-7 Thread(s) per core: 2 Core(s) per socket: 4 Socket(s): 1 NUMA node(s):1 Vendor ID: GenuineIntel CPU family: 6 Model: 142 Model name: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz Stepping:11 CPU MHz: 800.013 CPU max MHz: 3900. CPU min MHz: 400. BogoMIPS:3600.00 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache:256K L3 cache:6144K NUMA node0 CPU(s): 0-7 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868028 Title: L2\L3 cache display error for using "getconf -a" command" To manage notifications about this bug go to: https://bugs.launchpad.net/kunpeng920/+bug/1868028/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1868028] Re: L2\L3 cache display error for using "getconf -a" command"
** Tags added: tairadar -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868028 Title: L2\L3 cache display error for using "getconf -a" command" To manage notifications about this bug go to: https://bugs.launchpad.net/kunpeng920/+bug/1868028/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1868028] Re: L2\L3 cache display error for using "getconf -a" command"
** Also affects: glibc (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868028 Title: L2\L3 cache display error for using "getconf -a" command" To manage notifications about this bug go to: https://bugs.launchpad.net/kunpeng920/+bug/1868028/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1868028] Re: L2\L3 cache display error for using "getconf -a" command"
** Changed in: kunpeng920 Assignee: (unassigned) => Taihsiang Ho (taihsiangho) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1868028 Title: L2\L3 cache display error for using "getconf -a" command" To manage notifications about this bug go to: https://bugs.launchpad.net/kunpeng920/+bug/1868028/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs