Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Raise the simulation cache memory warning to 16 GiB

未关闭 适合新手
#549 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@anth-volk 已经在做这个了。

开始于 2026年9月30日。

  • #550 来自 @anth-volk —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
76/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
python

调研方向

在当前的 PolicyEngine.py 发布线中,查找共享模拟缓存的 8 GiB 和 32 GiB 阈值及其警告状态处理。更新第一个阈值和 GiB 的表述,然后运行相关的缓存测试,或为所述验收标准补充覆盖:16 GiB 和 32 GiB 警告各发出一次,清除缓存后将它们重置。

由索引模型根据 Issue 内容生成。

描述

Problem

The shared simulation cache currently logs its first process memory warning at 8 GiB. The deployed society simulation workers are expected to use substantially more memory, so the 8 GiB warning creates noise before the actionable threshold.

Proposed change

  • Raise the first warning threshold from 8 GiB to 16 GiB.
  • Retain the 32 GiB warning.
  • Use GiB consistently in names and log messages.
  • Base the change on the current PolicyEngine.py release line rather than creating a 5.2.x maintenance release.

Acceptance criteria

  • No warning is emitted below 16 GiB.
  • Each threshold is logged once until the cache is cleared.
  • Clearing the cache resets warning state.
主要语言
Python
星标
8
派生
9
平均合并
15 小时 28 分钟
30 天内合并 PR
13

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

PolicyEngine/policyengine.py 的其他 Issue

查看 PolicyEngine/policyengine.py 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。