{"id":72251,"date":"2020-03-03T02:42:20","date_gmt":"2020-03-02T23:42:20","guid":{"rendered":"https:\/\/prohoster.info\/blog\/vypusk-obrabotchika-nehvatki-pamyati-earlyoom-1-4"},"modified":"2020-03-03T16:10:14","modified_gmt":"2020-03-03T13:10:14","slug":"vypusk-obrabotchika-nehvatki-pamyati-earlyoom-1-4","status":"publish","type":"post","link":"https:\/\/prohoster.info\/ro\/blog\/news\/vypusk-obrabotchika-nehvatki-pamyati-earlyoom-1-4","title":{"rendered":"Lansarea handler-ului de lips\u0103 de memorie earlyoom 1.4","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Dup\u0103 opt luni de dezvoltare <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/rfjakob\/earlyoom\/releases\/tag\/v1.4\">publicat<\/a><\/noindex> lansarea procesului de fundal <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/rfjakob\/earlyoom\">earlyoom 1.4<\/a><\/noindex>, care verific\u0103 periodic volumul de memorie disponibil\u0103 (MemAvailable, SwapFree) \u0219i \u00eencearc\u0103 s\u0103 reac\u021bioneze din timp la apari\u021bia unei lipse de memorie. Codul proiectului este scris \u00een C \u0219i <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/rfjakob\/earlyoom\">se r\u0103sp\u00e2nde\u0219te<\/a><\/noindex> sub licen\u021ba MIT.<\/p>\n<p>Dac\u0103 volumul de memorie disponibil\u0103 este mai mic dec\u00e2t valoarea setat\u0103, earlyoom va termina for\u021bat (prin trimiterea SIGTERM sau SIGKILL) procesul care consum\u0103 cel mai mult memorie (av\u00e2nd cea mai mare valoare \u00een \/proc\/*\/oom_score), f\u0103r\u0103 a l\u0103sa starea sistemului s\u0103 ajung\u0103 la cur\u0103\u021barea bufferelor de sistem \u0219i f\u0103r\u0103 a \u00eempiedica swapparea (handlerul OOM (Out Of Memory) din nucleu se activeaz\u0103 atunci c\u00e2nd starea de insuficien\u021b\u0103 de memorie a ajuns deja la niveluri critice \u0219i, de obicei, \u00een acel moment sistemul nu mai r\u0103spunde la ac\u021biunile utilizatorului).<\/p>\n<p>Earlyoom suport\u0103 trimiterea notific\u0103rilor despre procesele \u00eencheiate for\u021bat pe desktop (prin notify-send) \u0219i ofer\u0103 posibilitatea de a defini reguli \u00een care, cu ajutorul expresiilor regulate, se pot specifica numele proceselor ale c\u0103ror \u00eencheieri sunt preferabile (op\u021biunea &#171;&#8212;prefer&#187;) sau ale c\u0103ror opriri ar trebui evitate (op\u021biunea &#171;&#8212;avoid&#187;). <\/p>\n<p>Principalele <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/rfjakob\/earlyoom#changelog\">modific\u0103ri<\/a><\/noindex> \u00een noua versiune: <\/p>\n<ul>\n<li class=\"l\"> Datorit\u0103 <noindex><a rel=\"nofollow\" href=\"https:\/\/en.wikipedia.org\/wiki\/Lazy_loading\">\u00eenc\u0103rc\u0103rii am\u00e2nate<\/a><\/noindex> atributelor proceselor, logica de selectare a proceselor pentru terminare a fost accelerat\u0103 cu 50%;\n<li class=\"l\"> S-a asigurat \u00eenregistrarea \u00een jurnal a UID-ului procesului terminat, pe l\u00e2ng\u0103 PID \u0219i numele procesului;\n<li class=\"l\"> A fost ad\u0103ugat\u0103 eviden\u021bierea jurnalului de depanare cu o nuan\u021b\u0103 de gri deschis;\n<li class=\"l\"> A fost efectuat\u0103 o cur\u0103\u021bare a codului;\n<li class=\"l\"> A fost utilizat, dac\u0103 este posibil, un anun\u021b pentru variabilele locale \u00een blocuri;\n<li class=\"l\"> A fost ad\u0103ugat\u0103 setarea PATH_LEN pentru a \u00eenlocui valoarea integrat\u0103 a dimensiunii buffer-ului;\n<li class=\"l\"> S-a asigurat rularea cppcheck, dac\u0103 este disponibil;\n<li class=\"l\"> Ad\u0103ugat testul de performan\u021b\u0103 \u201emake bench\u201d;\n<li class=\"l\"> Setul de teste a fost extins (make test);\n<li class=\"l\"> A fost implementat\u0103 resetarea privilegiilor root \u00een fi\u0219ierul unit\u0103\u021bii systemd earlyoom.service. Aceast\u0103 modificare <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/rfjakob\/earlyoom\/pull\/158\">sparge<\/a><\/noindex> posibilitatea notific\u0103rilor GUI. Pentru a activa notific\u0103rile GUI, se sugereaz\u0103 restabilirea drepturilor de root, decoment\u00e2nd \u201eDynamicUser=true\u201d. Dezactivarea root, de asemenea <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/rfjakob\/earlyoom\/wiki\/proc-hidepid\">duce<\/a><\/noindex> imposibilitatea de a ob\u021bine informa\u021bii despre consumul de memorie atunci c\u00e2nd \/proc este montat \u00een modul hidepid=1 sau hidepid=2.\n<\/ul>\n<p><noindex><a rel=\"nofollow\" name=\"link\"><\/a><\/noindex><\/p>\n<p>Sursa: <a \ncontent=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=52465\">opennet.ro<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041f\u043e\u0441\u043b\u0435 \u0432\u043e\u0441\u044c\u043c\u0438 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u0432\u044b\u043f\u0443\u0441\u043a \u0444\u043e\u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 earlyoom 1.4, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043e\u0431\u044a\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 (MemAvailable, SwapFree) \u0438 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0440\u0430\u043d\u043d\u0435\u0439 \u0441\u0442\u0430\u0434\u0438\u0438 \u043e\u0442\u0440\u0435\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0438 \u043f\u0430\u043c\u044f\u0442\u0438. \u041a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u0421\u0438 \u0438 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0439 MIT. \u0415\u0441\u043b\u0438 \u043e\u0431\u044a\u0451\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u043c\u0435\u043d\u044c\u0448\u0435 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0442\u043e earlyoom \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e (\u0447\u0435\u0440\u0435\u0437 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 SIGTERM \u0438\u043b\u0438 SIGKILL) \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-72251","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041f\u043e\u0441\u043b\u0435 \u0432\u043e\u0441\u044c\u043c\u0438 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u0432\u044b\u043f\u0443\u0441\u043a \u0444\u043e\u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\" \/>\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\/ro\/blog\/news\/vypusk-obrabotchika-nehvatki-pamyati-earlyoom-1-4\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"ro_RO\" \/>\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\u044b\u043f\u0443\u0441\u043a \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0438 \u043f\u0430\u043c\u044f\u0442\u0438 earlyoom 1.4 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041f\u043e\u0441\u043b\u0435 \u0432\u043e\u0441\u044c\u043c\u0438 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u0432\u044b\u043f\u0443\u0441\u043a \u0444\u043e\u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/ro\/blog\/news\/vypusk-obrabotchika-nehvatki-pamyati-earlyoom-1-4\" \/>\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-02T23:42:20+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-03-03T13:10:14+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\udd47Release-ul gestion\u0103rii lipsei de memorie earlyoom 1.4 | ProHoster","description":"Dup\u0103 opt luni de dezvoltare, a fost publicat un nou release al procesului de fundal","canonical_url":"https:\/\/prohoster.info\/ro\/blog\/news\/vypusk-obrabotchika-nehvatki-pamyati-earlyoom-1-4","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"ro_RO","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\u044b\u043f\u0443\u0441\u043a \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0438 \u043f\u0430\u043c\u044f\u0442\u0438 earlyoom 1.4 | ProHoster","og:description":"\u041f\u043e\u0441\u043b\u0435 \u0432\u043e\u0441\u044c\u043c\u0438 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u0432\u044b\u043f\u0443\u0441\u043a \u0444\u043e\u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430","og:url":"https:\/\/prohoster.info\/ro\/blog\/news\/vypusk-obrabotchika-nehvatki-pamyati-earlyoom-1-4","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-02T23:42:20+00:00","article:modified_time":"2020-03-03T13:10:14+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"72251","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:47:24","updated":"2022-10-06 00:21:22","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/posts\/72251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/comments?post=72251"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/posts\/72251\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/media?parent=72251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/categories?post=72251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/ro\/wp-json\/wp\/v2\/tags?post=72251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}