Skip to content

Instantly share code, notes, and snippets.

View ddwolf's full-sized avatar

dxtao29 ddwolf

  • shenzhen
View GitHub Profile
@ddwolf
ddwolf / mem_not_released.cpp
Created November 12, 2021 03:16
using jemalloc 5.2.1 and memory seems not being released to the operation system
// COMPILE: g++ a.cpp -g -Wall -std=c++11 -I./jemalloc/include/ -ljemalloc -L./jemalloc/lib/
// jemalloc version: 5.2.1
// TEST:
// $ export MALLOC_CONF="prof:true,prof_active:true,prof_prefix:jeprof.out,stats_print:true,muzzy_decay_ms:3000,dirty_decay_ms:3000"
// $ cat > test.sh << EOF
// > a.out &
// > top -p $! | grep $USER
// EOF
// $ sh test.sh
/**
@ddwolf
ddwolf / polling.log
Created June 30, 2017 18:54
my polling log
`Started on Jun 30, 2017 11:48:47 AM
Started by event from 10.124.207.58 ⇒ http://jenkins-server:8080/github-webhook/ on Fri Jun 30 11:48:47 PDT 2017
Polling SCM changes on master
Using strategy: Default
[poll] Last Built Revision: Revision 82727845qrec3 (origin/branch4)
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repositories
> git config remote.origin.url http://my-git-server/todd/hello-world.git # timeout=10
Fetching upstream changes from http://my-git-server/todd/hello-world.git
> git --version # timeout=10