Skip to content

Instantly share code, notes, and snippets.

@phobos182
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phobos182/83cf1b744b59af94dd6a to your computer and use it in GitHub Desktop.
Save phobos182/83cf1b744b59af94dd6a to your computer and use it in GitHub Desktop.
Statistics for BinaryTreeDictionary:
------------------------------------
Total Free Space: 542384916
Max Chunk Size: 337614532
Number of Blocks: 58933
Av. Block Size: 9203
Tree Height: 124
Before GC:
Statistics for BinaryTreeDictionary:
------------------------------------
Total Free Space: 3297792
Max Chunk Size: 3297792
Number of Blocks: 1
Av. Block Size: 3297792
Tree Height: 1
138323.261: [ParNew
Desired survivor size 26836992 bytes, new threshold 4 (max 4)
- age 1: 2206232 bytes, 2206232 total
- age 2: 371632 bytes, 2577864 total
- age 3: 426416 bytes, 3004280 total
- age 4: 561680 bytes, 3565960 total
: 430289K->4434K(471872K), 0.0270280 secs] 26103784K->25681405K(30667584K)After GC:
Statistics for BinaryTreeDictionary:
------------------------------------
Total Free Space: 541952273
Max Chunk Size: 337614532
Number of Blocks: 58930
Av. Block Size: 9196
Tree Height: 123
After GC:
Statistics for BinaryTreeDictionary:
------------------------------------
Total Free Space: 3297792
Max Chunk Size: 3297792
Number of Blocks: 1
Av. Block Size: 3297792
Tree Height: 1
, 0.0273530 secs] [Times: user=0.40 sys=0.00, real=0.03 secs]
CMS: abort preclean due to time 2015-02-22T11:08:05.875+0000: 138324.866: [CMS-concurrent-abortable-preclean: 4.979/5.042 secs] [Times: user=8.30 sys=0.24, real=5.04 secs]
2015-02-22T16:46:15.254+0000: 158614.246: [GC Before GC:
Statistics for BinaryTreeDictionary:
------------------------------------
Total Free Space: 1900367996
Max Chunk Size: 337614532
Number of Blocks: 274663
Av. Block Size: 6918
Tree Height: 159
Before GC:
Statistics for BinaryTreeDictionary:
------------------------------------
Total Free Space: 3322368
Max Chunk Size: 3322368
Number of Blocks: 1
Av. Block Size: 3322368
Tree Height: 1
158614.249: [ParNew
Desired survivor size 26836992 bytes, new threshold 4 (max 4)
- age 1: 1940824 bytes, 1940824 total
- age 2: 1560536 bytes, 3501360 total
- age 3: 1298344 bytes, 4799704 total
- age 4: 1526128 bytes, 6325832 total
: 430150K->9605K(471872K), 0.0313340 secs] 15139573K->14722203K(30667584K)After GC:
Statistics for BinaryTreeDictionary:
------------------------------------
Total Free Space: 1899973204
Max Chunk Size: 337614532
Number of Blocks: 274603
Av. Block Size: 6918
Tree Height: 159
After GC:
Statistics for BinaryTreeDictionary:
------------------------------------
Total Free Space: 3322368
Max Chunk Size: 3322368
Number of Blocks: 1
Av. Block Size: 3322368
Tree Height: 1
, 5.1768270 secs] [Times: user=0.39 sys=0.00, real=5.18 secs]
2015-02-22T16:46:48.471+0000: 158647.462: [GC Before GC:
Statistics for BinaryTreeDictionary:
------------------------------------
Total Free Space: 1897098753
Max Chunk Size: 337614532
Number of Blocks: 273583
Av. Block Size: 6934
Tree Height: 159
Before GC:
Statistics for BinaryTreeDictionary:
------------------------------------
Total Free Space: 3322368
Max Chunk Size: 3322368
Number of Blocks: 1
Av. Block Size: 3322368
Tree Height: 1
158652.964: [ParNew
Desired survivor size 26836992 bytes, new threshold 4 (max 4)
- age 1: 2090072 bytes, 2090072 total
- age 2: 1547712 bytes, 3637784 total
- age 3: 4189456 bytes, 7827240 total
- age 4: 1383752 bytes, 9210992 total
: 432710K->12308K(471872K), 0.0294230 secs] 15169772K->14751155K(30667584K)After GC:
Statistics for BinaryTreeDictionary:
------------------------------------
Total Free Space: 1896915332
Max Chunk Size: 337614532
Number of Blocks: 273440
Av. Block Size: 6937
Tree Height: 159
After GC:
Statistics for BinaryTreeDictionary:
------------------------------------
Total Free Space: 3322368
Max Chunk Size: 3322368
Number of Blocks: 1
Av. Block Size: 3322368
Tree Height: 1
, 0.0357520 secs] [Times: user=0.42 sys=0.00, real=5.54 secs]
instance type: i2.4xlarge
Kernel: Linux 3.2.0-76-virtual #111-Ubuntu SMP Tue Jan 13 22:33:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
Note: No swap is configured on these machines. Even though vm.swappiness = 0
echo never > /sys/kernel/mm/transparent_hugepage/enabled
echo never > /sys/kernel/mm/transparent_hugepage/defrag
sysctl -w vm.dirty_expire_centisecs=12000
sysctl -w vm.dirty_writeback_centisecs=500
sysctl -w vm.dirty_background_ratio=5
sysctl -w vm.dirty_ratio=80
echo 2 > /sys/block/xvd{b,c,d,e}/queue/rq_affinity
echo noop > /sys/block/xvd{b,c,d,e}/queue/scheduler
echo 256 > /sys/block/xvd{b,c,d,e}/queue/nr_requests
echo 256 > /sys/block/xvd{b,c,d,e}/queue/read_ahead_kb
Applied some recommendations found here.
http://www.slideshare.net/cuonghuutran/gc-andpagescanattacksbylinux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment