perflock

command
v0.0.0-...-b67f3f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2024 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Overview

Command perflock is a simple locking wrapper for running benchmarks on shared hosts.

The typical use of perflock is:

perflock [-shared] command...

This will acquire a system-wide lock while running command.

In exclusive mode (the default), perflock prevents any other perflock'd command from running. This should be used for running benchmarks that are sensitive to the environment. In the future, this may do other things to set up a better isolated benchmarking environment.

In shared mode (with the -shared flag), perflock can run other shared-mode commands concurrently. This should be used for commands that would perturb benchmarks but aren't themselves benchmarks.

For convenience, we recommend you create shell aliases for perflock:

alias pl=perflock
alias pls='perflock -shared'

perflock depends on a locking daemon, which can be started with perflock -daemon.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL