Application Using Limited Cores When Run via C# Code
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 15/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- csharp
- 领域
- networking
调研方向
未指定任何仓库文件或测试。首先,使用 SshClient.RunCommand,在相同的 Google Cloud VM 环境中,将直接命令与 C# SSH.NET 路径进行比较。完成的标准是确定 13 核限制来自 SSH.NET 还是远程进程环境,并在存在已确认的解决方法时记录下来。
由索引模型根据 Issue 内容生成。
描述
Hello Team,
I have an issue where an application executable utilizes all 39 logical processors when I run it directly from the Command Prompt. However, when I execute the same command using C# code (shown below), the application only uses 13 logical processors only.
Additionally, I created a mediator console application that only runs the same command. When I run this console app from my local system to a Google Cloud VM, it also utilizes only 13 logical processors.
Could you please help me understand why this behavior is occurring? Is there any patch, configuration, or workaround available to ensure the application uses all 39 logical processors when triggered via code?
C# Code Used:
public async Task Execute(string command)
{
//command = "C:\ChassisSimTechnologies\ChassisSim_v3_45\ChassisSim_v3_45_elite.exe C:\ChassisSimTechnologies\csim_batch_file.txt";
using (var client = new SshClient(Global.Host, Global.Username, Global.Password))
{
await client.ConnectAsync(default);
var cmd = client.RunCommand(command);
client.Disconnect();
return cmd.Result;
}
}
Thanks in advance for your assistance.
- 主要语言
- C#
- 星标
- 4.4k
- 派生
- 993
- 平均合并
- 9 天 21 小时
- 30 天内合并 PR
- 1
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
sshnet/SSH.NET 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 3/5 1-2 天 新手友好度 68/100
-
难度 4/5 3-5 天 新手友好度 48/100
-
难度 3/5 1-2 天 新手友好度 67/100
-
难度 4/5 3-5 天 新手友好度 55/100
相似的 Issue
-
core dependencies
难度 1/5 1 小时以内 新手友好度 80/100
-
bug frontend good first issue
难度 2/5 1-3 小时 新手友好度 75/100
-
NavigationViewItemAutomationPeer implements IInvokeProvider but never advertises the Invoke pattern 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
unoplatform/uno#24629 ·
-
agentic-workflows Needs: Triage :mag: State: In-PR
难度 2/5 1-3 小时 新手友好度 70/100
-
Down / Waiting for removal
难度 2/5 1-3 小时 新手友好度 70/100