Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Low memory is not OOM #60

Closed
hakavlad opened this issue Jul 4, 2018 · 5 comments
Closed

Low memory is not OOM #60

hakavlad opened this issue Jul 4, 2018 · 5 comments

Comments

@hakavlad
Copy link
Contributor

hakavlad commented Jul 4, 2018

Out of memory (OOM) is an often undesired state of computer operation where no additional memory can be allocated for use by programs or the operating system. Such a system will be unable to load any additional programs, and since many programs may load additional data into memory during execution, these will cease to function correctly. This usually occurs because all available memory, including disk swap space, has been allocated.

In normal operation, earlyoom should not occur at all OOM, since preventing OOM is the main task of earlyoom, not a reaction to OOM that has already occurred.

What about replace "Out of memory!" in earlyoom stdout with "Preventing OOM!"?

@rfjakob
Copy link
Owner

rfjakob commented Jul 5, 2018

Not sure about this.

What earlyoom does is to declare that the system is "out of memory" sooner than the kernel oom killer would to. And what "out of memory" means can be set by the user.

@hakavlad
Copy link
Contributor Author

hakavlad commented Jul 5, 2018

And what "out of memory" means can be set by the user.

Need citation. Earlyoom sets follow:

  -m PERCENT       set available memory minimum to PERCENT of total (default 10 %)
  -s PERCENT       set free swap minimum to PERCENT of total (default 10 %)

This is not "out of memory" levels. "Out of memory" isn't mentioned at all.

@rfjakob
Copy link
Owner

rfjakob commented Jul 5, 2018

It's right in the title

The Early OOM Daemon

@hakavlad
Copy link
Contributor Author

hakavlad commented Jul 5, 2018

Earlyoom acts early OOM, but 10% MemAvailable is not OOM.

@rfjakob rfjakob closed this as completed in 88e5890 Jul 8, 2018
@hakavlad
Copy link
Contributor Author

hakavlad commented Jul 8, 2018

very good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants