Jul 3 16:26:47 users999 kernel: Memory cgroup out of memory: Kill process 1822 (perl) score 1000 or sacrifice child
Jul 3 16:26:47 users999 kernel: Killed process 1822, UID 0, (perl) total-vm:153088kB, anon-rss:32596kB, file-rss:52kB
Jul 3 16:27:24 users999 kernel: perl invoked oom-killer: gfp_mask=0xd0, order=0, oom_adj=0, oom_score_adj=0
Jul 3 16:27:24 users999 kernel: perl cpuset=ruby-namahage-1 mems_allowed=0
Jul 3 16:27:24 users999 kernel: Pid: 1837, comm: perl Not tainted 2.6.32-220.13.1.el6.x86_64 #1
Jul 3 16:27:24 users999 kernel: Call Trace:
Jul 3 16:27:24 users999 kernel: [<ffffffff810c2e21>] ? cpuset_print_task_mems_allowed+0x91/0xb0
Jul 3 16:27:24 users999 kernel: [<ffffffff81113b80>] ? dump_header+0x90/0x1b0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
=head1 Examples | |
$ tail -f access_log | perl colorize.pl | |
$ plackup app.psgi 2>&1 | perl colorize.pl | |
=cut | |
use strict; |
;;; nasm -f macho mac-nasm.S -o hoge
;;; gcc -Wall -Werror -m32 -mmacosx -version-min=10.6 -o hello hoge
;;; gcc -Wall -Werror -arch i386 -mmacosx -version-min=10.6 -o hello hoge
section .data
msg: db "hello,world", 10
len: equ $-msg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
** mod_mod_handler_time.c -- Apache sample mod_handler_time module | |
** [Autogenerated via ``apxs -n mod_handler_time -g''] | |
** | |
** To play with this sample module first compile it into a | |
** DSO file and install it into Apache's modules directory | |
** by running: | |
** | |
** $ apxs -c -i mod_mod_handler_time.c | |
** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <sys/quota.h> | |
#include <xfs/xfs.h> | |
#include <xfs/xqm.h> | |
int main(int argc, const char *argv[]) { | |
fs_disk_quota_t d; |
$ make
make -C /usr/src/kernels/2.6.9-103.EL-x86_64 M=/home/hiroya/tpe-lkm modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-103.EL-x86_64'
CC [M] /home/hiroya/tpe-lkm/core.o
In file included from /home/hiroya/tpe-lkm/core.c:2:
/home/hiroya/tpe-lkm/module.h:59: error: syntax error before "bool"
/home/hiroya/tpe-lkm/module.h:59: warning: no semicolon at end of struct or union
/home/hiroya/tpe-lkm/module.h:63: error: syntax error before "found"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'sinatra' | |
get '/' do | |
sprintf "%d\n", request.port | |
end |
@{スコープ}
-
ngx.shared.*
-
@複数プロセス
-
すべてのリクエストで共有
-
ワーカー同士で共有可能
-
memcached に似た expire 付きの CRUD で扱う。文字列、数値のみ
-
_G.*
-
@1プロセス
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "httpd.h" | |
#include "http_config.h" | |
#include "http_protocol.h" | |
#include "ap_config.h" | |
#include "apr_strings.h" | |
#include "http_request.h" | |
static int reverse_proxy_handler(request_rec *r) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 1919; | |
server_name _; | |
location / { | |
error_page 500 @fallback; | |
set $stash ""; | |
content_by_lua ' |