Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of insufficient memory of equipment caused by Linux

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Sony how to solve the problem of insufficient memory caused by Linux, I believe that many inexperienced people do not know what to do. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

Sony engineer Peter Enderborg recently proposed a new watchdog (Watchdog) software in an email from LKML.

Watchdog known as Watchdog Timer, also known as COP (Computer Operating Properly) timers are commonly used in computers to detect unrecoverable errors and to reset the system in this case. Similarly, in the case of insufficient memory (OOM), there are some watchdogs that can perform the corresponding functions.

However, according to Peter Enderborg, the new watchdog will not perform a hard restart, but will take "predefined actions" to try to kill any unimportant processes that cause this low-memory situation, which uses "oom_score_adj" monitoring to perform corresponding actions, and the watchdog will kill those processes with the highest "oom_score_adj".

"oom_score" is the score assigned by the Linux kernel to each running process, and the higher the number, the higher the memory usage of the process. At the same time, "oom_score_adj" can help the system determine which processes should be killed so that they can be handled correctly in the event of OOM.

"oom_score_adj" varies from-1000 to 1000, and a higher number means that the process is less important to the system at the time and can be terminated in the event of an OOM. At present, this proposal is still under consultation (RFC).

After reading the above, do you know how Sony can solve the problem of insufficient memory caused by Linux? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report