Skip to content

Instantly share code, notes, and snippets.

View lpgauth's full-sized avatar
😄
busy building cool stuff

Louis-Philippe Gauthier lpgauth

😄
busy building cool stuff
View GitHub Profile
Client PoolSize Concurency Requests/s Error %
=================================================
buoy 8 32 117252 0.0
buoy 8 64 185473 0.0
buoy 8 128 299130 0.0
buoy 8 512 244706 0.0
buoy 8 2048 181268 0.4
buoy 8 4096 178915 4.0
buoy 16 32 129619 0.0
buoy 16 64 204401 0.0
@lpgauth
lpgauth / gist:2b9f1d32297889c35f1c9349d95ec774
Created March 24, 2017 16:38
httpc_bench results for buoy
Client PoolSize Concurency Requests/s Error %
=================================================
buoy 32 64 208813 0.0
buoy 32 128 314645 0.0
buoy 32 512 666691 0.0
buoy 32 2048 468397 0.3
buoy 64 64 187446 0.0
buoy 64 128 256443 0.0
buoy 64 512 645944 0.0
buoy 64 2048 769679 0.3
Client PoolSize Concurency Requests/s Error %
=================================================
buoy 8 32 119643 0.0
buoy 8 64 173753 0.0
buoy 8 128 228673 0.0
buoy 8 512 191683 0.0
buoy 8 2048 138917 1.3
buoy 16 32 136448 0.0
buoy 16 64 206492 0.0
buoy 16 128 297430 0.0
@lpgauth
lpgauth / gist:d7c2ee12dad0ef6c67df78ab35aae855
Created March 8, 2017 17:24
traps: 7_scheduler[12067] general protection ip:570101 sp:7f0041ff9620 error:0 in beam.smp[400000+2e2000]
#0 I_lg (xl=2181429509662, x=0x7ef9d52e0a98) at beam/big.c:1447
#1 big_decimal_estimate (x=x@entry=139611488520850) at beam/big.c:1722
#2 0x00000000004df244 in print_term (dcount=<synthetic pointer>, obj=139611488520850, arg=0x7f0041ff99ac,
fn=0x66a450 <erts_write_fd>) at beam/erl_printf_term.c:367
#3 erts_printf_term (fn=0x66a450 <erts_write_fd>, arg=0x7f0041ff99ac, term=<optimized out>, precision=99999)
at beam/erl_printf_term.c:648
#4 0x0000000000668718 in erts_printf_format (fn=<optimized out>, arg=arg@entry=0x7f0041ff99ac,
fmt=fmt@entry=0x68c0d0 "=timer:%T\nMessage: %T\nTime left: %b64d\n", ap=ap@entry=0x7f0041ff9860)
at common/erl_printf_format.c:834
Running benchmark...
Client PoolSize Concurency Requests/s Error %
=================================================
buoy 8 32 123174 0.0
buoy 8 64 178570 0.0
buoy 8 128 242208 0.0
buoy 8 512 208121 0.0
buoy 8 2048 162814 0.9
buoy 16 32 135418 0.0
@lpgauth
lpgauth / httpc_bench_results_204800
Last active March 7, 2017 16:45
time ./bin/run.sh
Running benchmark...
Client PoolSize Concurency Requests/s Error %
=================================================
buoy 8 32 117000 0.0
buoy 8 64 188048 0.0
buoy 8 128 241843 0.0
buoy 8 512 212870 0.0
buoy 8 2048 170639 0.7
buoy 16 32 140524 0.0
6> buoy_bench:request().
name: buoy, percentile: [{50,845},
{75,1150},
{90,1468},
{95,1713},
{99,2329},
{999,4693}]
name: dlhttpc, percentile: [{50,2539},
{75,5435},
{90,10993},
-module(flare_timing).
-export([
bench/0
]).
%% public
bench() ->
bench("random_1", fun () -> random_1(1000000) end, 1000000, 50),
bench("random_2", fun () -> random_2(1000000) end, 1000000, 50),
From 692a6e679412b3553aaf2aa9ffba33de6ca21a4e Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Tue, 23 Feb 2016 11:24:12 +0100
Subject: [PATCH] erts: Fix install of suspend handler
This commit makes sure to setup the suspend handler
to matter what +B option is given at the command line.
---
erts/emulator/beam/break.c | 4 ++--
erts/emulator/beam/erl_init.c | 1 +
lpgauth@h006 ~ $ ulimit -v 1500000
lpgauth@h006 ~ $ strace -f erl -noshell -eval 'Pid = spawn(fun () -> timer:sleep(10000) end), [spawn(fun () -> Pid ! [["abcdefghijklmnopqrstuvyxz", I, J] || J <- lists:seq(1,100000)] end) || I <- lists:seq(1,1000)].' -detached
...
[pid 8696] mmap(NULL, 1576960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
[pid 8696] mmap(NULL, 2101248, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
[pid 8696] mprotect(0x7f1c18008000, 2076672, PROT_READ|PROT_WRITE) = 0
[pid 8696] mmap(NULL, 2547712, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
[pid 8696] mmap(NULL, 3149824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)