07:19:00
2018-05-02 07:07:13 えすかるごの投稿 Escargot32@mstdn.jp
icon

このアカウントは、notestockで公開設定になっていません。

07:19:08
icon

それそれ

08:33:39
icon

Improve your Ruby application's memory usage and performance with jemalloc https://www.levups.com/en/blog/2017/optimize_ruby_memory_usage_jemalloc_heroku_scalingo.ht

08:37:53
icon

[AV] Found ["ffmpeg"], using: Ffmpeg
[AV] Running command: ffmpeg -i ...
WARN: Cocaine::CommandNotFoundError: Cocaine::CommandNotFoundError
WARN: /app/vendor/bundle/ruby/2.5.0/gems/cocaine-0.5.8/lib/cocaine/command_line.rb:82:in `run'
/app/vendor/bundle/ruby/2.5.0/gems/av-0.9.0/lib/av.rb:30:in `run'

お?

08:39:57
icon

$ ffmpeg
ffmpeg: error while loading shared libraries: libxcb-shm.so.0: cannot open shared object file: No such file or directory

むー

08:42:39
icon

jemallocにする前から出てるな

08:45:59
icon

heroku-18だとランタイムのstackにlibxcb-shm0が入ってないんだ

08:49:54
icon

-----> Detecting rake tasks
sh: 2: Syntax error: Unterminated quoted string

むー?

08:55:35
icon

$ heroku builds:cache:purge
したら
-----> Updating apt caches for Datadog Agent
W: GPG error: http://apt.datadoghq.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4B4593018387EEAF
E: The repository 'http://apt.datadoghq.com stable Release' is not signed.
しまったなあw

08:57:24
icon

だめー。しばらくはずそう

09:46:32
2018-05-02 09:23:38 koshian@mstdn.jpの投稿 koshian@mstdn.jp
icon

このアカウントは、notestockで公開設定になっていません。

09:50:23
icon

$ ffmpeg
ffmpeg: error while loading shared libraries: libgdk_pixbuf-2.0.so.0: cannot open shared object file: No such file or directory

まだかーw

10:06:33
icon

$ ldd `which ffmpeg` | grep 'not found' | sort -u
libthai.so.0 => not found

あとひといき

10:07:46
icon

タイ語のためのライブラリがあるん

10:38:41
icon

$ ffmpeg
ffmpeg version 3.4.2-2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu2)
configuration: --prefix=/usr --extra-version=2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig…
やた

10:39:31
2018-05-02 10:10:25 koshian@mstdn.jpの投稿 koshian@mstdn.jp
icon

このアカウントは、notestockで公開設定になっていません。

10:47:52
icon

ちくわぶも聞こえた!

10:47:56
2018-05-02 03:27:47 🔰まめも🔰の投稿 mamemomonga@mstdn.jp
icon

このアカウントは、notestockで公開設定になっていません。

11:59:33
icon

Tokyo is 171 ms away today.

12:17:40
icon

jemalloc使い始めて(カーソルの位置)からメモリの使用量が減ったような気がするけどあと何時間か待たないとだね。いっしょにDatadogのAgentの利用を止めたのでちょっと不正確かもしれない。

Attach image
13:31:23
2018-05-02 13:30:25 unaristの投稿 unarist@mstdn.maud.io
icon

このアカウントは、notestockで公開設定になっていません。

13:32:53
2018-05-02 13:15:46 Satoshi Kojima / 小嶋智の投稿 skoji@bookwor.ms
icon

このアカウントは、notestockで公開設定になっていません。

13:47:56
icon

jemalloc今のところいい感じ。jemalloc前の24時間稼動後のメモリ使用量は803MBほどでした。

Attach image
15:48:29
icon

vimのコマンドのgフラグをどこに書くべきかいつも忘れるんだよね。

16:11:46
icon

jemalloc使うとメモリの使用量が740MBくらい(左端24時間前)から580MBくらい(右端、18:20くらいからjemalloc)になったよ!けっこういいよ!

このdynoではPumaが1 worker x 2スレッドとSidekiqが2スレッドで動いてます。

Attach image
16:12:00
icon

あー。Redisに効くかどうかはまた別のお話よね。

16:16:35
icon

jemallocでメモリ圧縮できた分Sidekiqのスレッド増やすのかな(スワップには入ってるんだやめとけw)

16:21:46
icon

https://nanimona.in ぽきにいり

19:52:31
icon

jemalloc (右半分)すごいなあ。メモリ使用量(上)は800MB強から550MB強に減って、レスポンス時間は変わらない

Attach image
20:06:56
2018-05-02 20:03:38 あっきぃの投稿 akkiesoft@social.mikutter.hachune.net
icon

メトロ1000の側面方向幕が変わる時も幕回しエフェクトあるのか!!

20:29:38
icon

heroku-18でffmpegが起動できるようにMastodonのAptfileにいっぱいパッケージを追加したけどheroku-16でもちゃんと動くようだ

https://github.com/zunda/mastodon/compare/59d3de9fd087255857633a0561ab9d8d458126a1...c7572

heroku-18がGAになったらプルリクエスト作らないとね