Skip to content

Support configuring filesystem root from environment#8

Open
bobf wants to merge 2 commits intocgoldberg:masterfrom
bobf:configurable-filesystem-root
Open

Support configuring filesystem root from environment#8
bobf wants to merge 2 commits intocgoldberg:masterfrom
bobf:configurable-filesystem-root

Conversation

@bobf
Copy link
Copy Markdown

@bobf bobf commented May 7, 2019

Create a Path class which provides paths for various locations joined
to an optionally-configurable custom filesystem root via environment
variable LINUX_METRICS_ROOT_FS, defaulting to /

Add tests for new class and make existing tests more precise by using a
test filesystem containing exact, predetermined values.

Remove dependency on Linux file system for development/running tests.

Support running in a container with requisite directories mounted to a
custom mount-point within the container.

Create a `Path` class which provides paths for various locations joined
to an optionally-configurable custom filesystem root via environment
variable `LINUX_METRICS_ROOT_FS`, defaulting to `/`

Add tests for new class and make existing tests more precise by using a
test filesystem containing exact, predetermined values.

Remove dependency on Linux file system for development/running tests.

Support running in a container with requisite directories mounted to a
custom mount-point within the container.
@bobf bobf force-pushed the configurable-filesystem-root branch from baaac22 to 36e7046 Compare May 11, 2019 20:39
Provide the following:

Field  9 -- # of I/Os currently in progress
    The only field that should go to zero. Incremented as requests are
    given to appropriate struct request_queue and decremented as they finish.

Field 10 -- # of milliseconds spent doing I/Os
    This field increases so long as field 9 is nonzero.

Field 11 -- weighted # of milliseconds spent doing I/Os
    This field is incremented at each I/O start, I/O completion, I/O
    merge, or read of these stats by the number of I/Os in progress
    (field 9) times the number of milliseconds spent doing I/O since the
    last update of this field.  This can provide an easy measure of both
    I/O completion time and the backlog that may be accumulating.

[https://www.kernel.org/doc/Documentation/iostats.txt]
@bobf bobf force-pushed the configurable-filesystem-root branch from 36e7046 to 8e65eed Compare May 11, 2019 20:48
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

Successfully merging this pull request may close these issues.

1 participant