If you’re not aware of what preload is, it’s a command line application that allows you to add files to ram, so they can be accessed faster by the applications that need them.

It seems to work well for what I’m using it for, which is to run games from slower storage devices, but there doesn’t seem to be any documentation for a proper way to remove the files once they’ve been added to ram. What I’ve been doing is to just use htop to terminate the preload command, but I feel like this is not intended at all. Is there a better way to remove these files?

I should mention that while trying to search for a solution myself, I did see gopreload mentioned a few times. I would try this out myself, but there’s no proper installation instructions, at least not any I could find that work in Linux Mint.

  • vortexal@lemmy.mlOP
    link
    fedilink
    arrow-up
    2
    ·
    3 hours ago

    That wont be necessary, after doing more “extreme” tests with preload, it seems like I was wrong about preload. I used sudo sysctl vm.drop_caches=1 to make sure that none of the game’s files were loaded in RAM before using preload like I did yesterday, but the game still has hitching issues. This means that the game’s files were probably still loaded in RAM when I was testing it yesterday.

    For context, what I’m trying to do is find a way to run smaller games more smoothly from some very old storage devices that are very slow. I thought that preload would be the solution but since it doesn’t seem to actually do what I thought it did, I’m going to need a different solution. I will try vmtouch and respond back if it works.