Entries from 2009-01-01 to 1 year
å ã®ã¨ã³ã㪠(ã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ãµã¼ããè¤æ°å°æ§æã¨ã2010年代ã«ã¯æµè¡ããªã) ã§ã¯ããã ã¢ããã«ç ½ã£ãæ¸ãæ¹ããããã©ãèªåãããããã¦ã³ã§ã©ããããµãã«æãã¦ãããã«ã¤ãã¦ã以ä¸ãããã¾ã§ãç§è¦ã§ãããããããããæ¥çã¯1990年代å¾åâ¦
ã¿ã¤ãã«ã¯ç ½ãå ¥ã£ã¦ã¾ãããä»®ã«åçãã¼ã¸ãçæããã®ã«ãããæéã1ç§ããã®ãã¡ãã¼ã¿ãã¼ã¹ãmemcachedçãªã¢ã¼ããµã¼ãã¸ã®åãåããæéãé¤ãããCPUã®å¦çæéã0.1ç§ã¨ãããã¾ãããã¼ã¯ã®ãªã¯ã¨ã¹ãå¦çéã¯ãå¹³åã®ï¼åã¨ãããããããã¨â¦
Tritonn ã®ãããããã¯ã¢ããç°å¢ãæ§ç¯ãããã¨æã£ã¦èª¿æ»ãçµè«ããè¨ã㨠漢(ãªãã³)ã®ã³ã³ãã¥ã¼ã¿é: MySQLããã¯ã¢ããé ä¸æ±ºæ¦ï¼ï¼ LVMã¹ãããã·ã§ãã vs InnoDB Hot Backup ã®ãMyISAMãã¹ãããã·ã§ããã§ããã¯ã¢ãããã§ããããã確èªãããâ¦
Apache ã®è¨å®ãã¡ã¤ã«ããã AddType ã Plack ã§ã©ãããã®ããPlack::App::File (ãããã¯ãããã©ãããã¦ãã Plack::Middleware::Static) ã¯ãæ¡å¼µåãã Content-Type ã決å®ããã®ã« MIME::Types ã使ã£ã¦ãã thanks to miyagawa-sanããªã®ã§ããã¨â¦
Plack::Server::Standalone ç³»ã使ã£ã¦ã¦ã§ãã¢ããªã±ã¼ã·ã§ã³éçºã¨éç¨ã楽ã«ãªã話 - JPerl Advent Calendar 2009 Perl ã®ãã¼ã¬ãã«ã¨ã©ã¼å¦ç (ããã㯠Errno.pm ã®ã¹ã¹ã¡) - JPerl Advent Calendar 2009 ãããã«ä»å¹´ã¯ãã以ä¸æ¸ããªãã¨æããã©ã£â¦
$ echo ãã座 | mecab ã æåè©,*,*,*,*,*,ã,ã¦,㦠ã座 åè©,ä¸è¬,*,*,*,*,ã座,ãªã¶,ãªã¶ EOS $ ãã®çºæ³ã¯ãªãã£ã...
tmpdirãtmpfsã«ãã¦ã¦ããLOCK_openã2ç§éæ¡ã£ãã¾ã¾ã¨ãorz... innodb_file_per_tableããªãã«ãããããã£ã¨çç¶ãæ¹åããããªããç°å¢ã¯ MySQL 5.1.41 (linux, x86_64, innodb_plugin)åè: Slow DROP TABLE - Percona Database Performance Blog (thaâ¦
Perlçã®LLã§ã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ãµã¼ããæ¸ãã¦ããã¨ãæ®éã¯ãã«ãããã»ã¹ã¢ãã« (apache ãªã prefork ã¨ã) ã§éç¨ãããã¨ã«ãªãã¨æããã§ãããããã©ãã ãã¡ã¢ãªã使ã£ã¦ããããã£ã¦ããã®ã¯ãã¥ã¼ãã³ã°ã«ããã¦éè¦ã«ãªã£ã¦ããããã (ãâ¦
ãNoSQLãã¨ããããºã¯ã¼ãã注ç®ãéããæ¨ä»ãç§ããhttp://shibuya.pm.org/blosxom/techtalks/200911.htmlãã«ç»å£ã®æ©ä¼ãããã ããSQLæ´¾ã®ç«å ´ã§çºè¡¨ããããã¦ãã¾ã (çºè¡¨è³æ)ãã§ãããè¨ãã¾ã§ããªããã¨ã§ãããRDBMSãKVSã«éãããå ¨ã¦ã®ã½ãâ¦
RSSãªã¼ãã¼ã¨ãããã¯ãã¼ã¯ãµã¼ãã¹ã¨ãã¢ã¯ã»ã¹çµ±è¨ãµã¼ãã¹ã¨ããä½ã£ã¦ããã¨ãã¯ãã¼ã©ã®éç¨ã¯å¿ é ãã¯ãã¼ã©ã¯ä¿è·ããããããå½ç¶DMZã«è¨ç½®ãããã§ãã¯ãã¼ã©ãDMZå ã«ããä»ã®ãã¹ãã«ã¢ã¯ã»ã¹ã§ãã¡ããã¨ã¾ããããã§ãã§ãã¯ãã¼ã©ããã®ã¢ã¯â¦
ã ã£ã¦ãã¦ã¼ã¶ã¼ã¯å ¨ã¦ã®ãµã¼ãå®è£ ã使ããããããããªããããä¾ãã° Plack::Server::Standalone::Prefork 㯠Parallel::Prefork ã«ä¾åãã¦ããã©ãããã Makefile.PL ã«æ¸ãã¦ãªãã®ã¯æå³çãã¨ãããã¨ãFCGI ã«ãã¦ãåããå ¨é¨ã¤ã³ã¹ã³ããã«ã¯ Tâ¦
ä¾ã«ãã£ã¦16KBã©ã³ãã ã¢ã¯ã»ã¹ãã³ã³ããã¼ã©ã¯ MCP55 Proãéããä»®æ³åãã¦ãªãã®ã¨ãå èµã®ã¾ã¨ããªã³ã³ããã¼ã©ä½¿ã£ã¦ãããããªãã 並å度 Read (MB/sec) â IOPS Write (MB/sec) â IOPS 1 61.8 3,950 14.1 902 16 158 10,100 14.0 893
_ djb ãèªä½ãã¼ã«ã®æ´æ°ãæ¾æ£ãã¦ããããã¶ããã£ã¦ãqmail ãã djbdns ããã¯ãã£ããã¨ç½®ãæ¿ããé²ãã§ããããã ããããã¾ã ã«ä½¿ãç¶ãããã¦ãããã®ããããå ·ä½çã«ã¯ daemontoolsããã¾ã ã« daemontools ã 使ããã¿ãæ¸ããã¦ããã®ãè¦ã¦çµ¶â¦
Re http://d.hatena.ne.jp/perlcodesample/20091130/1258979624, http://mt.endeworks.jp/d-6/2009/12/scriptsubimport.htmlã¹ã¯ãªããã¨ã³ã¼ãã¨ãã¹ããåä¸ã®ãã¡ã¤ã«ã«ã¾ã¨ããã*1ã¨ããéè¦ããããã¦èªåã®ä¸ã§ãã£ãã®ã§æããè«ããçµæã以ä¸ã®ãâ¦
ä»æ´ã§ããã Q4M ã使ç¨ãã¦ããã¨ã$dbh->execute ããã¥ã¼å¾ ã¡ã®éãããã¯ãã¦ããã¾ããããã¯ä¾¿å©ãªã®ã§ãããSIGINT ãããã¨ã£ããçµäºãã¦ã»ãããé常ã®å¦çã¨ãã¦ã¯ SIGINT ãããã¨ã£ããçµäºãã¾ããã§ããã$SIG{INT} = sub { warn "ï¼¼ã·ã°ãâ¦
I/Oè² è·ãé«ãæã«ããã£ãã·ã¥ã«å ¥ã£ã¦ãªãã³ãã³ããå®è¡ãããã¨ããã¨ã²ã£ãããããªãã§ããªã¼ã¨æã£ã¦èª¿ã¹ã¦ã¿ãããXenServer ã®ããã©ã«ãã¯ä»¥ä¸ã®ã¨ããã ã£ãã hdparm -W 1 dom0 ã® I/O ã¨ã¬ãã¼ã¿ã¯ noop domU ã® I/O ã¨ã¬ãã¼ã¿ã¯ noop SATA åâ¦
諸è¬ã®äºæ ã«ãããXenServer 5.5ã«eSATA(Si3132)çµç±ã§Intel X25-Mãã¤ãªãã ã®ã§ãã¤ãã§ã«ãã³ããã¼ã¯ããã¼ã¿ãã¼ã¹ç³»ã®ç¨éã¨ãããã¨ã§ãä¾ã«ãã£ã¦ randombench -b 16 -c 1 -f 102400ã å®æ©(æ§) XenServer(DomU) â (16並å) Read (MB/sec) 38.0 32.â¦
ä¸æ¨æ¥ãèªä½ãµã¼ãã«ã³ãã¡ã¬ã³ã¹ã«åå ãã¦ãã¾ãããã¨ã¦ããããããè²ã åºæ¿ãããã¾ãããã¯ã¦ãªã®ç°ä¸ãã楽天ã®æ¹ã å§ããã¹ãã¼ã«ã¼ã®çãããããã¨ããããã¾ããããã åãããªãã£ãã®ã¯ããµã¼ããèªä½ããå¿ ç¶æ§ãã©ã®ç¨åº¦ããã®ããªãã¨ããâ¦
èªä½ã®ãµã¼ãããã°ã©ã ã«ããã¡ãã¡ setuid ã¨ã setsid ã¨ããã°ãã¼ãã¼ãæ©è½ã¨ãå®è£ ããã®ããã©ãããããã§ãã ãã daemontools ã使ã£ã¦ç®¡çãã¦ãããã§ãããã ã£ããããã£ãå ¨é¨ã®ãã¼ã¢ã³ã daemontools ã§ä¸æ¬ç®¡çããããã¡ããã©ãreverseâ¦
Kazuho@Cybozu Labs: ãªã¢ã¼ãããXenã®DomUã¨ãLVMããã¡ã¤ã«ãå·®åããã¯ã¢ããããã¹ã¯ãªãããæ¸ãã ã®ãªã¹ãã¢æé ã ã©ãã«ãã¢ã¿ããããã¦ããªãä»®æ³ãã£ã¹ã¯ãä½æ xe vdi-list ã㦠uuid ããããã¤ã¹ãã¡ã¤ã«åãç¹å® lvchange -ay dev ãã¦LVãâ¦
ã¹ãã¬ã¼ã¸ã®è¿½å # xe sr-create name-label=sdb type=lvm device-config:device=/dev/sdb ã¹ãã¬ã¼ã¸ã®åé¤ # xe pbd-list (uuidã確èª) # xe pbd-unplug uuid=... # xe pbd-destroy uuid=... # xe sr-forget uuid=...ãªãããã®åå ã§è§£æ¾ãããªãLVãåºâ¦
ä»®æ³ãã£ã¹ã¯ã®ã¹ãã¢ãLVMã«ãã¦ããå ´åãXenServerã¬ãã«ã§ã®ã¹ãããã·ã§ãããæ®ãæ¯ã«LVã®æ°ãå¢ãã ã¹ãããã·ã§ãããåé¤ãã¦ããLVã¯ï¼ã¤ã«ã¯æ»ããªã ã ãã Kazuho@Cybozu Labs: ãªã¢ã¼ãããXenã®DomUã¨ãLVMããã¡ã¤ã«ãå·®åããã¯ã¢ããããâ¦
C++ã®ããã°ã©ã ãæ¸ãã¦ã¦GCã使ããããªããããªã±ã¼ã¹ã«ã¶ã¤ãã£ããã¨ã¯ãããæ°å¹´ãªããã§ãããGoã®çµ¡ã¿ã§ãããããã°Boehm GCãC++ã®ã¹ãã¼ããã¤ã³ã¿ã£ã½ã使ããã便å©ãªã®ããªãã¨ãæã£ããæ¸ãã¨ãããããããªæãã ããããæè¨ãããªãã°ãâ¦
dev.mysql.com ãã MSI å½¢å¼ã®ã¤ã³ã¹ãã¼ã©ããã¦ã³ãã¼ã éçºç¨ããããã©ã¤ãã©ãªãå«ãã¦ãmysql ãã¤ã³ã¹ãã¼ã« mysql ã® scripts\mysql_config.pl ã bin\ ã«ã³ã㼠管çè 権é㧠cmd.exe ãèµ·åã㦠cpan, force install DBD::mysql
InnoDBã¯MyISAMã¨æ¯è¼ãã¦å®å ¨(OSã¯ã©ãã·ã¥ãé»æºæãçºçãã¦ããã¼ãã«ãå£ããªã)åãæ¸ãè¾¼ã¿ãé ãããã¼ã¿ãã¼ã¹å±ããããããã¨ãããã¯å½ç¶ã®ãã¨ã§MyISAMããããããã ãã¨ãããã¨ã«ãªããã ããããããªããã¯ã¢ããæ©è½ã®ã¤ããRAIDã«ã¼ããâ¦
http://github.com/kazuho/vip/ããperlã¨ãã§ã $ perl print "ãã¹ãã³ã¼ããè²ã ..."; ... ^Dã¨ããã£ã¦ãã¹ããããã©ãã³ã¼ãæ¸ãééãã¡ãã£ããããæã«ç·¨éã§ããªãã¦ããã©ãã®ã¨ãæ¸ããã³ã¼ãã失ããã¡ããã®ãå«ã ãªãã¨æã£ã¦ããã§ãã¤ãã«â¦
追è¨: ãã¸ã¡ãªæ¯è¼ã¯ãã¡ãï¼Open database life: MyISAMã¨InnoDBã®ã©ã¡ãã使ãã¹ãã MyISAMã ã¨PostgreSQLã¨ä¸¦ã¹ãããæãªããæ¥ããããï½ï½ä¸åãã¡ãããï½ï½ã¦ã§ããµã¤ãã«ã¯ããã¦InnoDB使ã£ã¦æ¬²ããã»ã»ã»åå¼·ä¼ã¨ãã§çºè¡¨ããããã»ã»ã»ã»ããæâ¦
[è¿·ä¿¡] 0xe-0xe ã¯ã¼ã | æ ªå¼ä¼ç¤¾ããããåã« GCC ã®ãã°ãããªãã®ããªã¼ãããããã æå ã®è¦æ ¼ *1 ã ã¨ãpp-number ã« 'x' ã¯å«ã¾ããªã ã ãã '0xe-0xe' 㯠pp-number ã¨ãã¦è©ä¾¡ãããªãã¯ã BNF ãè¦ã㨠pp-number 㯠#if ã¨ãããªããã»ããµãã£â¦
Benchmark.pm ã® cmpthese ã¯æ軽ã«é度ã®æ¯è¼ãã§ããã®ã§ã¨ã¦ã便å©ãã§ããããããä½ã®ããã©ã¼ãã³ã¹ãæ¯è¼ãã¦ããã®ãï¼ ã½ã¼ã¹ã³ã¼ããèªãã°ããããã©ã perl ããã»ã¹ã®CPU使ç¨æé ãããã¯ãä¸è¨ï¼åããã»ã¹ã®CPU使ç¨æé ã測å®ãã¦ãããæâ¦
ãã³ããã¼ã¯ãåãéã«ãããããã®ææ³ãã¨ã«åæåãçµäºå¦çãå¿ è¦ãªãã ãã©ããããå¦çãé¤ãããã³ã¢ã®é¨åã®æ°å¤ãæ¯è¼ããããã¨ã£ã¦çµæ§ãããããããå ´åã¯ã以ä¸ã®ããã«æ¸ãã°ãããã¨ãããã¨ãç解ããã®ã§ã¡ã¢ã #! /usr/bin/perl use strâ¦