{"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\/fr\/blog\/news\/vypusk-obrabotchika-nehvatki-pamyati-earlyoom-1-4","title":{"rendered":"Publication du gestionnaire de manque de m\u00e9moire earlyoom 1.4","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Apr\u00e8s huit mois de d\u00e9veloppement <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/rfjakob\/earlyoom\/releases\/tag\/v1.4\">publi\u00e9e<\/a><\/noindex> la publication du processus en arri\u00e8re-plan <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/rfjakob\/earlyoom\">earlyoom 1.4<\/a><\/noindex>, qui v\u00e9rifie p\u00e9riodiquement la quantit\u00e9 de m\u00e9moire disponible (MemAvailable, SwapFree) et tente de r\u00e9agir d\u00e8s le d\u00e9but \u00e0 l'apparition d'un manque de m\u00e9moire. Le code du projet est \u00e9crit en C et <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/rfjakob\/earlyoom\">est distribu\u00e9<\/a><\/noindex> sous licence MIT.<\/p>\n<p>Si la quantit\u00e9 de m\u00e9moire disponible est inf\u00e9rieure \u00e0 une valeur sp\u00e9cifi\u00e9e, earlyoom termine de force (en envoyant SIGTERM ou SIGKILL) le processus qui consomme le plus de m\u00e9moire (ayant la plus grande valeur \/proc\/*\/oom_score), sans laisser l'\u00e9tat du syst\u00e8me atteindre le nettoyage des buffers syst\u00e8me et nuire au fonctionnement de l'\u00e9change (le gestionnaire OOM (Out Of Memory) dans le noyau s'active lorsque l'\u00e9tat de manque de m\u00e9moire a d\u00e9j\u00e0 atteint des niveaux critiques et, en g\u00e9n\u00e9ral, \u00e0 ce moment-l\u00e0, le syst\u00e8me ne r\u00e9pond plus \u00e0 l'utilisateur).<\/p>\n<p>Earlyoom supporte l'envoi de notifications concernant les processus termin\u00e9s de force sur le bureau (via notify-send) et permet de d\u00e9finir des r\u00e8gles dans lesquelles on peut sp\u00e9cifier, \u00e0 l'aide d'expressions r\u00e9guli\u00e8res, les noms des processus dont la terminaison est pr\u00e9f\u00e9r\u00e9e (option \u00ab --prefer \u00bb) ou ceux dont il faut \u00e9viter l'arr\u00eat (option \u00ab --avoid \u00bb). <\/p>\n<p>Principales <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/rfjakob\/earlyoom#changelog\">modifications<\/a><\/noindex> dans la nouvelle version : <\/p>\n<ul>\n<li class=\"l\"> Gr\u00e2ce \u00e0 <noindex><a rel=\"nofollow\" href=\"https:\/\/en.wikipedia.org\/wiki\/Lazy_loading\">le chargement diff\u00e9r\u00e9<\/a><\/noindex> des attributs des processus, la logique de s\u00e9lection des processus \u00e0 terminer a \u00e9t\u00e9 acc\u00e9l\u00e9r\u00e9e de 50 % ;\n<li class=\"l\"> Le journal enregistre d\u00e9sormais le UID du processus termin\u00e9, en plus du PID et du nom du processus ;\n<li class=\"l\"> Une mise en surbrillance du journal de d\u00e9bogage a \u00e9t\u00e9 ajout\u00e9e en gris clair ;\n<li class=\"l\"> Le code a \u00e9t\u00e9 nettoy\u00e9 ;\n<li class=\"l\"> Des d\u00e9clarations de variables locales ont \u00e9t\u00e9 utilis\u00e9es autant que possible pour les blocs ;\n<li class=\"l\"> Un param\u00e8tre PATH_LEN a \u00e9t\u00e9 ajout\u00e9 pour remplacer la valeur int\u00e9gr\u00e9e de la taille du tampon ;\n<li class=\"l\"> L'ex\u00e9cution de cppcheck a \u00e9t\u00e9 assur\u00e9e si disponible ;\n<li class=\"l\"> Un test de performance \u00ab make bench \u00bb a \u00e9t\u00e9 ajout\u00e9 ;\n<li class=\"l\"> Le jeu de tests a \u00e9t\u00e9 \u00e9largi (make test) ;\n<li class=\"l\"> La r\u00e9initialisation des privil\u00e8ges root dans le fichier unitaire systemd earlyoom.service a \u00e9t\u00e9 mise en \u0153uvre. Ce changement <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/rfjakob\/earlyoom\/pull\/158\">casse<\/a><\/noindex> possibilit\u00e9 de notifications GUI. Pour activer les notifications GUI, il est recommand\u00e9 de restaurer les droits root en d\u00e9commentant \u00ab DynamicUser=true \u00bb. La d\u00e9sactivation des droits root \u00e9galement <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/rfjakob\/earlyoom\/wiki\/proc-hidepid\">entra\u00eene \u00e9galement<\/a><\/noindex> l'incapacit\u00e9 d'obtenir des informations sur l'utilisation de la m\u00e9moire lorsque \/proc est mont\u00e9 en mode hidepid=1 ou hidepid=2.\n<\/ul>\n<p><noindex><a rel=\"nofollow\" name=\"link\"><\/a><\/noindex><\/p>\n<p>Source : <a \ncontent=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=52465\">opennet.ru<\/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 - 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\/fr\/blog\/news\/vypusk-obrabotchika-nehvatki-pamyati-earlyoom-1-4\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"fr_FR\" \/>\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\/fr\/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\udd47Publication du gestionnaire de manque de m\u00e9moire earlyoom 1.4 | ProHoster","description":"Apr\u00e8s huit mois de d\u00e9veloppement, la publication du processus en arri\u00e8re-plan a eu lieu","canonical_url":"https:\/\/prohoster.info\/fr\/blog\/news\/vypusk-obrabotchika-nehvatki-pamyati-earlyoom-1-4","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"fr_FR","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\/fr\/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\/fr\/wp-json\/wp\/v2\/posts\/72251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/comments?post=72251"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/posts\/72251\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/media?parent=72251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/categories?post=72251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/tags?post=72251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}