Welcome to the Linux Foundation Forum!

swap to ram command?

Sterist
Sterist Posts: 18

is there a terminal command or any way to move all memory stored on swap space back to the ram?

Comments

  • faissl
    faissl Posts: 4
    Which distro..?
    I know such a thing is available in some live distros like DSL and Gentoo, but I have no idea about being available in installed distros..
  • Sterist
    Sterist Posts: 18
    this thread is inside the ubuntu sub-forum lol
  • faissl
    faissl Posts: 4
    LOL didn't notice, I got it from the recent discussions link :cheer:
    ok, is that is what you trying to do..?
  • Sterist
    Sterist Posts: 18
    it is not.

    whenever i send my laptop into hibernate it moves all memory from the ram to swap, so that it doesn't have to battery-back the ram to maintain the data.

    the problem (i guess not really a problem lol) is that when i turn it back on, only some of the memory will go back to the ram, and anywhere from 20-50% will remain on swap.
  • faissl
    faissl Posts: 4
    Kernel issue, I think
  • Sterist
    Sterist Posts: 18
    i will not strike that out as a possibility, but i don't think so

    from my experiences, data is only retrieved from swap when it is needed again by it's host program.

Categories

Upcoming Training