reptyr
criu
reptyr | criu | |
---|---|---|
16 | 14 | |
5,592 | 2,659 | |
- | 1.5% | |
4.3 | 8.9 | |
8 months ago | 6 days ago | |
C | C | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
reptyr
- Reptyr: Reparent a running program to a new terminal
-
Is it possible to restart X without killing a process started in a gnome terminal?
Maybe https://github.com/nelhage/reptyr
-
What is your most important feature of tmux?
https://github.com/nelhage/reptyr I guess this is what your looking for (it reparents a process, while retaining stdin/out using the ptrace syscall and some linux hacks iiuc)
-
Python Preloaded
Start CPython and import the libraries. Then keep the process running as a fork server. Whenever a new instance it needed, we make a fork (os.fork), and apply a similar logic as reptyr. Some technical details are here.
- Is it possible to stop a bash a bash script during execution and then return back to where you left off the next time you run the script
- Reopening verbose terminal for running service in Linux
-
catp: Print the output of a running process
Very much reminds me of reptyr
-
GNU ed ate my homework
- reptyr: https://github.com/nelhage/reptyr
using mosh means i don't get SIGHUP, and if i use my local display, i can open another mosh, reptr my old session (it's still there!) and keep on hacking.
-
Detaching current process from terminal on linux?
I know there is reptyr to reattaching running process to another tty. You can probably do the same from within the program. There is an abandoned rust rewrite you can probably ignore.
-
Which operating system should I use for a game server?
Alternatively, there's also reptyr, which allows you to reattach to a detached process - thereby giving you access to the standard input and standard output of a running Minecraft server instance.
criu
-
When "letting it crash" is not enough
Checkpoint/Restore I feel is a bigger concept than just saving state. At the zeroth level it's a system that can correctly stop and serialize a running process (as criu https://github.com/checkpoint-restore/criu has shown is a huge pain in the ass to still not be perfect) in a way that can initiated from within the process itself.
The 1st level more-work-but-easier way to do this is to build or use a heavily constrained VM/language you run from within your main application that doesn't allow for most of the hard problems to even exist.
I can't find any ready-made tools to do this that I wouldn't consider an endeavor.
- CRIU – Checkpoint/restore Linux tasks
-
Live Switching Pods to another Node on Resource Limits
That being said the Checkpoint Restore In Userspace project has been around for a number of years and is the closest thing to what you are talking about: taking a linux process on one machine and moving it to another. It is messy but can be done in some cases. There are folks looking at how to integrate CRIU with k8s but it’s all research at this point.
- Criu: Checkpoint/Restore Functionality for Linux
- checkpoint-restore/criu: Checkpoint/Restore tool
- checkpoint-restore/criu: Linux Checkpoint/Restore tool
-
The intersection of shadow stacks and CRIU
I would love to make more use of CRIU. E.g. I considered to use CRIU for my Python preloaded logic (https://github.com/albertz/python-preloaded). Unfortunately, at that point in time, CRIU must be used with root access, which was not an option. However, I see that the PR was merged now, so maybe it works now? (https://github.com/checkpoint-restore/criu/pull/1930)
There is also DMTCP (https://github.com/dmtcp/dmtcp/) but this might have other problems for my use case.
My solution was to use a fork server instead, which works almost equally well. There are not really much downsides with this approach. And this is actually quite simple, and also quite cross-platform (except Windows).
-
Python Preloaded
CRIU currently needs root access for dump/restore. However, there is ongoing work to support a non-root option in https://github.com/checkpoint-restore/criu/pull/1930.
-
How-to "freeze" a process to disk?
There have been multiple checkpointing attempts over the years. Criu is the only one I know of that's still kicking. That's probably your best and only bet.
- I made a plugin to suspend games and apps similar to how consoles do (Deck Suspender)
What are some alternatives?
FTerm.nvim - :fire: No-nonsense floating terminal plugin for neovim :fire:
nyrna - Suspend games and applications.
tmux - tmux source code
FitM - FitM, the Fuzzer in the Middle, can fuzz client and server binaries at the same time using userspace snapshot-fuzzing and network emulation. It's fast and comparably easy to set up.
extrakto - extrakto for tmux - quickly select, copy/insert/complete text without a mouse
Regshot-Advanced - This is a fork of Regshot (original found at https://sourceforge.net/projects/regshot/) with very enhanced functionality.
dmtcp - DMTCP: Distributed MultiThreaded CheckPointing
fpart - Sort files and pack them into partitions
tmux-yank - Tmux plugin for copying to system clipboard. Works on OSX, Linux and Cygwin.
DashLoader - Launch at the speed of light.
python-preloaded - Bundle Python executable with preloaded modules
nginx-link-function - It is a NGINX module that provides dynamic linking to your application in server context and call the function of your application in location directive