News for hackers. Stuff that matters.
Re:A warning about 5.12-rc1 by dsr_ on Friday March 05, 2021 @07:16AM (#26355977)
The answer to why a partition is constant size: you are permanently reserving that amount of disk space, that's what a partition is.

Swapfiles aren't dynamic for the same reason, but, you can have multiple swapfiles, and when they are empty, you can discard them. If you really want dynamic swap, you can run swapfiled, which will monitor memory usage and create and mount swapfiles of a given granularity on demand.

If you're going to hibernate, you need that system RAM sized swap space immediately, and what are you going to do if it fails? Right, you need that to be permanently allocated.

If you have a matlab script that needs 1TB of swap, I don't know why you're running it here. Buy a server with a TB of RAM, or rent one. Swapping a terabyte is one of those edge cases where nobody expects the system to be usable for anything else for hours or days.

Re:A warning about 5.12-rc1 by jcelerier on Friday March 05, 2021 @11:17AM (#26358508)
> If you have a matlab script that needs 1TB of swap, I don't know why you're running it here. Buy a server with a TB of RAM, or rent one.

why would you assume that having a machine with 1TB of free space means that you have any way of spending money ?

Re:A warning about 5.12-rc1 by kemotep on Friday March 05, 2021 @11:47AM (#26358926)
I do not believe the parent comment were assuming they have money just suggesting that the grandparent comment not do what they were currently doing.

A 1 TB swap sounds like it will thrash a disk to the point of failure pretty quickly and perform quite poorly compared to a system with more appropriate amounts of RAM.

Having to replace disks more frequently and have tasks take longer than an appropriately equipped system could potentially be the more expensive in the long run.