Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Open Source
>
Other
>
Operation System
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
458
Star
1.7K
Fork
1.9K
GVP
openEuler
/
kernel
Closed
Code
Issues
1271
Pull Requests
991
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
【openEuler 22.03 LTS SP1】pool_workqueue内存涨上去后不降,确定有内存泄漏,泄漏在raid5的raid5_read_one_chunk函数
Done
#I6OSXU
Bug
陈澎祥
Opened this issue
2023-03-21 11:55
<!-- #请根据issue的类型在标题右侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> 【标题描述】openEuler 22.03 LTS含SP1,在raid5的raid5_read_one_chunk函数有内存泄漏,导致pool_workqueue内存涨上去后不降 【环境信息】 硬件信息: 1) 裸机场景: **lscpu** Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 39 bits physical, 48 bits virtual Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Vendor ID: GenuineIntel BIOS Vendor ID: Intel(R) Corporation Model name: Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz BIOS Model name: Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz CPU family: 6 Model: 158 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1 Stepping: 11 CPU max MHz: 3600.0000 CPU min MHz: 800.0000 BogoMIPS: 7200.00 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_tim er aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 s mep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d Virtualization features: Virtualization: VT-x Caches (sum of all): L1d: 128 KiB (4 instances) L1i: 128 KiB (4 instances) L2: 1 MiB (4 instances) L3: 6 MiB (1 instance) NUMA: NUMA node(s): 1 NUMA node0 CPU(s): 0-3 Vulnerabilities: Itlb multihit: KVM: Mitigation: VMX disabled L1tf: Mitigation; PTE Inversion; VMX conditional cache flushes, SMT disabled Mds: Mitigation; Clear CPU buffers; SMT disabled Meltdown: Mitigation; PTI Mmio stale data: Mitigation; Clear CPU buffers; SMT disabled Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Spectre v2: Mitigation; Retpolines, IBPB conditional, IBRS_FW, STIBP disabled, RSB filling Srbds: Vulnerable: No microcode Tsx async abort: Not affected **lsmem** RANGE SIZE STATE REMOVABLE BLOCK 0x0000000000000000-0x000000008fffffff 2.3G online yes 0-17 0x0000000100000000-0x000000026fffffff 5.8G online yes 32-77 Memory block size: 128M Total online memory: 8G Total offline memory: 0B 1) openEuler 22.03 LTS 2) 5.10.0-60.56.0.84.oe2203.x86_64 #1 SMP Thu Sep 15 06:37:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux 3) kernel-5.10.0-60.56.0] 无特殊组网 【问题复现步骤】 对多个大文件一次性进行cp或者mv,先是buffer_head涨,然后是pool_workqueue涨,停止操作,涨后的内容不恢复,疑似有泄漏。 【预期结果】 描述预期结果,可以通过对比新老版本获取 【实际结果】 slabtop信息中比较高的内存占用 Active / Total Objects (% used) : 6298683 / 6501937 (96.9%) Active / Total Slabs (% used) : 342399 / 342399 (100.0%) Active / Total Caches (% used) : 114 / 167 (68.3%) Active / Total Size (% used) : 1441523.41K / 1509456.64K (95.5%) Minimum / Average / Maximum Object : 0.01K / 0.23K / 12.31K OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME 4620960 4620696 99% 0.25K 288810 16 1155240K pool_workqueue 899652 845866 94% 0.10K 23068 39 92272K buffer_head 298564 298564 100% 0.14K 10663 28 42652K ext4_groupinfo_4k 99499 68167 68% 0.05K 1363 73 5452K Acpi-Parse 86778 53590 61% 0.21K 4821 18 19284K dentry 71604 42157 58% 1.21K 2754 26 88128K ext4_inode_cache 51296 30536 59% 0.57K 1832 28 29312K radix_tree_node 50080 50080 100% 0.12K 1565 32 6260K kernfs_node_cache 42368 31076 73% 0.06K 662 64 2648K vmap_area 30720 30720 100% 0.02K 120 256 480K kmalloc-16 26622 13909 52% 0.04K 261 102 1044K ext4_extent_status 22900 20071 87% 0.62K 916 25 14656K inode_cache 19074 19074 100% 0.04K 187 102 748K avtab_extended_perms 16201 15387 94% 0.23K 953 17 3812K vm_area_struct 13824 13732 99% 0.03K 108 128 432K kmalloc-32 12800 11614 90% 0.06K 200 64 800K anon_vma_chain 12712 12712 100% 0.07K 227 56 908K Acpi-Operand 11264 11264 100% 0.01K 22 512 88K kmalloc-8 10540 10540 100% 0.05K 124 85 496K ftrace_event_field 10112 9751 96% 0.06K 158 64 632K kmalloc-64 【附件信息】 比如系统message日志/组件日志、dump信息、图片等
<!-- #请根据issue的类型在标题右侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> 【标题描述】openEuler 22.03 LTS含SP1,在raid5的raid5_read_one_chunk函数有内存泄漏,导致pool_workqueue内存涨上去后不降 【环境信息】 硬件信息: 1) 裸机场景: **lscpu** Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 39 bits physical, 48 bits virtual Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Vendor ID: GenuineIntel BIOS Vendor ID: Intel(R) Corporation Model name: Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz BIOS Model name: Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz CPU family: 6 Model: 158 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1 Stepping: 11 CPU max MHz: 3600.0000 CPU min MHz: 800.0000 BogoMIPS: 7200.00 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_tim er aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 s mep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d Virtualization features: Virtualization: VT-x Caches (sum of all): L1d: 128 KiB (4 instances) L1i: 128 KiB (4 instances) L2: 1 MiB (4 instances) L3: 6 MiB (1 instance) NUMA: NUMA node(s): 1 NUMA node0 CPU(s): 0-3 Vulnerabilities: Itlb multihit: KVM: Mitigation: VMX disabled L1tf: Mitigation; PTE Inversion; VMX conditional cache flushes, SMT disabled Mds: Mitigation; Clear CPU buffers; SMT disabled Meltdown: Mitigation; PTI Mmio stale data: Mitigation; Clear CPU buffers; SMT disabled Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Spectre v2: Mitigation; Retpolines, IBPB conditional, IBRS_FW, STIBP disabled, RSB filling Srbds: Vulnerable: No microcode Tsx async abort: Not affected **lsmem** RANGE SIZE STATE REMOVABLE BLOCK 0x0000000000000000-0x000000008fffffff 2.3G online yes 0-17 0x0000000100000000-0x000000026fffffff 5.8G online yes 32-77 Memory block size: 128M Total online memory: 8G Total offline memory: 0B 1) openEuler 22.03 LTS 2) 5.10.0-60.56.0.84.oe2203.x86_64 #1 SMP Thu Sep 15 06:37:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux 3) kernel-5.10.0-60.56.0] 无特殊组网 【问题复现步骤】 对多个大文件一次性进行cp或者mv,先是buffer_head涨,然后是pool_workqueue涨,停止操作,涨后的内容不恢复,疑似有泄漏。 【预期结果】 描述预期结果,可以通过对比新老版本获取 【实际结果】 slabtop信息中比较高的内存占用 Active / Total Objects (% used) : 6298683 / 6501937 (96.9%) Active / Total Slabs (% used) : 342399 / 342399 (100.0%) Active / Total Caches (% used) : 114 / 167 (68.3%) Active / Total Size (% used) : 1441523.41K / 1509456.64K (95.5%) Minimum / Average / Maximum Object : 0.01K / 0.23K / 12.31K OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME 4620960 4620696 99% 0.25K 288810 16 1155240K pool_workqueue 899652 845866 94% 0.10K 23068 39 92272K buffer_head 298564 298564 100% 0.14K 10663 28 42652K ext4_groupinfo_4k 99499 68167 68% 0.05K 1363 73 5452K Acpi-Parse 86778 53590 61% 0.21K 4821 18 19284K dentry 71604 42157 58% 1.21K 2754 26 88128K ext4_inode_cache 51296 30536 59% 0.57K 1832 28 29312K radix_tree_node 50080 50080 100% 0.12K 1565 32 6260K kernfs_node_cache 42368 31076 73% 0.06K 662 64 2648K vmap_area 30720 30720 100% 0.02K 120 256 480K kmalloc-16 26622 13909 52% 0.04K 261 102 1044K ext4_extent_status 22900 20071 87% 0.62K 916 25 14656K inode_cache 19074 19074 100% 0.04K 187 102 748K avtab_extended_perms 16201 15387 94% 0.23K 953 17 3812K vm_area_struct 13824 13732 99% 0.03K 108 128 432K kmalloc-32 12800 11614 90% 0.06K 200 64 800K anon_vma_chain 12712 12712 100% 0.07K 227 56 908K Acpi-Operand 11264 11264 100% 0.01K 22 512 88K kmalloc-8 10540 10540 100% 0.05K 124 85 496K ftrace_event_field 10112 9751 96% 0.06K 158 64 632K kmalloc-64 【附件信息】 比如系统message日志/组件日志、dump信息、图片等
Comments (
3
)
Sign in
to comment
Status
Done
Backlog
已挂起
Fixing
Confirmed
Done
Accepted
Canceled
Assignees
Not set
Zhang Yi
zhangyi089
Assignee
Collaborator
+Assign
+Mention
Labels
sig/Kernel
issue_resolved
Not set
Projects
Unprojected
Unprojected
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(2)
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register