apache / apache/brpc

futex_wait_private 时间长 6s 左右

Open
#2,352 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
17.6k
Forks
4.1k
Avg merge
2d 12h
Merged PRs (30d)
69

Description

**Describe the bug (描述bug)**
futex_wait_private 时间过长,straces看是因为 wait了 6s,才 wake up的。

**To Reproduce (复现方法)**
目前仅在自己开发机上复现,且无法解决

**Expected behavior (期望行为)**
期望不用wait这么久

**Versions (各种版本)**
OS:Linux
Compiler:gcc 4.8.5
brpc: 19年版本
protobuf:

**Additional context/screenshots (更多上下文/截图)**
![image](https://github.com/apache/brpc/assets/49931092/cfdaec1a-5d43-42a8-aeef-f85863f16bc2)

Contributor guide

Open the contributing guide

Research direction

Start with the provided strace showing futex_wait_private and review the Linux futex behavior in the context of brpc's 2019-era code and GCC 4.8.5 environment. Reproduce the roughly six-second wait outside the reporter's development machine if possible; done means identifying the cause and demonstrating that the unnecessary delay no longer occurs.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.