Any alternatives to swap space daemon?

I need to use swap files with dynamically size. Someone suggested me to use swap space tool, but I find only solution to install it on Ubuntu. I downloaded source code, compiled it and I can run it, but there’s error message and program exits.

> LANG=C sudo ./swapspace 
Error: Parse error in /proc/meminfo: '                                                                                                                             HugePages_Total:       0

This tool have no maintainers, so I search for alternatives.

Although I haven’t tested what is in the following ArchWiki,
You can probably use it as a guide for making decisions about your swap.

If something in that Wiki doesn’t work or you have any questions, just post here again.