Representation Learning for Scale-free Networks: ã¹ã±ã¼ã«ããªã¼ãããã¯ã¼ã¯ã«å¯¾ãã表ç¾å¦ç¿
Representation Learning for Scale-free Networks: ã¹ã±ã¼ã«ããªã¼ãããã¯ã¼ã¯ã«å¯¾ãã表ç¾å¦ç¿
ipã³ãã³ãã®å®è¡ä¾ / Ubuntu 18.04 LTS ããã¾ã§Linuxãã£ã¹ããªãã¥ã¼ã·ã§ã³ã§ã¯UNIXç³»ãªãã¬ã¼ãã£ã³ã°ã·ã¹ãã ã§ãã使ããã¦ããã³ãã³ãã¨ãLinuxç¬èªã®ãããã¯ã¼ã¯ç³»ã³ãã³ããæ··å¨ãããããªç¶æ ã«ãªã£ã¦ãããæè¿ã®Linuxãã£ã¹ããªãã¥ã¼ã·ã§ã³ã§ã¯ããããã³ãã³ããipã³ãã³ãã«ä¸æ¬åããåãçµã¿ãç¶ãã¦ããã ipã³ãã³ãã«ã¯ããã¤ãã®ãµãã³ãã³ããç¨æããã¦ãããããã¾ã§åå¥ã®ã³ãã³ãã§å®è¡ãã¦ããå¦çãipã³ãã³ãã®ãã¨ã«éç´ãããããªä½ãã«ãªã£ã¦ããããªããipã³ãã³ãã¯Linuxç³»ã«ç¹æã®ã³ãã³ãã§ãä»ã®UNIXç³»ãªãã¬ã¼ãã£ã³ã°ã·ã¹ãã ã§ã¯ä½¿ããã¨ãã§ããªããè¨äºã§ã¯ãéæ¨å¥¨ã«ãªã£ãã³ãã³ããä»å¾ä½¿ããã¨ã¯ãè¦ãã§ããªãã¨ãã¦ããã
Opensource.comã¯7æ16æ¥(ç±³å½æé)ããCheat sheet: Linux networkingï½Opensource.comãã«ããã¦ãLinuxã«ããããããã¯ã¼ã¯ç®¡çã³ãã³ããè¨å®ãã¡ã¤ã«ã®æ¦è¦ãã¾ã¨ãããã¼ãã·ã¼ããOpensource.com: A Sysadminâs guide to Networking Cheat Sheetãã®å ¬éãä¼ããããã¼ãã·ã¼ãã¯A4ã§2æåã«ã¾ã¨ã¾ã£ã¦ããããããã¯ã¼ã¯ç®¡çã«å¿ è¦ã«ãªãåºæ¬çãªã³ãã³ãã®ä½¿ãæ¹ãç°¡æ½ã«ã¾ã¨ã¾ã£ã¦ããã ç´¹ä»ããã¦ãã主ãªã³ãã³ããè¨å®ãã¡ã¤ã«ã¯æ¬¡ã®ã¨ããã
æ¦è¦ netstatãssã³ãã³ãã«ããããããã¹ãã¨ä»ã®ãã¹ãã¨ã®ã³ãã¯ã·ã§ã³ãä¸è¦§è¡¨ç¤ºã§ãããããããWebã·ã¹ãã ã®å ´åãã¯ã©ã¤ã¢ã³ãã並è¡æ¥ç¶ããããã åä¸ãã¹ãããè¤æ°ã®ãã¼ããä»ãã¦ã³ãã¯ã·ã§ã³ã確ç«ãã¦ããã±ã¼ã¹ãå¤ããã³ãã¯ã·ã§ã³æ°ã大ããå ´åã¯ã1ä¸ä»¥ä¸ã®ã³ãã¯ã·ã§ã³ã表示ããããã¹ãéã®ã³ãã¯ã·ã§ã³ç¶æ³ã人éã®ç®ã§æ¦è¦³ãããã¨ãé£ããã£ãã ããã§ãåä¸ãã¹ãã¨ã®ã³ãã¯ã·ã§ã³ãéç´è¡¨ç¤ºããã³ãã¯ã·ã§ã³ç¶æ³ãæ¦è¦³ãã ãlstfã (ãããããã¦ãã¼ããµã)ã³ãã³ããã¤ãã£ãã github.com lstfã®ç¹å¾´ã¯ä»¥ä¸ã®éãã ã³ãã³ãå®è¡ãã¹ããèµ·ç¹ã«ãactive openã³ãã¯ã·ã§ã³ãpassive openã³ãã¯ã·ã§ã³ãå¤å®ãããã¤ã¾ããæ¥ç¶ãããå´ããããå´ããå¤å®ããã åãã¹ãããã¼ãã¨ã«ã³ãã¯ã·ã§ã³æ°ã表示ãã Goã§å®è£ ããã¦ãããã¼ã¿ããªãã£ãi3
ä»åã¯ã½ã±ããããã°ã©ãã³ã°ã«ã¤ãã¦ã ã½ã±ããã¨ããã®ã¯ Unix ç³»ã®ã·ã¹ãã ã§ãããã¯ã¼ã¯ãæ±ãã¨ããããã»ã¼å¿ ãã¨ãã£ã¦ããã»ã©ä½¿ããã¦ãããã®ã ãã¹ãéã®éä¿¡ããã¹ãå ã§ã® IPC ãªã©ããããã¯ã¼ã¯ãæ½è±¡åããã¤ã³ã¿ã¼ãã§ã¼ã¹ã«ãªã£ã¦ããã ãããªå¹ åºã使ããã¦ããã½ã±ããã ãã©ãåãæ±ãã¨ãã«ã¯è²ã ãªã¢ã¼ããã¯ãã£ãã¿ã¼ã³ãèããããã ã¾ããæ¯è¼çä½ã¬ã¤ã¤ã¼ãªé¨åãªã®ã§ãå¹ççã«æ±ãããã«ã¯ã·ã¹ãã ã³ã¼ã«ãªã©ã®ãå²ã㨠OS ã¬ãã«ã«è¿ãç¥èãå¿ è¦ã«ãªã£ã¦ããã ãããã¸ãã®è©±ã¯ãä½ç³»çã«èªããã¦ããããã¥ã¡ã³ããå°ãªããããã£ã¦ãéå¨ã®ãããªæ¬ã ã£ããããã ããã§ãä»åã¯ãããã«ã¤ãã¦ãã£ããã¨è¦ã¦ãããã¨ã«ããã å°ãä»åã¯ããã°ã©ãã³ã°è¨èªã¨ã㦠Python ã使ããã©ãä½ãããã¯ç¹å®ã®è¨èªã«éã£ã話ã§ã¯ãªãã ã©ããªè¨èªã使ãã«ãã¦ãããããã¯è¡¨é¢ä¸ã¯æ½è±¡åã
ãããã¯ã¼ã¯ããã°ã©ãã³ã°ã®åºç¤ç¥è ããã§ã¯ IP ã¢ãã¬ã¹ããã¼ãçªå·ãã¯ã©ã¤ã¢ã³ãã¨ãµã¼ãã®å½¹å²ãªã©ã説æãã perlã»Cè¨èªã»Java ãªã©ã§ã½ã±ãã (Socket) ã使ã£ã HTTP ã¯ã©ã¤ã¢ã³ãã POP3 ã¯ã©ã¤ã¢ã³ããç°¡åãªãµã¼ããä½æãã¦ã¿ã¾ãã è¦ã¯ãããã¯ã¼ã¯ããã°ã©ãã³ã°ããã£ã¦ã¿ãããã¨ãããã¨ã§ãã ãã®ãã¼ã¸ã®ãµã³ãã«ããã°ã©ã ã¯ãRFC ãªã©ã®è¦æ ¼ã«æºæ ãããæ£ãããããã°ã©ã ã§ã¯ããã¾ããã ã¾ããå ¨ä½çã«ã¨ã©ã¼å¦çãä¸ååã§ã (ä»å¾æ¹åããäºå®ã§ã)ã ããã¾ã§ãæ¦è¦ãç解ããããã®ãµã³ãã«ã¨ã¨ããã¦ãã ããã ããæ¬æ°ã§ãã£ããã¨ããã¯ã©ã¤ã¢ã³ãããµã¼ããæ¸ããããªãããã®ãã¼ã¸ãèªãã ä¸ã§ã ããã« RFC ãçèªãããã㦠wgetã»Apacheã»ftp ã³ãã³ããªã©ã®ã½ã¼ã¹ãåèã«ãã¦ãã ããã ãã®ãã¼ã¸ã«ééããè¦ä»ããããæ²ç¤ºæ¿ ã§
æ¬è¨äºã®å ¬éå¾ã®2016å¹´7æã«ã¯ã¦ãªã«ããããã¥ã¼ãã³ã°äºä¾ãç´¹ä»ããã ã¯ã¦ãªã«ãããLinuxãããã¯ã¼ã¯ã¹ã¿ãã¯ããã©ã¼ãã³ã¹æ¹å / Linux network performance improvement at hatena - Speaker Deck HAProxy ã nginx ãªã©ã®ã½ããã¦ã§ã¢ãã¼ããã©ã³ãµããªãã¼ã¹ãããã·ãmemcached ãªã©ã® KVS ã®ãããªé«ãã±ããã¬ã¼ãã«ãªãããããããã¯ã¼ã¯ã¢ããªã±ã¼ã·ã§ã³ã«ããã¦ãåä¸ã® CPU ã³ã¢ã«è² è·ãåãããã«ãã³ã¢ã¹ã±ã¼ã«ããªããã¨ãããã¾ãã ä»åã¯ããã®ãããªãããã¯ã¼ã¯ã¢ããªã±ã¼ã·ã§ã³ã«ãã㦠CPU è² è·ããã«ãã³ã¢ã¹ã±ã¼ã«ããªãçç±ã¨ããã«ãã³ã¢ã¹ã±ã¼ã«ãããããã® Linux ã«ã¼ãã«ã®ãããã¯ã¼ã¯ã¹ã¿ãã¯ã®ãã¥ã¼ãã³ã°ææ³ã¨ã㦠RFS (Receive Flow Steering) ã
13.2. ãã¾ãç¥ããã¦ããªãè¨å®ã¯ããå¤æ´ã§ãããã©ã¡ã¼ã¿ã¯ã¨ã¦ãããããããã¾ãã ããã§ã¯ããããã¹ã¦ããªã¹ããããã¨èãã¦ãã¾ãã ä¸é¨ã¯ Documentation/ip-sysctl.txt ã§ã説æããã¦ãã¾ãã ã«ã¼ãã«ã®ã³ã³ãã¤ã«æã« 'Configure as router and not host' ã« 'Yes' ã¨çãã¦ããã¨ããããã®è¨å®ã®ããã©ã«ããã ããã«ç¤ºããã®ã¨ã¯ç°ãªã£ã¦ããããããã¾ããã Oskar Andreasson ãããããã®ãã©ã°ã«é¢ãããã¼ã¸ãå ¬éãã¦ãã¾ãã ããã®ãã®ããè¯ãããã«æãã¾ãã®ã§ã å½¼ã®ãã¼ã¸ ããã§ãã¯ãã¦ã¿ã¦ãã ããã 訳注: ãã®é¨åã®è¨³åºã«ããã£ã¦ã¯ã 2.2 ã«ã¼ãã«ä»å±ææ¸ proc.txt ã®ç¿»è¨³ ãåèã«ããã¦ããã ãã¾ããã 13.2.1. ipv4 å ¨ä½ä¸è¬çãªæ³¨æã§ãããã»ã¨ãã©ã®é度å¶éæ©è½ã¯
ç¢å£ã§ãã ã¿ãªããã¯Linuxã®tcã¨ããæ©è½ããåç¥ã§ãããããéä¿¡ãããã±ããã®å¸¯åå¶å¾¡ãè¡ããã¨ãã§ãã大å¤å¼·åãªæ©è½ã§ãã°ãªã¼ã§ãããã¤ãã®ç¨éã§ä½¿ç¨ããã¦ãã¾ãã å ·ä½çãªäºä¾ã®ä¸ã¤ã¯Redisã§ããRedisã§ã¯replicationãæ°è¦ã«éå§ããéãfailoverãçºçãmasterãåãæ¿ãã£ãé(ç¹ã«2.6ç³»)ã«ã¹ãã¢ããã¦ããå ¨ãã¼ã¿ã転éããã¾ããããã帯åå¶éããããæ©è½ããªãããããããã¯ã¼ã¯å¸¯åãå§è¿«ãã¦ãã¾ãå±éºæ§ãããã¾ããã¾ãé常ã®ã¯ã©ã¤ã¢ã³ãã¨ã®éä¿¡ã§ã大éã®ã¯ã¨ãªã«ããäºæ³ä»¥ä¸ã®å¸¯åã使ç¨ãã¦ãã¾ãå¯è½æ§ãããã¾ãããã®ãããªå ´åã«tcãç¨ãããã¨ã§Redisã®ä½¿ç¨ãã帯åãã³ã³ããã¼ã«ã§ãã¾ãã ãã®ããã«æç¨ãªtcã§ããæ®å¿µãªãã¨ã«æ¥æ¬èª/è±èªã¨ãã«ãããããã解説ã詳細ãªæ å ±ã¯å¤ãããã¾ããã ç§ã社å ã«ããã¦ä½¿ããã¦ããtcã®è¨å®ã«åé¡ã
ãªããDMMããweb3ã«åå ¥ããã®ããSeamoon Protocolããç®æãæ°ããªã¨ã³ã¿ã¡ä½é¨ã®æªæ¥ã¨ã¯
listen()ã®backlogãä¸è¶³ããéã®TCP_DEFER_ACCEPTã®åä½ã«ã¤ã㦠- blog.nomadscafe.jpã¨ããè¨äºã®ä¸ã§ãlisten backlog ãããµããå¾ã« accept(2) ããã¨ããã®å¾ã® read(2) ã EAGAIN ãè¿ããããæ¥ç¶ãä¸å®å®ã«ãªãã¨ããäºè±¡ã説æããã¦ãã¾ãããæ°ã«ãªã£ãã®ã§èª¿ã¹ã¦ã¿ããã¨ãã¾ã¨ãã¾ãã çµè«ããè¨ãã¨ããã¯Linuxã®ä»æ§ã§ããmanã®tcp(7)ãè¦ãã¨ã TCP_DEFER_ACCEPT (since Linux 2.4) Allow a listener to be awakened only when data arrives on the socket. Takes an integer value (seconds), this can bound the maximum number of
TCP_DEFER_ACCEPTã¯ãLinuxã§ãµãã¼ãããã¦ããTCPã®ãªãã·ã§ã³ã§ããµã¼ãå´ã§ä½¿ç¨ããå ´åã«ã¯accept(2)ããã®ãããã¯è§£é¤ãTCPæ¥ç¶ãå®äºããã¿ã¤ãã³ã°ã§ã¯ãªãæåã®ãã¼ã¿ãå°çããã¿ã¤ãã³ã°ã§è¡ã£ã¦ããããªãã·ã§ã³ã§ãã Webãµã¼ãã»ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã§ã¯ãªã¯ã¨ã¹ããå°çãã¦ããaccept(2)ã®ãããã¯ã解é¤ããã®ã§ããªã¯ã¨ã¹ãã®å°çãWebãµã¼ãã»ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã§å¾ ã¤å¿ è¦ããªããªããç¹ã«preforkåã®ãµã¼ãã§ã¯å¹ççã«ããã»ã¹ã使ããããã«ãªãã¨ããå©ç¹ãããã¾ããPerlã§ã¯Starletããã®æ©è½ãæå¹ã«ãã¦ãã¾ã ã¨ããããæãµã¼ãã¹ã§TCP_DEFER_ACCEPTãæå¹ã«ãé¢ããããacceptå¾ã®readã§ãã¼ã¿ãèªãããææªã®å ´åãããã©ã«ãã®timeoutã§ãã5åéããã»ã¹ãã¹ãã¼ã«ãããã¨ãããã¾ãããstrace
#èª²é¡ çªç¶ãã£ã³ãã¼ã³ã¨ãã®é«ãã©ãã£ãã¯ãæ¥ãï¼ã¨ãè¨ãããã¨è²ã å°ããã¨ã¯ãããã®ã®ãä»ã®ãæä¸ã¯ã©ã¦ãã ããã¹ããã¯ä¸ãã¨ãããªãã¨ããªãã§ãããã£ã¦ã¨ããããCPUã¨ãã¡ã¢ãªããã¦è¦ããã®ã®ããã£ã³ãã¼ã³ãå§ã¾ã£ããæå¤ã¨æ©ããã©ã¦ã¶ããã¤ãªãããªãï¼ï¼ã¨ãè¨ããããããã CPUãã¡ã¢ãªããããªã«è² è·ã¯ç¹ã«é«ãããªãã調ã¹ã¦ã¿ããTIME_WAITã大éã«ãã£ãã #ã¨ããããä½ã¨ãããã ####TIME_WAITæ°ãã³ãã³ãã§ç¢ºèª $ netstat -anp|grep TIME_WAIT __(snip)__ tcp 0 0 192.168.1.1:80 192.97.67.192:56305 TIME_WAIT - tcp 0 0 192.168.1.1:80 192.63.64.145:65274 TIME_WAIT - tcp 0 0 192.168.1.1:80
ã¨ãããã¹ãã«ãTCPæ¥ç¶ãå¼µã£ã¦ã¯åãã¨ããå¦çãããããããç¹°ãè¿ããã³ããã¼ã¯çãªããã°ã©ã ãæ¸ãã¦åããã¾ããã æåã®ãã¡ã¯æå¾ ããéãã®åä½ããã¦ããã§ãããéä¸ãã対åã®ãã¹ãã«TCPæ¥ç¶ã§ããªããªã£ã¦ã¨ã©ã¼åºã¾ããã $ netstat -tna | grep TIME_WAIT | wc -l 28230ãããåå ã½ãã KERNEL_SOURCE/Documentation/networking/ip-sysctl.txt ã«ããã°ã ip_local_port_range - 2 INTEGERS Defines the local port range that is used by TCP and UDP to choose the local port. The first number is the first, the second the last loc
UbuntuãFedoraã¨ãã£ãGUIãã©ãããã©ã¼ã ã«ã¯ããããã¯ã¼ã¯ãã©ãã£ãã¯ã表示ããã¢ããªã±ã¼ã·ã§ã³ãç¨æããã¦ãããã¨ãå¤ãããã ããããã¢ããªãåºåãããã©ãã£ãã¯æ å ±ã¯å¤§éæã§ãåå¥ã®æ å ±ã¯è¡¨ç¤ºãããªããã¨ããããã¾ãGUIã¢ããªã§ã¯ãsshã§ãã°ã¤ã³ããç¶æ ã§ãããã¯ã¼ã¯ãã©ãã£ãã¯ã調æ»ããã¨ãã£ãä½æ¥ãã§ããªãã How to Monitor Network Traffic in Linux - Techthrob.comã«ããã¦LinuxãUnixãªã©ã§ãããã¯ã¼ã¯ãã©ãã£ãã¯ã®ã¢ãã¿ãªã³ã°ãå®æ½ããããã®2ã¤ã®ãã¼ã«ãç´¹ä»ããã¦ãããã³ãã³ãã©ã¤ã³ã§åä½ãããã¼ã«ãªã®ã§ãsshçµç±ã§ãã°ã¤ã³ãã¦ä½¿ããã¨ãã§ãããç´¹ä»ããã¦ãããã¼ã«ã¨æ´»ç¨ä¾ã¯æ¬¡ã®ã¨ããã iftop(8) ãããã¯ã¼ã¯ãã©ãã£ãã¯æ å ±ã表示ãããã¼ã«ãIPã¨ãã¼ãçªå·ããã¼ã¹ã«ãããããã®éä¿¡ã«
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}