▲ | MomsAVoxell 3 days ago | |||||||
I didn’t mean to imply that swap was durable data storage. Having swap/more memory available just means you have more buffers before needing to commit and in certain circumstances this can be very beneficial, such as when processing of larger amounts of logged data is needed prior to committing, etc. There is certainly a case for both having and using swap, and disabling it entirely, depending on the data load and realtime needs of the application. Processing data and saving data have different requirements, and the point is really that there is no black and white on this. Use swap if it’s appropriate to the application - don’t use it, if it isn’t. | ||||||||
▲ | dns_snek 3 days ago | parent [-] | |||||||
I don't really understand what problem you're solving by doing it that way. Instead of storing data (let's call them samples) to durable storage to begin with, you're letting the OS write them to swap which incurs the same cost, but then you need to read them from swap and write them to a different partition again (~triple the original cost). | ||||||||
|