{"id":74338,"date":"2020-03-16T20:42:15","date_gmt":"2020-03-16T17:42:15","guid":{"rendered":"https:\/\/prohoster.info\/blog\/novosti-interneta\/v-yadre-linux-5-7-budut-uskoreny-slozhnye-sopostavleniya-po-spiskam-v-netfilter"},"modified":"2020-03-16T20:42:15","modified_gmt":"2020-03-16T17:42:15","slug":"v-yadre-linux-5-7-budut-uskoreny-slozhnye-sopostavleniya-po-spiskam-v-netfilter","status":"publish","type":"post","link":"https:\/\/prohoster.info\/hu\/blog\/news\/v-yadre-linux-5-7-budut-uskoreny-slozhnye-sopostavleniya-po-spiskam-v-netfilter","title":{"rendered":"A Linux 5.7 magj\u00e1ban felgyors\u00edtj\u00e1k a bonyolult list\u00e1s \u00f6sszehasonl\u00edt\u00e1sokat a NetFilter-ben","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>A Netfilter h\u00e1l\u00f3zati csomagok sz\u0171r\u00e9se \u00e9s m\u00f3dos\u00edt\u00e1sa alrendszer fejleszt\u0151i <noindex><a rel=\"nofollow\" href=\"https:\/\/marc.info\/?l=netfilter-devel&#038;m=158359998327736&#038;w=2\">k\u00f6zz\u00e9tett\u00e9k<\/a><\/noindex> egy olyan patch-gy\u0171jtem\u00e9ny, amely jelent\u0151sen felgyors\u00edtja a nagy \u00f6sszehasonl\u00edt\u00f3 list\u00e1k (nftables set) feldolgoz\u00e1s\u00e1t, ahol sz\u00fcks\u00e9ges a h\u00e1l\u00f3zati alh\u00e1l\u00f3zatok, portok, protokollok \u00e9s MAC-c\u00edmek kombin\u00e1ci\u00f3j\u00e1nak ellen\u0151rz\u00e9se. A patch-ek m\u00e1r elfogad\u00e1sra ker\u00fcltek a <noindex><a rel=\"nofollow\" href=\"https:\/\/git.kernel.org\/pub\/scm\/linux\/kernel\/git\/pablo\/nf-next.git\/\">nf-next<\/a><\/noindex>, amely a Linux 5.7 kernelbe lesz javasolva. A legnagyobb sebess\u00e9gn\u00f6veked\u00e9st az <noindex><a rel=\"nofollow\" href=\"https:\/\/marc.info\/?l=netfilter-devel&#038;m=158359999127746&#038;w=2\">AVX2<\/a><\/noindex> utas\u00edt\u00e1sok kihaszn\u00e1l\u00e1s\u00e1val siker\u00fclt el\u00e9rni (a j\u00f6v\u0151ben hasonl\u00f3 optimaliz\u00e1l\u00e1sokat terveznek NEON utas\u00edt\u00e1sok alapj\u00e1n ARM-ra vonatkoz\u00f3an).<\/p>\n<p>Az optimaliz\u00e1l\u00e1sok a <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/torvalds\/linux\/blob\/master\/net\/netfilter\/nft_set_pipapo.c\">nft_set_pipapo<\/a><\/noindex> (PIle PAcket POlicies) modulba lettek be\u00e9p\u00edtve, amely a csomag tartalm\u00e1nak \u00f6sszehasonl\u00edt\u00e1s\u00e1t v\u00e9gzi a sz\u0171r\u00e9si szab\u00e1lyokban alkalmazott tetsz\u0151leges \u00e1llapotmez\u0151k tartom\u00e1ny\u00e1val, p\u00e9ld\u00e1ul IP \u00e9s h\u00e1l\u00f3zati port tartom\u00e1nyokkal (nft_set_rbtree \u00e9s nft_set_hash manipul\u00e1lja a tartom\u00e1nyok \u00e9s \u00e9rt\u00e9kek k\u00f6zvetlen t\u00fckr\u00f6z\u00e9s\u00e9nek \u00f6sszehasonl\u00edt\u00e1s\u00e1t). Az AVX2 256 bites utas\u00edt\u00e1sok \u00e1ltal vektorozott pipapo verzi\u00f3 egy AMD Epyc 7402 processzorral rendelkez\u0151 rendszeren 420%-os teljes\u00edtm\u00e9nyjavul\u00e1st mutatott 30 000 bejegyz\u00e9s feldolgoz\u00e1sa sor\u00e1n, amelyek port-protokoll p\u00e1rokat tartalmaztak. Az alh\u00e1l\u00f3zatb\u00f3l \u00e9s portsz\u00e1mb\u00f3l \u00e1ll\u00f3 p\u00e1ros \u00f6sszehasonl\u00edt\u00e1sa 1000 bejegyz\u00e9s feldolgoz\u00e1sa sor\u00e1n 87%-os n\u00f6veked\u00e9st mutatott IPv4 eset\u00e9n \u00e9s 128%-os n\u00f6veked\u00e9st IPv6 eset\u00e9n.<br \/>\n<center><img decoding=\"async\" alt=\"A Linux 5.7 magj\u00e1ban felgyors\u00edtj\u00e1k a bonyolult list\u00e1s \u00f6sszehasonl\u00edt\u00e1sokat a NetFilter-ben\" src=\"\/wp-content\/uploads\/2020\/03\/18b28db8d44b666fd5edc4d69d9002ea.png\" style=\"display:block;margin: 0 auto;\" \/><\/center><\/p>\n<p>Egy m\u00e1sik optimaliz\u00e1l\u00e1s, amely lehet\u0151v\u00e9 teszi a 8 bites mintacsoportok haszn\u00e1lat\u00e1t a 4 bites helyett, szint\u00e9n jelent\u0151s teljes\u00edtm\u00e9nyn\u00f6veked\u00e9st mutatott: 66% a 30 ezer port-protokoll bejegyz\u00e9s elemz\u00e9s\u00e9ben, 43% az IPv4 alh\u00e1l\u00f3zat-portn\u00e1l \u00e9s 61% az IPv6 alh\u00e1l\u00f3zat-portn\u00e1l. \u00d6sszess\u00e9g\u00e9ben, figyelembe v\u00e9ve az AVX2 optimaliz\u00e1l\u00e1sokat, a pipapo teljes\u00edtm\u00e9nye a megadott tesztekben 766%, 168% \u00e9s 269%-kal n\u00f6vekedett. A bonyolult mint\u00e1kra vonatkoz\u00f3 jellemz\u0151k meghaladj\u00e1k az egyes mez\u0151k ellen\u0151rz\u00e9s\u00e9t. <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/torvalds\/linux\/blob\/master\/net\/netfilter\/nft_set_rbtree.c\">rbtree<\/a><\/noindex> ellen\u0151rz\u00e9sein\u00e9l (kiv\u00e9ve a port+protokoll p\u00e1ros teszteredm\u00e9nyeit), de m\u00e9g mindig elmaradnak a k\u00f6zvetlen ellen\u0151rz\u00e9sekhez viszony\u00edtva, amelyeket <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/torvalds\/linux\/blob\/master\/net\/netfilter\/nft_set_hash.c\">hash-ek<\/a><\/noindex> \u00e9s netdev alap\u00fa drop-kezel\u0151k haszn\u00e1lnak.<\/p>\n<p><center><img decoding=\"async\" alt=\"A Linux 5.7 magj\u00e1ban felgyors\u00edtj\u00e1k a bonyolult list\u00e1s \u00f6sszehasonl\u00edt\u00e1sokat a NetFilter-ben\" src=\"\/wp-content\/uploads\/2020\/03\/ff71ee73449de11556d18be83e8d0320.png\" style=\"display:block;margin: 0 auto;\" \/><\/center><\/p>\n<p><noindex><a rel=\"nofollow\" name=\"link\"><\/a><\/noindex><\/p>\n<p>Forr\u00e1s: <a \ncontent=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=52548\">opennet.ru<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 Netfilter \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b\u0438 \u043d\u0430\u0431\u043e\u0440 \u043f\u0430\u0442\u0447\u0435\u0439, \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0441\u043a\u043e\u0440\u044f\u044e\u0449\u0438\u0445 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f (nftables set), \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f \u043f\u043e\u0434\u0441\u0435\u0442\u0435\u0439, \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043f\u043e\u0440\u0442\u043e\u0432, \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 \u0438 MAC-\u0430\u0434\u0440\u0435\u0441\u043e\u0432. \u041f\u0430\u0442\u0447\u0438 \u0443\u0436\u0435 \u043f\u0440\u0438\u043d\u044f\u0442\u044b \u0432 \u0432\u0435\u0442\u043a\u0443 nf-next, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0430 \u0434\u043b\u044f \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0432 \u0441\u043e\u0441\u0442\u0430\u0432 \u044f\u0434\u0440\u0430 Linux 5.7. \u041d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0437\u0430\u043c\u0435\u0442\u043d\u043e\u0433\u043e \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 AVX2 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":74339,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-74338","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 Netfilter \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b\u0438 \u043d\u0430\u0431\u043e\u0440 \u043f\u0430\u0442\u0447\u0435\u0439.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/hu\/blog\/news\/v-yadre-linux-5-7-budut-uskoreny-slozhnye-sopostavleniya-po-spiskam-v-netfilter\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"hu_HU\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0412 \u044f\u0434\u0440\u0435 Linux 5.7 \u0431\u0443\u0434\u0443\u0442 \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u044b \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e \u0441\u043f\u0438\u0441\u043a\u0430\u043c \u0432 NetFilter | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 Netfilter \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b\u0438 \u043d\u0430\u0431\u043e\u0440 \u043f\u0430\u0442\u0447\u0435\u0439.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/hu\/blog\/news\/v-yadre-linux-5-7-budut-uskoreny-slozhnye-sopostavleniya-po-spiskam-v-netfilter\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-03-16T17:42:15+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-03-16T17:42:15+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47A Linux 5.7 magj\u00e1ban felgyors\u00edtj\u00e1k a bonyolult list\u00e1s \u00f6sszehasonl\u00edt\u00e1sokat a NetFilter-ben | ProHoster","description":"A Netfilter h\u00e1l\u00f3zati csomagok sz\u0171r\u00e9se \u00e9s m\u00f3dos\u00edt\u00e1sa alrendszer fejleszt\u0151i publik\u00e1ltak egy patch-csomagot.","canonical_url":"https:\/\/prohoster.info\/hu\/blog\/news\/v-yadre-linux-5-7-budut-uskoreny-slozhnye-sopostavleniya-po-spiskam-v-netfilter","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"hu_HU","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0412 \u044f\u0434\u0440\u0435 Linux 5.7 \u0431\u0443\u0434\u0443\u0442 \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u044b \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e \u0441\u043f\u0438\u0441\u043a\u0430\u043c \u0432 NetFilter | ProHoster","og:description":"\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 Netfilter \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b\u0438 \u043d\u0430\u0431\u043e\u0440 \u043f\u0430\u0442\u0447\u0435\u0439.","og:url":"https:\/\/prohoster.info\/hu\/blog\/news\/v-yadre-linux-5-7-budut-uskoreny-slozhnye-sopostavleniya-po-spiskam-v-netfilter","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-03-16T17:42:15+00:00","article:modified_time":"2020-03-16T17:42:15+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"74338","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 18:16:23","updated":"2022-10-05 03:20:19","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/74338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/comments?post=74338"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/74338\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media\/74339"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media?parent=74338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/categories?post=74338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/tags?post=74338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}