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 context switching cost by optimizing thread model on consumer side. #4131

Merged

Conversation

chickenlj
Copy link
Contributor

What is the purpose of the change

same as #4106

Brief changelog

XXXXX

Verifying this change

XXXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a GITHUB_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
  • Run mvn clean install -DskipTests=false & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
  • If this contribution is large, please follow the Software Donation Guide.

@chickenlj chickenlj added this to the 2.7.3 milestone May 23, 2019
@carryxyh
Copy link
Member

Hi, chickenji, after I tested, I found several problems:

  1. The impact on tps is not very good
  2. It seems that the implementation of threadless is a bit complicated

I think we can temporarily keep this pr and merge it after further optimization.

@carryxyh carryxyh self-requested a review May 29, 2019 02:25
@chickenlj chickenlj changed the base branch from master to performance-tuning-2.7.x June 3, 2019 07:27
chickenlj added 3 commits June 3, 2019 15:32
# Conflicts:
#	dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/exchange/support/DefaultFuture.java
#	dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/AsyncRpcResult.java
#	dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DubboInvoker.java
…ecutor-manager-2.7

# Conflicts:
#	dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/exchange/support/DefaultFuture.java
@chickenlj
Copy link
Contributor Author

Hi, chickenji, after I tested, I found several problems:

  1. The impact on tps is not very good
  2. It seems that the implementation of threadless is a bit complicated

I think we can temporarily keep this pr and merge it after further optimization.

Sure, thanks for help testing, performance is one of the important goals of this patch, I agree to wait and further polish it before merging.

@chickenlj
Copy link
Contributor Author

I just opened a separate branch for performance tuning purpose.

@chickenlj chickenlj merged commit 5cc3821 into apache:performance-tuning-2.7.x Jun 3, 2019
@carryxyh
Copy link
Member

carryxyh commented Jun 3, 2019

Ok, agree with your operation.
:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants