Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main Memo #957

Open
mimikun opened this issue Nov 11, 2024 · 8 comments
Open

main Memo #957

mimikun opened this issue Nov 11, 2024 · 8 comments
Assignees

Comments

@mimikun
Copy link
Owner

mimikun commented Nov 11, 2024

No description provided.

@mimikun mimikun self-assigned this Nov 11, 2024
@mimikun
Copy link
Owner Author

mimikun commented Nov 11, 2024

前からウォッチしてたけど
飽きたのかエタった模様
可能なら引き継いでプルリクする

denoland/deno#19573

@mimikun

This comment has been minimized.

@mimikun
Copy link
Owner Author

mimikun commented Nov 11, 2024

@mimikun mimikun pinned this issue Nov 11, 2024
@mimikun

This comment has been minimized.

@mimikun mimikun unpinned this issue Dec 3, 2024
@mimikun mimikun moved this to Issue in Pinned issues Dec 3, 2024
@mimikun mimikun closed this as completed by moving to Issue in Pinned issues Dec 3, 2024
@mimikun mimikun reopened this Dec 3, 2024
@mimikun
Copy link
Owner Author

mimikun commented Feb 1, 2025

chezmoiで変なエラーが出たのを直した

結論: 組み込みのgitleaksの問題

```txt
no gitleaks config found in path .gitleaks.toml, using default gitleaks config

finding = highlights
path = lua/plugins/configs/todo-comments-nvim/opts.lua
rule-id = generic-api-key

finding = possible_values.only_left
path = lua/config/neovide.lua
rule-id = generic-api-key
```

@mimikun
Copy link
Owner Author

mimikun commented Feb 1, 2025

Linuxで、各言語のツールをビルドする時、リソース制限をかけたい

### 背景
OSがWSL2(Ubuntu)で、メモリ2GB、スワップがHDDのハードディスクに10GBという、リソースに極端な制限があるデバイスを使用しています
rustやgoのコンパイルではWindows側でメモリが100%張り付いて、使用率が20%超えることがあります。
WSL2(Ubuntu)側でrustやgoのコンパイルプロセスに
CPUとメモリの使用率に制限をかけて、動作の不安定化を防ぎたいです。
以下のワードでMicrosoft CopilotやGoogle検索でそれぞれ調べてみました。

```txt
how to set cpu and memory limit to cargo build in linux
how to set cpu and memory limit to rust compile in linux
how to set cpu and memory limit to golang compile in linux
```

#### 解決策1

cgroupで制限をかける


ちなみに極端な制限の解決についてはより良いところ(自分の金をプラスアルファして仕事用PCのスペックを盛れる等)への転あるいは起によってしか解決できないので難しいです。

@mimikun
Copy link
Owner Author

mimikun commented Feb 1, 2025

@mimikun mimikun changed the title Memo main Memo Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Issue
Development

No branches or pull requests

1 participant