To set these values you can use the command sysctl. For example, to set the swappiness value to 10 you could use:
sysctl