Dropfiles are somewhat related to virtualization as they allow to remove a process complete from execution and restart it later. Agent_L describes itdescribes it quite head on as 'per-process hybernation'hibernation'. A whole process will be taken ofoff a machine with the option to restart it later on the same or another machine under the same or another user.
Dropfiles are originated infrom a complete different view onof computer operation. They exist in environments that try to avoid the overhead of virtual memory. Usually these were machines where a process occupied the whole machine, running without interruption.
A dropfile is exactly what essentially Charles Duffy said, a complete serialization of a process' state state. Important detail to be added: Issued by the OS. EssentiallyIt's essentially a recording of all statesstate of a process to a disk file. Depending on the OS, this includes
- Registers
- Allocated Memory Content
- OS Values, like
- Assigned Devices
- File Tables
- Job Stack (*1)
In someTo a degree, it's much like a dump, except written to file and reloadable.
Main reasonsThe main reason for a dropfile to be written is either processing timeout (assigned total CPU time or run time exhausted) or an operator issued abort - like when needing space to load a different job.
While dropfiles quickly went quick out of use (see below) and beingwere replaced by virtualization for commercial mainframes, they keptremained a major thing on scientific mainframes. CDC's operating systems were based around dropfiles. There was a whole set of utilities to handle dropfiles, especially to move them beteenbetween production environment and development.
To understand this, it's important to keep in mind that these machines were about number crunching, not data processing. Here, any addition of virtual memory meant slowing down the machine, so they worked without such fancy stuff (see this answerthis answer about Cray machines) . Also they (often) got a fixed number of processes that could run concurrentconcurrently, defined by the number of 'PCs'. Processes got a fixed amount of memory assigned, as well as a total run time. ProcessEach process was expected to work full time, with not much I/O at all - after all, that's what a supercomputer was for: Crunchingcrunching numbers. Such jobs needed the whole attention of a machine - and having the ability to operate more than one program at the same time at high speed was a major USPsUSP of Cray's designs.
If the assigned run time was reached, a dropfile got written, memory freed and its PC assigned to the next job in line. Usually a job was not expected to reach that limit, but this ofc depends on the way jobs were structured. There was no automatic restart,restart; it was always done manualmanually - after all, that job already exceeded what was assumed to be the time needed. So, so there must be something wrong. Tools (like SWITCHP
on VSOS (*2)) allowed developers to load a dropfile to do a 'live' system diagnosis.
Of course, researchers quickly learned about the benefits for their 'private' projects. Stuff were theythat didn't get enough processing time was lined up at very low priority, having the operator (or operator scripts) restatingrestarting their job whenever there was no other to run.
Dropfiles are a quite efficient way to handle a few jobs with long run times and low exchange rates. Compared to virtualization, run time overhead is negliablenegligible.
Once dropfiles were available, they became as well a great tool to not only to suspend a job for diagnosis or later restart, but as wellalso to move it between different (compatible) machines or even sites. ProgramsA programs could be developed on some small machine, debugged until it seamedseemed to work fine, dropped and restarted on a faster production machine. Or as well copied and put onto several machines in parallel A whole job became a tradeable commodity like a single program. In some way, dropfiles (when handeledhandled accordingly) can even be seen as a form of containerization (*3).
So while dropfiles are somewhat related to virtualization, they are result of a completecompletely different view on computer operation.
[While knowing to goI'm going totally off-topic here, I feel it might be helpful to see how these ideas may be still relevant in modern computing]
CRIU (Checkpoint/Restore In Userspace) is a project implementing something quite similar to dropfiles for Linux (Asas mentioned herementioned here by an 'undecodable' usernoɥʇʎԀʎzɐɹƆ). CRIU enables the packaging of all content and statesstate of a Linux user process in a set of files and restore itrestoration from there. Like often with modern developments, incorrect historic names are reused - see below for the original meaning of checkpointcheckpoint.
There are/have been several other similar atempts like BLCR (Berkeley Lab Checkpoint/Restart), but they went all, AFAICT, alreadyinto hibernation many years ago in hibernation.
Here a process can request a 'checkpoint' written with data it needs for an optional restart. An OS managed one checkpoint file per process (if requested),: whenever a new checkpoint was written the prior was deleted.
While with a similar goal asto CRIU, DMTCP (Distributed MultiThreaded CheckPointing) walks some middle line between checkpointing and dropfile. Much like withLike a dropfile, the whole application memory space gets saved,saved; but much like with checkpointing, it is done by the application using specific interfaces (called plugins) to monitor handle all resources that need to be saved. It feels like a very interesting project, recovering (and rediscovering) things that have worked well in ye olde times to be used for today's tasks.