baidu / baidu/bfs

UpdateBlockInfo is too slow

Open
#595 0 comments 0 reactions 0 assignees View on GitHub
optimization
Dominant language
C++
Stars
2.8k
Forks
551
PR merge metrics
No merged PRs in 30d

Description

Inside lock

```
[TimeChecker] 11/14 09:52:57.713783 [UpdateBlockInfo] UpdateWritingBlock use 118412 us
[TimeChecker] 11/14 09:52:57.713784 [UpdateBlockInfo] UpdateWritingBlock use 118411 us
[TimeChecker] 11/14 09:52:57.713792 [UpdateBlockInfo] UpdateWritingBlock use 118425 us
[TimeChecker] 11/14 09:52:57.713818 UpdateBlockInfo use 118453 us
[TimeChecker] 11/14 09:52:57.713834 UpdateBlockInfo use 118472 us
[TimeChecker] 11/14 09:52:57.713809 UpdateBlockInfo use 118440 us
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating UpdateBlockInfo and UpdateWritingBlock in the C++ source, then inspect the lock scope around the logged calls. Reproduce the reported timings with an available filesystem workload and profile the locked path; done means identifying and addressing the slowdown with evidence of improved timing.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.