New issue
Advanced search Search tips

Issue 672649 link

Starred by 4 users

Issue metadata

Status: Duplicate
Owner:
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Keep /var from filling up and preventing boot

Project Member Reported by abodenha@chromium.org, Dec 9 2016

Issue description

Right now /var is cleaned up periodically. In most cases, the frequency is fine, but if there's another bug that begins filling the folder quickly it can leave the device in an unbootable state (see bug 664659).

There are a couple obvious options to mitigate this.

Option A:
During normal operation detect if more than x% of /var is used (maybe 75%) and automatically trigger a cleanup if the threshold is crossed.

Option B:
Detect a full /var at boot time and clean up then.

There are probably a dozen other non-obvious options. The main goal is that a bit of runaway logging shouldn't be able to easily leave a machine in a non-bootable state.


 
Labels: OS-Chrome
option b should be fairly easy to pull off, have little overhead to run, and only run once at boot.  implementing constant monitoring doesn't seem worth the trade offs currently.
My concern with option B is that we'd need to do the cleanup before running into a situation that would hang as a result of a full /var.
See CL:432978 for a mitigation.

Comment 4 by st...@chromium.org, Mar 3 2017

Cc: r...@chromium.org

Comment 5 by st...@chromium.org, Mar 3 2017

Cc: -st...@chromium.org
Mergedinto: 664659
Status: Duplicate (was: Assigned)
One mitigation has been implemented as part of chromium:664659.

Sign in to add a comment