ref http://yapcasia.org/2014/photos
- PCばかり見るのはやめましょう。
- 画面ばかり見上げるのはやめましょう。
- 良い笑顔を見せましょう。
- 身振り手振りを時折入れましょう
- もし視界にカメラマンの人が見えたら、あちこち歩き回るのは一瞬やめてバックパネルの前に陣取りましょう
- もし視界にカメラマンの人が見えたら、そちらの方向に体を向けてあげましょう
| # At this point I'm just inching towards sending a request to the upstream. | |
| # So first goal is to make http1client_connect() to succeed... | |
| # Instead I get this. | |
| # I wonder why chunked.on_setup_ostream is being called twice, thus (I believe | |
| # is causing the assert to fail) | |
| # Note: upstream server is NOT running, so I'm expecting a failure to connect. | |
| shoebill% ./h2o | |
| Creating filter of size 40 | |
| inserted new filter at 1 |
| ADDR=$(docker inspect $CONTAINER_NAME | perl -ne '/"IPAddress": "([^"]+)"/ && print "$1\n"') | |
| echo "host-record=$CONTAINER_NAME,$ADDR" > /etc/dnsmasq.d/docker-$CONTAINER_NAME | |
| service dnsmasq restart |
ref http://yapcasia.org/2014/photos
| 140725 09:41:39 ha_queue: /usr/local/src/mysql-5.6.19/storage/q4m/src/ha_queue.cc:2008: starting table compaction: ./XXXXXXX/queue_XXXXXXXX (begin: 491349793, end: 491349793, rows: 18446744073709551613) | |
| 140725 09:41:40 ha_queue: /usr/local/src/mysql-5.6.19/storage/q4m/src/ha_queue.cc:2134: finished table compaction: ./XXXXXXX/queue_XXXXXXXX (begin: 4096, end: 4096, rows: 0) | |
| mysqld: /usr/local/src/mysql-5.6.19/storage/q4m/src/dllist.h:38: T* dllist<T, Cnt>::detach(T*&, size_t) [with T = queue_connection_t, long unsigned int Cnt = 1ul]: Assertion `_prev[idx] != __null' failed. | |
| 2014-07-25 09:41:40 4645 [ERROR] Got error 145 when reading table './XXXXXXX/queue_XXXXXXXX' | |
| 00:41:40 UTC - mysqld got signal 6 ; | |
| This could be because you hit a bug. It is also possible that this binary | |
| or one of the libraries it was linked against is corrupt, improperly built, | |
| or misconfigured. This error can also be caused by malfunctioning hardware. | |
| We will try our best to scrape up some info that will hopefully help | |
| diagnose the prob |
| shoebill% go test -v . | |
| === RUN Test_appliance | |
| --- PASS: Test_appliance (0.00 seconds) | |
| === RUN Test_blank | |
| --- PASS: Test_blank (0.00 seconds) | |
| === RUN Test_crawler_google | |
| --- PASS: Test_crawler_google (0.00 seconds) | |
| === RUN Test_crawler_nonmajor | |
| --- PASS: Test_crawler_nonmajor (0.00 seconds) | |
| === RUN Test_crawler |
| struct passwd { | |
| char *pw_name; /* user name */ | |
| char *pw_passwd; /* encrypted password */ | |
| uid_t pw_uid; /* user uid */ | |
| gid_t pw_gid; /* user gid */ | |
| __darwin_time_t pw_change; /* password change time */ | |
| char *pw_class; /* user access class */ | |
| char *pw_gecos; /* Honeywell login info */ | |
| char *pw_dir; /* home directory */ | |
| char *pw_shell; /* default shell */ |
| # DockerでCPANインストール祭りを繰り返してたらいい加減cpanmとかに並列処理が欲しくなってきた。 | |
| # で、とりあえずgoでラッパーを作って、 | |
| # 1) 先にMETA.yamlを読み込み、依存関係を解析 | |
| # 2) キューに突っ込んで goroutineでそれぞれcpanmを起動してインストール | |
| # という簡単な処理をしてみてどういう差が出るかやってみた | |
| # | |
| # 試すには go install github.com/lestrrat/go-cpan-maybe-faster/cli/go-cpan | |
| # https://github.com/lestrrat/go-cpan-maybe-faster | |
| $ time go-cpan --notest --local-lib-contained=local Moose |
| I disabled stat() on the cache file if the same file has been stat within the last second, and voila, go-xslate is FASTER! | |
| # p5-xslate (cache DISABLED) | |
| iter (10) | |
| * Elapsed: 0.058350 seconds | |
| * Secs per iter: 0.005835 secs/iter | |
| * Iter per sec: 171.379606 iter/sec | |
| iter (100) | |
| * Elapsed: 0.132784 seconds | |
| * Secs per iter: 0.001328 secs/iter |
| (pprof) top10 | |
| Total: 665 samples | |
| 417 62.7% 62.7% 425 63.9% syscall.Syscall | |
| 26 3.9% 66.6% 59 8.9% runtime.mallocgc | |
| 16 2.4% 69.0% 32 4.8% syscall.ByteSliceFromString | |
| 15 2.3% 71.3% 15 2.3% etext | |
| 15 2.3% 73.5% 15 2.3% scanblock | |
| 10 1.5% 75.0% 10 1.5% sweepspan | |
| 7 1.1% 76.1% 7 1.1% runtime.markallocated | |
| 6 0.9% 77.0% 110 16.5% github.com/lestrrat/go-xslate/loader.(*CachedByteCodeLoader).Load |