Open mgutt opened 3 years ago
In this particular example could you not do:
vmtouch -l /file1 /file2 /file3
This will mlock() each file in sequence.
Oh and by the way, you can background a process with "&" in your shell to avoid daemonizing. Daemonizing will actually put the daemon process into a separate session, which is often not what is desired:
vmtouch -l /file* &
The following command does not make sense, as the first execution leaves vmtouch open:
So instead I need to use the daemon mode:
But by that all daemons are executed parallel (which can overload the CPU). Is it possible to wait until one lock command has been finished, before starting the next one?
The following solution works, but adds much more sleep time as it would be necessary: