Skip to content

Instantly share code, notes, and snippets.

@frankmullerl
frankmullerl / gist:d9e8379b8250d84c5b170577c2ad3b89
Last active January 7, 2020 16:59
LCNT output continued (macOS): switching from prim_file:sendfile/8 to file:pread + gen_tcp:send/2
> erlang:system_info(system_version).
"Erlang/OTP 22 [erts-10.6] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:144] [hipe] [lock-counting] [dtrace]\n"
> erlang:statistics(reductions).
{165925199,165925199}
> length(erlang:processes()).
135
> lcnt:rt_opt({copy_save, true}),
@frankmullerl
frankmullerl / gist:7fb9470e22869312d97011c0faf0046b
Created January 2, 2020 23:37
LCNT output continued (macOS)
> erlang:system_info(system_version).
"Erlang/OTP 22 [erts-10.6] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:144] [hipe] [lock-counting] [dtrace]\n"
> erlang:statistics(reductions).
{165925199,165925199}
> length(erlang:processes()).
135
> lcnt:rt_opt({copy_save, true}),
> erlang:system_info(system_version).
"Erlang/OTP 22 [erts-10.6] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:144] [hipe] [lock-counting] [dtrace]\n"
> erlang:statistics(reductions).
{165925199,165925199}
> length(erlang:processes()).
135
> lcnt:rt_opt({copy_save, true}),