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

Disable automaxprocs log #13800

Merged
merged 4 commits into from
Nov 29, 2019
Merged

Conversation

tennix
Copy link
Member

@tennix tennix commented Nov 28, 2019

Signed-off-by: tennix ztennix@gmail.com

What problem does this PR solve?

After introducing automaxprocs in #13340, now tidb-server will always log a message 2019/11/28 14:18:22 maxprocs: Leaving GOMAXPROCS=4: CPU quota undefined at startup which is annoying. This PR resolves this problem.

What is changed and how it works?

According to this uber-go/automaxprocs#18 and uber-go/automaxprocs#19. We can disable this annoying log by importing go.uber.org/automaxprocs/maxprocs and set the logger to a noplog.

Check List

Tests

  • Manual test (add detailed scripts or steps below)

Now the annoying log disappears whenever runs tidb-server. And the GOMAXPROCS is still set automatically.

Code changes

None

Side effects

None

Related changes

  • Need to cherry-pick to the release branch

Release note

  • Removing the annoying automaxprocs log.

Signed-off-by: tennix <ztennix@gmail.com>
@mahjonp
Copy link
Contributor

mahjonp commented Nov 28, 2019

/run-check_dev

Copy link
Contributor

@XuHuaiyu XuHuaiyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mahjonp
Copy link
Contributor

mahjonp commented Nov 28, 2019

/bench +tpch

workload:
  queries: 10.sql
  repeat_time: 5

@sre-bot
Copy link
Contributor

sre-bot commented Nov 28, 2019

Benchmark Report

Run TPC-H 10G Performance Test on VMs

@@                               Benchmark Diff                               @@
================================================================================
--- tidb: 18fbe2d483dbbf8bdea4735e579d7914ebc8ac42
+++ tidb: f20fa88ce4b1c298df4756d2c1589737278299e7
tikv: 61af99da5a3760b4a4ae8c432e1b7953e10531c2
pd: be73a29742cf3cc8d7cc401e169372254ca12bcb
================================================================================
10.sql duration: 9882.88 ms ± 3.15% (std=224.72) delta: 0.88% (p=0.313)

Signed-off-by: tennix <ztennix@gmail.com>
@codecov
Copy link

codecov bot commented Nov 29, 2019

Codecov Report

Merging #13800 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #13800   +/-   ##
===========================================
  Coverage   80.1665%   80.1665%           
===========================================
  Files           474        474           
  Lines        117075     117075           
===========================================
  Hits          93855      93855           
  Misses        15820      15820           
  Partials       7400       7400

Copy link
Contributor

@mahjonp mahjonp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jackysp jackysp added the status/can-merge Indicates a PR has been approved by a committer. label Nov 29, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Nov 29, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Nov 29, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Nov 29, 2019

@tennix merge failed.

@ngaut ngaut merged commit 3d66e9b into pingcap:master Nov 29, 2019
XiaTianliang pushed a commit to XiaTianliang/tidb that referenced this pull request Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/can-merge Indicates a PR has been approved by a committer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants