4 ms·
Not quite the same situation as described in the article, but it is still possible for the kernel to swap memory in and out of disk even without a swap file/par
by Deathmax 6y ago
Not quite the same situation as described in the article, but it is still possible for the kernel to swap memory in and out of disk even without a swap file/partition. Memory used for storing executable binaries is allowed to be moved out of memory, as a copy of it lives on disk. This means you can still encounter memory thrashing (and thus system unresponsiveness) under low memory situations.
- Denvercoder9 6y ago> Memory used for storing executable binaries is allowed to be moved out of memory, as a copy of it lives on disk. On Linux, this is not necessarily the case, as you can change the file on disk while the executable is running. I don't know if Linux just keeps executable code in memory all the time, or if it is smart enough to detect whether a copy of executable pages still lives on disk.
- unilynx 6y agoYou should get a "text file busy" error if you try that. What you can do is delete and then recreate the executable. Then the deleted data simply sticks around on disk until it's no longer referenced