Skip to content

[Feature] Optimization suggestions for using gopsutil data in the Dashboard #11077

@HynoR

Description

@HynoR

1Panel Version

2.0.13

Please describe your needs or suggestions for improvements

每次拿数据都是从 gopsutil 中的接口新拿数据,相当于每次都是 gopsutil 重新读/proc 里的东西,造成不必要的 io开销,速度也很慢。可以自己创建一个 psutil 包,缓存一部分变化慢和基本不变化的数据,对非实时数据进行缓存+懒加载读取。

Please describe the solution you suggest

No response

Additional Information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions