Hello, on a low voltage cpu system I can see that the creation of an 1 GB swap file can take several minutes. (The file-system is on SD-card which write about 6-7 MB/s).
As I see fallocate can do this job much faster, so why you don't use this? fallocate is also part of the util-linux package which essential in debian. Best Regards, basti