Resolve high cpu usage even on idle system (#1189)
* Resolve high cpu usage even on idel system
This commit is contained in:
Родитель
005c04e4a9
Коммит
51e8bb26e9
|
@ -13,6 +13,7 @@
|
|||
- [#1161](https://github.com/Azure/azure-storage-fuse/issues/1161) Add more verbose logs for pipeline init failures
|
||||
- Return permission denied error for `AuthorizationPermissionMismatch` error from service.
|
||||
- [#1187](https://github.com/Azure/azure-storage-fuse/issues/1187) File-cache path will be created recursively, if it does not exist.
|
||||
- Resolved bug related to constant 5% CPU usage even where there is no activity on the blobfuse2 mounted path.
|
||||
|
||||
## 2.0.3 (2023-04-26)
|
||||
**Bug Fixes**
|
||||
|
|
|
@ -48,6 +48,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/Azure/azure-pipeline-go/pipeline"
|
||||
azcopyCommon "github.com/Azure/azure-storage-azcopy/v10/common"
|
||||
"github.com/Azure/azure-storage-azcopy/v10/ste"
|
||||
"github.com/Azure/azure-storage-fuse/v2/common"
|
||||
"github.com/Azure/azure-storage-fuse/v2/common/log"
|
||||
|
@ -173,6 +174,10 @@ func (bb *BlockBlob) SetupPipeline() error {
|
|||
log.Trace("BlockBlob::SetupPipeline : Setting up")
|
||||
var err error
|
||||
|
||||
// This is a workaround right now to disable the input watcher thread which continuously monitors below config to change
|
||||
// Running this thread continuously increases the CPU usage by 5% even when there is no activity on blobfuse2 mount path
|
||||
azcopyCommon.GetLifecycleMgr().EnableInputWatcher()
|
||||
|
||||
// Get the credential
|
||||
cred := bb.getCredential()
|
||||
if cred == nil {
|
||||
|
|
Загрузка…
Ссылка в новой задаче