3 ms·
Swap is not enabled by default by any OS that I know of. And I doubt any OS requires you to have several gbs free in order to work smoothly. My point being is,
by makkesk8 7y ago
Swap is not enabled by default by any OS that I know of. And I doubt any OS requires you to have several gbs free in order to work smoothly.
My point being is, we are not stuck with 2 gbs of ram anymore and like games, apps will scale to use more resources for ease of development or better features.
- VonGallifrey 7y agoAs far as I am aware both windows and linux (several distros) use swap by default. On windows it will be a file on the C drive and on Linux it will be a swap partition. Of course they are not going to swap unless they have to, but they will swap in default configuration.
- michaelmrose 7y agoLiterally every major OS in existence has swap enabled by default. Linux, Mac, windows. The alternative is for things to start crashing when you run out of memory rather than swapping out.
- 0815test 7y ago> Linux, Mac, windows. But not Android, iOS or iPadOS. (And for good reason - these OS's run on devices that use bottom-of-the-barrel flash storage and can't sustain the wear-and-tear that comes with using swap.) That's not "literally every major OS"!
- falcolas 7y agoInstead, they suspend applications to the self-same flash storage when the the application is not being actively used and there is memory pressure. Doesn't seem a lot different from swapping the memory to disc until its accessed again. Not to mention, it's kinda irrelevant to a discussion of electron applications.
- 0815test 7y agoThey don't "suspend applications". They can prompt an application to serialize an image of its "core" memory for storage on the flash media and to subsequently restore its state from the serialized memory dump, but very few applications are written to do the job properly.
- michaelmrose 7y agoI care as much about your ease of development as you care about the ease of assembly of your car. If someone told you that your next car was going to get 15 mpg and told you that gas stations are plentiful nowadays you would presumably by a different car.