- 1
- 2
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
i=1 | |
for i in `seq 0 100000` | |
do | |
mysql -u root testdb <<EOF | |
insert into user (id) values ($i); | |
delete from user where id = $i; | |
EOF | |
done |
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
n = 1000000; | |
for (var i = 1; i<= n ; i++) { | |
var user = { | |
id : i, | |
name : "nanashi_" + i , | |
created_on : new Date() | |
}; | |
db.collection.save(user); | |
} |
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
bson_to_text(Xs) when is_tuple(Xs) -> | |
Xs1 = tup2list(Xs), | |
lists:flatten(["{", | |
droplast(lists:foldr(fun(X,Y) -> | |
[X,$,|Y] | |
end, | |
"", | |
bson_to_text_aux(Xs1,tl(Xs1)))), | |
"}"]); | |
bson_to_text(Xs) when is_list(Xs) -> |
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
我々は1が何故このようなスレッドを立てたのかという | |
疑問を解決するため、1の故郷である群馬県に向かった。 | |
「まだ日本にこんなところがあったのか…」 | |
思わず口に出てしまった言葉を同行した上司に失礼だと咎められた。 | |
小人が住むような小さな家、ツギハギだらけの服を着る農夫たち、 | |
そして彼らは余所者で身なりのいい我々を監視する様に見詰めている。 | |
高度成長だの、神武景気だの、オリンピックだので浮かれていた | |
我々は改めて農村の現状を噛み締めていた。 |
#er_tarが便利 http://www.erlang.org/doc/man/erl_tar.html
TarFile = "test.gz",
FileList = ["a.txt","b.txt"],
erl_tar:create(TarFile,FileList,[compressed]),
$ erlc file.erl && erl -pz . -s file func
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
```` | |
vim /etc/security/limits.conf | |
```` | |
```` | |
root soft nofile 44769 | |
root hard nofile 44769 | |
```` | |
参考 | |
http://d.hatena.ne.jp/Fiore/20080229/1204277085 |
/proc/vmstatの項目の説明
項目 | 説明 |
---|---|
nr_anon_pages | ページ数 |
nr_mapped | メモリマップページ数 |
nr_file_pages | ファイル ページ数 |
nr_slab | スラブページ数 |
nr_page_table_pages | ページ数 |
nr_dirty | ダーティページ数 |
OlderNewer