{"id":13621142,"url":"https://github.com/layou233/NeverIdle","last_synced_at":"2025-04-15T01:31:23.508Z","repository":{"id":65605841,"uuid":"595468131","full_name":"layou233/NeverIdle","owner":"layou233","description":"资源定期浪费，可用于 Oracle 甲骨文保活。","archived":false,"fork":false,"pushed_at":"2025-04-08T08:58:54.000Z","size":73,"stargazers_count":730,"open_issues_count":7,"forks_count":174,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-08T09:46:42.804Z","etag":null,"topics":["oracle-cloud","speedtest"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/layou233.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-31T06:13:26.000Z","updated_at":"2025-04-08T08:58:31.000Z","dependencies_parsed_at":"2023-12-19T04:55:30.551Z","dependency_job_id":"62b91001-cb11-46ca-9a05-48cf54f8b372","html_url":"https://github.com/layou233/NeverIdle","commit_stats":{"total_commits":77,"total_committers":6,"mean_commits":"12.833333333333334","dds":"0.22077922077922074","last_synced_commit":"154685acbc9515c278cbcaf91aae57aadb4f8d79"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/layou233%2FNeverIdle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/layou233%2FNeverIdle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/layou233%2FNeverIdle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/layou233%2FNeverIdle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/layou233","download_url":"https://codeload.github.com/layou233/NeverIdle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248989167,"owners_count":21194544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["oracle-cloud","speedtest"],"created_at":"2024-08-01T21:01:02.902Z","updated_at":"2025-04-15T01:31:23.241Z","avatar_url":"https://github.com/layou233.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# NeverIdle\n\n[**Español**](README_ES.md) | [**English**](README_en.md) | **简体中文**\n\n*我喜欢你，但别删我机，好么？*\n\n本程序随手写的，下面介绍也是随心写的，不喜勿碰。\n\n## 一键脚本 One click to go\n\n```shell\nbash \u003c(curl -s -L https://gist.githubusercontent.com/Ansen/e45320205faf5786d3282ac880f20bab/raw/onekey-NeverIdle.sh)\n```\n\nMJJ 们估计会喜欢这个。感谢脚本作者 @Ansen\n\n默认执行下面的命令，当然肯定没法覆盖所有的需求。  \n比如 AMD 没有 2G 内存，也没有浪费内存的要求。  \n所以依然建议各位自己安装，也是非常便捷迅速的。\n\n## Usage\n\n从 Release 下载可执行文件。注意区分 amd64 和 arm64。\n\n在服务器上启动一个 screen，然后执行本程序，用法自己搜。\n\n命令参数：\n\n```shell\n./NeverIdle -cp 0.15 -m 2 -n 4h\n```\n\n其中：\n\n-c 指启用 CPU 定期浪费，后面跟随每次浪费的间隔时间。  \n如每 12 小时 23 分钟 34 秒浪费一次，则为 `-c 12h23m34s`。按照格式填。\n\n-cp 指启用粗粒度的 CPU 百分比浪费，浪费率将随机器的使用水平实时变化。  \n如最大浪费20%的CPU，则为 `-cp 0.2`。百分比的取值范围 [0, 1] 并且注意不要和 `-c` 一起使用。\n\n-m 指启用浪费的内存量，后面是一个数字，单位为 GiB。  \n启动后会占用对应量的内存，并且保持不会释放，直到手动杀死进程。\n\n-n 指启用网络定期浪费，后面跟随每次浪费的间隔时间。  \n格式同 CPU。会定期执行一次 Ookla Speed Test（还会输出结果哦！）\n\n-t 指设置网络定期浪费的并发连接数。  \n默认为10个，值越大消耗的资源越多，一般情况不需要更改。\n\n-p 指设置该进程优先级，后跟随一个优先级数值。不指定则默认使用本平台的最低优先级。  \n对于 UNIX-like 系统（如 Linux、FreeBSD 和 macOS），数值取值范围为 [-20,19] ，数字越大优先级越低。  \n对于 Windows ，参见 [官方文档](https://learn.microsoft.com/zh-cn/windows/win32/api/processthreadsapi/nf-processthreadsapi-setpriorityclass)。  \n建议不进行指定，默认即为最低优先级，为其它所有进程让路。\n\n*启动该程序后即立刻执行一次你配置的所有功能，可以观察效果。*\n\n## docker 部署\n1. 下载 `Dockerfile`\n```shell\nwget https://raw.githubusercontent.com/layou233/NeverIdle/master/Dockerfile\n```\n2. 构建镜像\n```shell\n# arm机器\ndocker build -t neveridle:latest .\n# amd机器指定 ARCH=amd64\ndocker build --build-arg ARCH=amd64 -t neveridle:latest .\n```\n3. 运行\n```bash\n# 命令参数同上\ndocker run -d --name neveridle neveridle:latest -c 1h -m 2 -n 4h\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flayou233%2FNeverIdle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flayou233%2FNeverIdle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flayou233%2FNeverIdle/lists"}