Entries from 2008-05-01 to 1 month
PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP http://www.google.com/codesearch?hl=en&q=PTHREAD_RWLOCK_DEFAULT_NP+package%3Aglibc ãªããªãã ã£ã¦ã¼ï¼ï¼ï¼ orzã©ã¤ã¿ã¼åªå ã§ä½¿ãã±ã¼ã¹ã®ãå¤ãã§ãããï¼ ã¦ã Mac OS X ã¨ã Solaris â¦
> 奥ãã ã³ã¡ã³ãæé£ããããã¾ããããããäºãªã確ãã«pwriteã§ãã£ã¨æ§è½åºã¦æ¬²ããã§ãããåä½ã®ãã³ããã¼ã¯ã®ã½ã¼ã¹ã³ã¼ãã¨ãã£ã¦æãã¦è²°ãäºã¯åºæ¥ã¾ãã§ããããï¼ http://d.hatena.ne.jp/nishidakeisuke/20080528/p1#c1211944915 ããããããâ¦
ï¼ã³ã¢ã§ idle ããªããªã£ãã£ã¦ãã¨ã¯ã¾ãè¨è¨ã¯ããã§ããã£ã¦ãã¨ã ããããæ©è½è¿½å åéããã DELETE on SELECT ã¢ã¼ãã®å®è£ è¤æ°è¡ own ã§ããããã« ä¾å¤ã®æ±ãã¨ãã¡ããã¨ããorz
è²ã ã¦ã¼ã¶ã©ã³ãã§ã®ããã¯ã使ããªãå½¢ã«æ¸ãæãã¦ãããªããªãéããªããªãã£ãã®ããpwrite ããã㦠mmap(PROT_WRITE) çµç±ã§ã®æ¸ãè¾¼ã¿ã«ãããã20% ç¨åº¦ãã£ã idle time ã 0 ã«ãªã£ãããã³ããã¼ã¯çã«ã¯ãããªæããä¸ã pwrite çµç±ãä¸ã msyâ¦
念ã®ãããã¹ãã³ã¼ããæ¸ãã¦ç¢ºèªãã¡ããã¨åãã #include <assert.h> #include <fcntl.h> #include <stdio.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/uio.h> #include <unistd.h> int main(int argc, char **argv) { int fd, i; int *map; char buf[16]; fd = open("/tmp/mmap_pwrite.tmp", O_RDWR | O_CREAT </unistd.h></sys/uio.h></sys/types.h></sys/mman.h></stdio.h></fcntl.h></assert.h>â¦
read ã並走å¯è½ã«ãããã¨ããã£ã¦ããããconcurrency ã¯ä¸ãã£ããã©ã¹ã«ã¼ãããã¯è½ã¡ãorz
read ã® MT åã¯ãã»ã¼å®äº åã¹ã¬ããã« owned_row ãå²ãä»ããã°ãowner mode ã®å ´åã« rnd_next å ã§ã® mutex ç²å¾ãä¸è¦ã«ã§ããã¯ã 次㯠read ã® mmap å pread ãä¸è¦ã«ãªããã¨ã«ãããä¸å¯é¿ã®ããã«ããã¯ã§ãããã¥ã¼å²ãä»ãã³ã¼ã (assign_ownâ¦
å®éã«ãã³ããã¼ã¯ãã¨ã£ã¦ã¿ã¾ãããKazuho at Work: Maximum Peformance of MySQL and Q4M
ã¨ãããã pwrite ãè¤æ°ã¹ã¬ããããå¼ã¶ããã«ãã¦ã¿ããã§ãã£ã¦ãã³ãã¨ããã¨ããã perl ã®ãã¹ãã³ã¼ããããµãã£ã¦ã©ããããããªããªã£ã¦ããã®ã§ C ã§æ¸ããã $ MESSAGES=400000 CONCURRENCY=40 DBI='dbi:mysql:test;mysql_socket=/tmp/mysql51.â¦
263 ãã¤ãã¨ããããªãã®ã§æ³¨æãå¿ è¦ã OS æ大ãµã¤ãº Windows 8TB*1 Linux (>=2.6.11) 128TB*2 Linux ( 512GB Solaris 10 250TB*3 Mac OS X ã¯ä¸æãmmap ã§ãã¡ã¤ã«å ¨ä½ã«ã©ã³ãã ã¢ã¯ã»ã¹ã¨ããã¡ãã£ã¨å¾®å¦ãããããªãã¨æã£ãã *1:x86-64 - Wikipedâ¦
Q4M ã®ã¢ã¯ã»ã¹ã«ãããã File I/O ã®æ½è±¡åã¬ã¤ã¤ãæ¸ãã¦ã64-bit çã¯ããã©ã«ã mmap+msync ã使ãããã«ãããã¨æã£ãã32-bit ç㯠mmap 使ããªãã®ã§ãé度ãåä¸ããªããããããªããã©ãããã¯ä»¥ä¸ã®çç±ã«ããæ°ã«ããªãæ¹åã§ã ä»å¾ã¯ 64-bit â¦
ããã«ããã¯ã¯ãã¶ãåé¤å¦çãç´ååããã¦ãï¼è¡æ¯ã« pwrite, ãã㦠fsync ã§ã¾ã¨ãã¦ã³ããããã¨ããã³ã¼ãã«ãªã£ã¦ããç¹ãfsync ãå¼åºã¯ MUST ã ããã並ååãããã¨ã¯ã§ããªãããï¼è¡æ¯ã® pwrite ãããã¦åé¤å¦çãã¸ã£ã¼ããªã³ã°ãããã¨ã§ãâ¦
Opteron 2218 x2 ã®ãã·ã³ã§ãIdle ãåºã¦ããã¨ãããã¨ã¯ããã£ã±ãã¥ã¼ã¸ã®ã¢ã¯ã»ã¹ã«é¢é£ããç´ååãããã«ããã¯ãªãããã¨ããæããæé©åãããªãã¨ãããªãã§ããã top - 18:46:13 up 40 days, 2:15, 3 users, load average: 3.61, 3.50, 1.72 Taâ¦
Expires ã¬ã¹ãã³ã¹ãããã¨ãããã®ã¾ã¾ä½¿ãããããªã Date ãããã®å¤ã§æ¸ç®ãããã«ã¿å¤ã使ãã®ãæ£ãããã ã£ã¦ã¯ã©ã¤ã¢ã³ãããµã¼ãã®æè¨ããã£ã¦ããä¿è¨¼ãªãã¦ãªãããã ï¼ã¿ã¤ã ã¾ã¼ã³ãçã£ã¦ãã¨ãããããã freshness_lifetime = expires_vaâ¦
ã¨ãããããPathtraq ã®éçºç¨ãã¹ããã¼ã¿ã® URL ãã¼ãã«ã®å§ç¸®çãã¹ãã å½¢å¼ ãã¤ãæ° å§ç¸®ç ç¡å§ç¸® 717,225,984 100% ç¬èª*1 406,847,488 57% InnoDB å§ç¸®*2 360,710,144 50% ç¬èª & InnoDBå§ç¸® 239,075,328 33% ç¾æç¹ã§ã®ææ³ã ã«ã¹ã¿ãã¤ãºããâ¦
æ±äº¬ã®é½å¸å人å£ãä¸çä¸ã ããã§ããã ä¸çã®é½å¸å人å£ã®é ä½ - Wikipediaåè: 404 Blog Not Found:ä¸çæ大ã®YAPCãæ±äº¬ã§è¡ãããçç±
$ uname -a Linux rel32.pathtraq.com 2.6.18-53.1.14.el5 #1 SMP Wed Mar 5 11:37:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux (snip) t/04-blob-cond.............ok t/04-blob..................ok t/05-multireader...........ok 1/4 Multireader benchâ¦
ãã¤ã§ãã©ãããã§ããµã¼ãã«ãã°ã¤ã³ããããªãã¨ãã£ã¦ããã¾ãããããã¨ãã£ã¦ããµã¼ãã® sshd ã¸ã®æ¥ç¶ãå ¨ä¸çããå¯è½ã«ãã¦ããã¨ããã®ã¯ããã¨ããã¹ã¯ã¼ãèªè¨¼ãç¡å¹åãã¦ãã¦ãé¿ãããã¨ãããä»ã¾ã§ã¯èªå® ãäºå®ä¸åºå®ã¢ãã¬ã¹ã ã£ãã®ã§ãâ¦
shwget | gniibeã®æ¥è¨ | ã¹ã©ã ããããè¦ãªããéãã§ããããã§ããã % (echo GET / >&0 ; cat) < /dev/tcp/localhost/80ããããæå°å½¢æ ã§ããããHTTP/0.9 ã使ã£ã¦ããã£ã ãåãã % (echo GET / >&0 ; cat) < /dev/tcp/localhost/80 | openssl mdâ¦