Date: Fri, 06 Oct 2023 21:32:29 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 274316] excessive memory consumed by static_single_cpu_mask Message-ID: <bug-274316-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274316 Bug ID: 274316 Summary: excessive memory consumed by static_single_cpu_mask Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: emaste@freebsd.org in sys/compat/linuxkpi/common/src/linux_compat.c we have: static cpumask_t static_single_cpu_mask[MAXCPU]; cpumask_t * lkpi_get_static_single_cpu_mask(int cpuid) { KASSERT((cpuid >=3D 0 && cpuid < MAXCPU), ("%s: invalid cpuid %d\n", __func__, cpuid)); return (&static_single_cpu_mask[cpuid]); } when testing (an admittedly excessive) MAXCPU=3D65536 this array is huge (as cpumask_t also scales with MAXCPU). on arm64 andrew found it is responsible= for 512M of .bss's 566M. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274316-227>