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

reduce cpu, memory usage in CSI drivers on Windows #2436

Open
andyzhangx opened this issue Jul 27, 2024 · 0 comments
Open

reduce cpu, memory usage in CSI drivers on Windows #2436

andyzhangx opened this issue Jul 27, 2024 · 0 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@andyzhangx
Copy link
Member

andyzhangx commented Jul 27, 2024

Is your feature request related to a problem?/Why is this needed

powershell command would consume more memory and cpu on Windows, it's better replace with Golang API in Windows host process mode

  1. (Get-Item -Path $Env:mount).Target
    replace with os.Readlink does not work: [WIP] fix: replace Get-Item powershell cmd with golang api #2265
  2. there are other powershell commands in following code, it's better replacing them all with Golang APIs (search RunPowershellCmd)
    https://github.com/kubernetes-sigs/azuredisk-csi-driver/blob/master/pkg/os/disk/disk.go
    https://github.com/kubernetes-sigs/azuredisk-csi-driver/blob/master/pkg/os/volume/volume.go

Describe the solution you'd like in detail

Describe alternatives you've considered

Additional context

@andyzhangx andyzhangx added the kind/feature Categorizes issue or PR as related to a new feature. label Jul 27, 2024
@andyzhangx andyzhangx changed the title replace powershell command with Golang API in Windows host process mode replace powershell commands with Golang APIs in Windows host process mode Jul 27, 2024
@andyzhangx andyzhangx changed the title replace powershell commands with Golang APIs in Windows host process mode reduce cpu, memory usage in CSI drivers on Windows Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant