Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Dynamic swap file
Dynamic swap file
Hello, I created a swap file instead of the partition because it had a fixed size but I realize that the file is like that too. Isn't it possible to make it dynamic like the windows paging file that if it's not used doesn't take up space and if needed it can get bigger? Thank you
- ruwolf
- Posts: 643
- Joined: 2008-02-18 05:04
- Location: Banovce nad Bebravou
- Has thanked: 41 times
- Been thanked: 30 times
Re: Dynamic swap file
You can try:
- Package: dphys-swapfile
Autogenerate and use a swap file - Package: swapspace
dynamic swap space manager
- Hallvor
- Global Moderator
- Posts: 2044
- Joined: 2009-04-16 18:35
- Location: Kristiansand, Norway
- Has thanked: 151 times
- Been thanked: 212 times
Re: Dynamic swap file
I would just leave it; it is not a bad design. Even a fixed Swap file only take a few gigabytes. Dynamic resizing adds its own drawbacks like resizing overhead and disk fragmentation.
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD
- pbear
- Posts: 329
- Joined: 2023-08-27 15:05
- Location: San Francisco
- Has thanked: 1 time
- Been thanked: 57 times
Re: Dynamic swap file
Hadn't heard of swapspace before. Clever, but don't see the advantage. Unless one leaves unused space on the drive, the app won't work. If the space has to be reserved, might as well do a swap file (imho).
Also, Texlee, what size file/partition are you talking about? Unless wanting to hibernate (which swapspace doesn't support), most recommendations for swap are vastly overstated. With reasonable RAM (which depends on what apps you run), 2 GB of swap is sufficient for most users. OTOH, even with lots of RAM, you should have at least a little swap available.
Also, Texlee, what size file/partition are you talking about? Unless wanting to hibernate (which swapspace doesn't support), most recommendations for swap are vastly overstated. With reasonable RAM (which depends on what apps you run), 2 GB of swap is sufficient for most users. OTOH, even with lots of RAM, you should have at least a little swap available.