eBPF µÄÈ«³ÆÊÇ extended Berkeley Packet Filter£¬Ëü±»³Æ֮Ϊ ¡°¸ïÃüÐÔ¡± µÄÄں˼¼Êõ£¬¿ÉÒÔÔÚ Linux
ÄÚºËÖÐÔËÐÐɳºÐ³ÌÐò£¬¶øÎÞÐè¸ü¸ÄÄÚºËÔ´´úÂë»ò¼ÓÔØÄÚºËÄ£¿é¡£ËüÌṩÁËÒ»ÖÖͨÓÃÖ´ÐÐÒýÇ棬¿ÉÒÔ»ùÓÚϵͳ»ò³ÌÐòʼþ¸ßЧ°²È«µØÖ´ÐÐÌض¨´úÂ룬¾ÍÏñÔÚʵʱ £¨JIT£©
±àÒëÆ÷ºÍÑéÖ¤ÒýÇæµÄ°ïÖúϽøÐб¾»ú±àÒëÒ»Ñù¡£
Èç½ñ£¬eBPF
±»¹ã·ºÓÃÓÚ¸÷ÖÖ³¡¾°£ºÔÚÏÖ´úÊý¾ÝÖÐÐĺÍÔÆÔÉú»·¾³ÖÐÌṩ¸ßÐÔÄÜÍøÂçºÍ¸ºÔØƽºâ£¬ÒԵͳɱ¾ÌáȡϸÁ£¶ÈµÄ°²È«¿É¹Û²âÐÔÊý¾Ý£¬°ïÖúÓ¦ÓóÌÐò¿ª·¢ÈËÔ±¸ú×ÙÓ¦ÓóÌÐò£¬ÎªÐÔÄܹÊÕÏÅųý¡¢Ô¤·ÀÐÔÓ¦ÓóÌÐòºÍÈÝÆ÷ÔËÐÐʱ°²È«ÊµÊ©Ìṩ¼û½âµÈµÈ¡£Ò»Ð©ÏîÄ¿Èç
Facebook ¹«Ë¾µÄ¸ßÐÔÄÜ 4 ²ã¸ºÔؾùºâÆ÷ Katran£¬IO Visor ÏîÄ¿¿ªÔ´µÄ BCC¡¢ BPFTrace ºÍ Kubectl-Trace£¬ÒÔ¼°
CloudFlare ¹«Ë¾¿ªÔ´µÄ eBPF Exporter ºÍ bpf-tools ¶¼Ê¹ÓÃÁ˸ü¼Êõ¡£
eBPF ΪºÎ±¸ÊÜ×·Åõ£¿
ÓÃÔÆɼÍøÂç VP ÏòÑôµÄ»°À´Ëµ£º¡° eBPF ×îÖØÒª£¨Ã»ÓÐÖ®Ò»£©µÄÌصãÊÇ°²È«ÐÔ¡± ¡£Ëû±íʾ£¬ÒÔÍù±ØÐë±àдÄÚºËÄ£¿é²ÅÄÜ×öµ½µÄ¹¤×÷ÏÖÔÚ»ù±¾¶¼ÄÜ×öµ½¡£µ«¹Ø¼üÐÔµÄÇø±ðÔÚÓÚ£¬eBPF
´úÂë»á¾¹ý Verifier
ÑϸñµÄÑéÖ¤£¬¶Å¾øÁËËÀÑ»·¡¢ÄÚ´æ鶵ÈÎÊÌâ¡£Ëü»áÈ·±£ÄÚºËÔËÐеݲȫ£¬Ê¹µÃÆóÒµÔ¸ÒâÔÚÔËÐйؼüÒµÎñµÄÉú²úϵͳÖпªÆô´ËÄÜÁ¦£¬´Ó¶øÊÍ·ÅÇ°ËùδÓеÄÄں˿ɱà³ÌÐÔ¡£
ÔÆɼÍøÂç VP ÏòÑô
eBPF ¶Ô¿É¹Û²âÐÔ¼¼ÊõµÄÓ°Ïì¸üÊǸïÃüÐԵģ¬Ò»·½ÃæÕâ¸ö³¡¾°Ï eBPF µÄ¡¸°²È«ÐÔ¡¹ÌåÏֵĸü¼ÓÁÜÀ쾡Ö£¬ËüÉõÖÁ²»»á¶ÔÊý¾Ý½øÐÐÈκεÄÐ޸ģ»ÁíÒ»·½Ãæ eBPF
µÄ¡¸ÁãÇÖÈÅ¡¹ÌØÐÔʹµÃÔÆÔÉúÓ¦ÓÃʵÏÖÈ«¾°¡¢È«Õ»µÄ¿É¹Û²âÐÔ³ÉΪÏÖʵ¡£Ëæ×ÅÔÆ»ù´¡ÉèÊ©µÄµü´úºÍ·¢Õ¹¡¢Î¢·þÎñµÄ²ð·Ö£¬ÒµÎñÖеıà³ÌÓïÑÔ¹¹³ÉÔ½À´Ô½¸´ÔÓ¡¢·þÎñ¼äͨÐÅ·¾¶Éæ¼°µ½µÄÍŶÓÔ½À´Ô½¶à¡£Óë´Ëͬʱ£¬ÏÖÓеĿɹ۲âÐÔ·½°¸ÍùÍùÒªÇó´ò×®²åÂ룬Ϊ¿ª·¢Õß´øÀ´Á˾޴óµÄ¹¤×÷Á¿£¬Òò´ËÈçºÎΪËùÓÐÒµÎñÖ§³ÅÍŶӳÊÏÖÒ»¸öÈ«¾°¡¢È«Õ»µÄ¿É¹Û²âÐÔÊÓͼ³ÉΪ¼±Ðè½â¾öµÄÒ»¸öÎÊÌâ¡£eBPF
²É¼¯µÄÊý¾ÝÄܸ²¸Çϵͳ¡¢ÍøÂç¡¢Ó¦Óõȶà¸ö²ãÃ棬Äܻشð»ù´¡ÉèÊ©µÄÐÔÄÜÆ¿¾±Î»Öã¬Ò²ÄܻشðÓ¦ÓóÌÐòÖеĴúÂ뺯ÊýÈȵ㣬ÔÚÕâ·½Ãæ±íÏÖ³öÁ˵ÃÌì¶ÀºñµÄÓÅÊÆ¡£
ÔÆɼÍøÂ翪ԴµÄÔÆÔÉú¿É¹Û²âÐÔƽ̨ DeepFlow ¾Í³ä·ÖÀûÓÃÁË eBPF ¼¼Êõ¡£½èÖú eBPF
µÄÁãÇÖÈÅÐԺͰ²È«ÐÔÓÅÊÆ£¬¿ª·¢ÕßÎÞÐèÐÞ¸ÄÈκÎÒ»ÐдúÂë¡¢ÎÞÐè¸Ä±äÈκÎÒ»¸öÔËÐвÎÊý¡¢ÉõÖÁÎÞÐèÖØÆôÈκÎÒ»¸ö½ø³Ì£¬¼´¿ÉʵÏÖÈ«¾°¡¢È«Õ»µÄ·Ö²¼Ê½×·×Ù¡¢È«¾°Ó¦ÓÃÍØÆË¡¢È«Õ»ÐÔÄÜÖ¸±êÄÜÁ¦£¬¸²¸Ç¸÷ÀàÓïÑÔµÄÓ¦Óᢸ÷ÀàÔÆÔÉú»ù´¡ÉèÊ©£¬ÎªÔÆÔÉú»·¾³ÏµĿɹ۲âÐÔ´øÀ´Á˸ïÃüÐԵĴ´Ð¡£
ºÜ¶àÈ˶¼ÔÚ¹Ø×¢ eBPF ½éÈëºó£¬Ó¦ÓóÌÐòÐÔÄÜ»áÓÐËùËðºÄ¡£ÏòÑôÈÏΪ£¬ÓÉÓÚ eBPF ³ÌÐò»á Hook
ÖÁÄں˺¯ÊýÖÐÖ´ÐУ¬Ëü´øÀ´µÄÐÔÄÜ¿ªÏúÓëÓ¦ÓóÌÐò±¾ÉíµÄ×ÊÔ´ÏûºÄÏà¹Ø¡£Èç¹ûÓ¦Óñ¾ÉíÂß¼·Ç³£¼òµ¥£¬ÀýÈçʱÑÓ²»µ½ 1ms£¬´Ëʱ eBPF
½éÈë´øÀ´µÄºÄʱռ±È»á±È½ÏÃ÷ÏÔ¡£µ«¶ÔÓÚ´óÁ¿µÄÒµÎñ ¡ª¡ª ͨ³£»áÓи´ÔӵļÆËãÂß¼¡¢¸ü³¤µÄºÄʱ£¬ÔÚÉú²ú»·¾³ÉϵľÑéÊÇ´ó¶àÖ»»áÒýÈë 1%~5%
µÄÐÔÄÜÓ°Ïì¡£ÁíÒ»·½Ã棬DeepFlow ҲϣÍûͨ¹ý×ÔÉíµÄ¿ªÔ´À´Íƽø eBPF Ó¦Óõķ±ÈÙ£¬ÕâÑùÒ²Äܸü¼Ó´Ù½ø eBPF ¼¼Êõ×ÔÉíµÄÐÔÄÜÓÅ»¯¡£¶ø DeepFlow
×ÔÉíµÄ³ÖÐø²âÊÔ»úÖÆÒ²»áÔÚÿ´Î´úÂëºÏÈëÖ®ºó½øÐÐ×Ô¶¯»¯µÄÐÔÄÜÓ°ÏìÆÀ¹À£¬ÈÃÓû§ÇåÎúµÄÖªµÀÓ°Ïìµ½µ×Óжà´ó¡£
eBPF ¼¼Êõ»¹ÔÚ²»¶Ï·¢Õ¹£¬»¹ÓÐʲô¿ÉÄÜÐÔÓдýÍÚ¾ò£¿2023 Äê 5 Ô 28 ÈÕ£¬GOTC 2023 eBPF ·ÖÂÛ̳½«ÓÚÉϺ£¾ÙÐУ¬½«Ò»ÀÀÎÞÓàµØÕ¹ÏÖ
eBPF ¼¼Êõ£¬²¢·ÖÏíÈçºÎ½«Æä½áºÏµ½Êµ¼Ê¹¤×÷ÖС£
Óë´Ëͬʱ£¬GOTC 2023 ºÜÈÙÐÒÑûÇëµ½ÏòÑô³ÉΪ¸Ã·ÖÂÛ̳µÄÁªºÏ³öÆ·ÈË¡£ÔçÔÚÇ廪´óѧ¹¥¶Á¼ÆËã»úϵ²©Ê¿Ñ§Î»Æڼ䣬ÏòÑô¾ÍʵÏÖÁËÊÀ½çÉϵÚÒ»¸öÈ«Çò BGP
·ÓɽٳÖʵʱ¼à²âϵͳ£¬»ñµÃÁËÍøÂç²âÁ¿ÁìÓò¹ú¼Ê¶¥¼¶»áÒé IMC
°ä·¢µÄÉçÇø¹±Ï×½±£¬ÕâÒ²ÊǸý±ÏîÊ״ΰ䷢¸øÖйú´ó½¿ÆÑÐÈËÔ±¡£±ÏÒµºó£¬ÏòÑô¼´¼ÓÈëÁËÔÆɼÍøÂ磬Èç½ñ×÷ΪÔÆɼÍøÂçµÄÑз¢ VP£¬¸ºÔð DeepFlow
²úÆ·¡£ÕýÊÇÔÚËûµÄ´øÁìÏ£¬ÔÆɼÍøÂ罫 eBPF ¼¼ÊõÉî¶ÈÓ¦ÓÃÓÚ DeepFlow Ö®ÖС£
È«Çò¿ªÔ´¼¼Êõ·å»á£¨Global Open-source Technology Conference£©£¬¼ò³Æ GOTC£¬ÊÇÓÉ¿ª·ÅÔ×Ó¿ªÔ´»ù½ð»á¡¢ Linux
»ù½ð»áÑÇÌ«Çø¡¢ÉϺ£ÆÖ¶«Èí¼þÔ°ºÍ¿ªÔ´ÖйúÁªºÏ·¢ÆðµÄ£¬ÃæÏòÈ«Çò¿ª·¢ÕßµÄÒ»³¡Ê¢´ó¿ªÔ´¼¼ÊõÊ¢Ñç¡£ 5 Ô 27 ÈÕÖÁ 28 ÈÕ£¬GOTC 2023 ½«ÓÚÉϺ£¾Ù°ìΪÆÚ 2
ÌìµÄ¿ªÔ´ÐÐҵʢ»á¡£´ó»á½«ÒÔÐÐÒµÕ¹ÀÀ¡¢Ö÷Ìâ·¢ÑÔ¡¢ÌرðÂÛ̳¡¢·ÖÂÛ̳µÄÐÎʽչÏÖ£¬Óë»áÕß½«Ò»Æð̽ÌÖÔªÓîÖæ¡¢3D
ÓëÓÎÏ·¡¢eBPF¡¢Web3.0¡¢Çø¿éÁ´µÈÈÈÃż¼ÊõÖ÷Ì⣬ÒÔ¼°¿ªÔ´ÉçÇø¡¢AIGC¡¢Æû³µÈí¼þ¡¢¿ªÔ´ÉÌÒµ»¯¡¢¿ªÔ´½ÌÓýÅàѵ¡¢ÔÆÔÉúµÈÈÈÃÅ»°Ì⣬̽ÌÖ¿ªÔ´Î´À´£¬ÖúÁ¦¿ªÔ´·¢Õ¹¡£
GOTC 2023 ±¨ÃûͨµÀÏÖÒÑ¿ªÆô£¬³ÏÑûÈ«Çò¸÷¼¼ÊõÁìÓò¿ªÔ´°®ºÃÕß¹²ÏåÊ¢¾Ù£¡
ÃâÔðÉùÃ÷£º±¾ÎÄϵ»¥ÁªÍøתÔØ£¬±¾Õ¾²»±£Ö¤ÆäÄÚÈÝÕæʵÐÔÒ²²»Í¬ÒâÎÄÖй۵㣬Çë¶ÁÕß×ÔÐмø±ð£¬²¢ºËʵ¹ã¸æºÍÄÚÈÝÕæʵÐÔ£¬½÷É÷ʹÓ㬱¾Õ¾ºÍ±¾È˲»³Ðµ£Óɴ˲úÉúµÄÒ»Çз¨Âɺó¹û£¡»¥ÁªÍø½ðÈÚ·çÏÕ¾Þ´ó£¬Í¶×ÊÒª½÷É÷£¬ÈçÓÐÒìÒéÇëÁªÏµ021-54249915
2023Äê05ÔÂ08ÈÕ ÓÚÉϺ£
°æȨ×÷Æ· δ¾Ðí¿É ÇëÎðתÔØ¡¡
|