Note the default config already has a tmpfs mounted on /tmp that has a max size of ~1/2 of RAM which it consumes on an as needed basis.
Can see it hold a file / consume RAM by creating a file in it. Router needs a lot of RAM to hold a 1GB file, can test with smaller files using 32m intsead of 1G.