|
|
|
|
|
by tzs
1251 days ago
|
|
At 10 GB/sec it would take ~800 ms if you were trying to resume a process that needs 8 GB and was entirely swapped out, assuming that all 8 GB have to be present for it to run. (Add another 800 ms if it has to entirely swap out 8 GB of the previous process to make room, unless the SSD can overlap reads and writes). But most big processes don't need everything to be present in memory to resume. You just need to bring in the code and data that will be used in the short term. 10 GB in a second is 1 GB in 100 ms or 100 MB in 10 ms or 1 MB in 100 µs. For many programs, especially GUI programs, you can maybe swap in enough for the main event loop and whatever is being actively worked on in a couple ms. Then as the user continues working you might have to spend another ms or so when they do something that needs code or data that wasn't already brought in. |
|