Skip to content

nshepperd/lazy

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Lazy, a tool for running things in idle time

Mostly used to stop CUDA ML model training from making my desktop unusable. Simply monitors keyboard/mouse idleness using xprintidle, and pauses the given process using SIGSTOP whenever the machine is in use (defined as no activity within the last second).

Invoke either with a command,

lazy ./train_my_gpu_intensive_model.py

or with a PID of something already running.

lazy -p 1234

(In PID mode, lazy is likely to leave the process paused after exiting, if cancelled with ^C. Resume it manually with kill -SIGCONT $PID, or fg in the shell you originally started it in.)

About

Lazy, a tool for running things in idle time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages