Posts

Dynamically growing swap file on Debian

Image
Clash Royale CLAN TAG #URR8PPP up vote 9 down vote favorite 2 I know how to create a swap file and use it as swap. But I have to configure the size of the file beforehand and the space is used on the disk, if the swap is used or not. How do I create a swap that has an initial size of 0 and grows on demand? linux swap share | improve this question edited Jun 3 '14 at 22:55 Gilles 523k 126 1044 1576 asked Jun 3 '14 at 12:44 rubo77 7,305 24 69 130 @Gilles: I am just curious - Why did you edit the title (apart from the typo)? Isn't it desired to have fully pronounced questions here? – rubo77 Jun 4 '14 at 8:22 1 It's better to avoid useless words, especially at the start of the title which is where people pay the most attention. See How do I write a good title?. “Dynamically growing swap” gives the essential idea. “How do I create” doesn't begin to indicate what the question is ...