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

Not informative output if swap enabled #66

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

Not informative output if swap enabled #66

hakavlad opened this issue Jul 4, 2018 · 2 comments
Milestone

Comments

@hakavlad
Copy link
Contributor

hakavlad commented Jul 4, 2018

Out of memory! avail: 0 MiB < min: 587 MiB

One this line is not enaugh. Earlyoom not displays swap status info.

I want to see stdout like this:

mem avail: 0 MiB < min: 587 MiB
swap free: 500 MiB < min: 587 MiB
Preventing OOM: killing process...

@rfjakob rfjakob modified the milestones: v1.1, v1.2 Jul 6, 2018
@rfjakob
Copy link
Owner

rfjakob commented Jul 8, 2018

It' actually two lines - the memory stats are printed one extra time before killing a process:

./earlyoom -r 0
earlyoom v1.1-5-g74a364b-dirty
mem total: 7836 MiB, min: 783 MiB (10 %)
swap total: 0 MiB, min: 0 MiB (10 %)

(silence)

mem avail: 712 MiB (9 %), swap free: 0 MiB (0 %)
Out of memory! mem min: 783 MiB, swap min: 0 MiB
Killing process: tail, pid: 5476, badness: 367, VmRSS: 719 MiB

But I agree that the output could be nicer. Fixing #62 will need some changes there, anyway, and I'll see if I can get nicer kill output as well.

@hakavlad
Copy link
Contributor Author

hakavlad commented Jul 8, 2018

OK, thanks.

@rfjakob rfjakob closed this as completed in 88e5890 Jul 8, 2018
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