I would apprechiate to load files from a HDD to RAM. I do not want to create a tmpf or anything. The files should go to swap. I can't push them into RAM because no free ram anymore.
The Problems are:
Ubuntu doesn't cache the files from a nextcloud server. Because I'm using an HDD it can be very slow - I also have a Minecraft Server running so no more RAM free.
Linux doesn't put the files to swap wich is quite interresting. I have a 10 GB of swap
Now my question: How can I load files into swap wich is on a sdd? I want to load for example the dashboard page into swap so no long waiting time
Edit:
So I heard this isn't possible... I now figured out that I have much more ressources with zram but also kinda weak...
I used vmtouch to lock files... But it doesn't help really... I locked all files from /var/www/html into ram but my hdd still triggered while I went to localhost/
What kinda problem is this???? I don't know if it worked but it increased RAM usage and with killall I was able to release
I just want to make my HDD faster... I do not want to move html/ onto my SSD
Another Edit:
It also might help adding some RAM but I can't add because it's an Apple Laptop
Any Idea how else it can work? Like fake ram (I never heard of things like that)