• Stars
    star
    173
  • Rank 220,124 (Top 5 %)
  • Language
    Go
  • License
    Other
  • Created almost 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

auto adjust your GOGC value

GOGCTuner

idea is from this article How We Saved 70K Cores Across 30 Mission-Critical Services (Large-Scale, Semi-Automated Go GC Tuning @Uber)

How to use this lib?

just call NewTuner when initializing app :

func initProcess() {
	var (
		inCgroup = true
		percent = 70
	)
	go NewTuner(inCgroup, percent)
}

Current Status

Go 1.19 adds a soft memory limit which changes its pacer algorithm and scvg behavior, we'll see what go team will provide in the new version. Maybe this lib can be deprecated in Go 1.19.

official guide for gogc and memory limit params:

https://tip.golang.org/doc/gc-guide

More Repositories

1

golang-notes

Go source code analysis(zh-cn)
HTML
3,761
star
2

elasticsql

convert sql to elasticsearch DSL in golang(go)
Go
1,091
star
3

asmshare

some ideas about asm && plan9 asm video: https://www.bilibili.com/video/BV1Xb411J7Yk
349
star
4

asm-cli-rust

interative assembly shell written in rust
Rust
255
star
5

supermonkey

Patch all Go functions for testing
Go
250
star
6

asm-cli

Interactive shell of assembly language(X86/X64) based on unicorn and keystone
Go
250
star
7

leetcode-go

leetcode in golang
Go
81
star
8

awesome-gc

A curated list of awesome garbage collection resources
67
star
9

llp-trans

Low Level Progarmming Chinese translation(WIP)
65
star
10

goroutineid

extract goroutine id to the out world although it's dangerous and useless.
Go
56
star
11

leetcode-rust

leetcode in rust
Rust
51
star
12

gomod-conflict-detect

detect dependencies which may conflict
Go
49
star
13

elastic-rs

comvert bool expression to elasticsearch DSL in rust
Rust
43
star
14

eco2020

for English learning, 看不到图片(github usercontent 部分被 block)请梯子,有需要可以 fork,哪天被 DMCA 了也不奇怪
35
star
15

go-ddd

Go
22
star
16

how-ai-will-change-our-work

18
star
17

iapp

《程序员的算法趣题》Go 解法(WIP)
Go
18
star
18

whisper-tts

Go
17
star
19

parser_example

various parser demos
Rust
15
star
20

test

learn and test examples
HTML
15
star
21

perf_workshop_2021

Go
13
star
22

bottlenecks-go

Cases for high concurrency go programs
12
star
23

asciidoc-rs

asciidoc parser in pest(WIP)
Rust
10
star
24

knowledge-index

knowledge index for my career
10
star
25

cch123.github.io

personal share
HTML
8
star
26

blog_comment

comments of xargin.com
8
star
27

rust-book-code-collect

collect code of various rust books
Rust
8
star
28

cch123

6
star
29

collins-wordlist

collins dict word list
5
star
30

threadkill

Go
2
star
31

stackdiff

2
star
32

nginx-annotated

C
2
star
33

cmake-learn

CMake
2
star
34

structs

Some useful structs implemented by go including skiplist...
Go
1
star
35

monkey

hand write parser test
Go
1
star
36

gomodexp

go mod experiments
Go
1
star
37

mosn_easy_configure

Vue
1
star
38

woboq-lua-5.0

lua code online preview
HTML
1
star
39

wrkrs

modern wrk
Rust
1
star
40

schema-parser

convert between pb, thrift, avro or yaml schema
1
star
41

voice-clone-demo

Python
1
star
42

crawl_log

Go
1
star
43

woboq-script

CMake
1
star
44

hazama

personal web framework
1
star
45

algos-svg

record the process of writing algorithms
1
star
46

paper-translation-project

1
star
47

pdf-url-remover

remove link/url in pdf files
Go
1
star
48

woboq-nginx-1.13

nginx 1.13 code online preview
HTML
1
star
49

woboq-redis-3.0

redis 3.0 code online preview
HTML
1
star
50

pest_gen

generate basic layout of pest parsers(WIP)
Rust
1
star